Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 102.7 kB / 16.4 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001776/0.001776, allocations: 188.1 kB / 17.34 MB, free: 5.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.624/1.624, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2331/0.2331, allocations: 43.54 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 63.91 kB / 441.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1531, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.02091/0.174, allocations: 11.23 MB / 0.4989 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.015/0.1891, allocations: 4.05 MB / 0.5028 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004502/0.1937, allocations: 59.88 kB / 0.5029 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008615/0.2024, allocations: 2.835 MB / 0.5056 GB, free: 9.555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008011/0.2105, allocations: 1.946 MB / 0.5075 GB, free: 7.602 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002578/0.2131, allocations: 0.7096 MB / 0.5082 GB, free: 6.891 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008629/0.2217, allocations: 4.171 MB / 0.5123 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007773/0.2295, allocations: 3.89 MB / 0.5161 GB, free: 14.75 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004235/0.2338, allocations: 1.596 MB / 0.5177 GB, free: 13.15 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005154/0.239, allocations: 2.247 MB / 0.5199 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001904/0.2409, allocations: 372 kB / 0.5202 GB, free: 10.53 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003751/0.2447, allocations: 1.245 MB / 0.5214 GB, free: 9.285 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003375/0.2481, allocations: 2.061 MB / 0.5234 GB, free: 7.219 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004966/0.2531, allocations: 2.389 MB / 0.5258 GB, free: 4.816 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3649/0.618, allocations: 7.877 MB / 0.5335 GB, free: 15.45 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.16e-05/0.6181, allocations: 1.75 kB / 0.5335 GB, free: 15.45 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.6181, allocations: 0 / 0.5335 GB, free: 15.45 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004021/0.6185, allocations: 0 / 0.5335 GB, free: 15.45 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1645 * Number of variables: 1645 Notification: Performance of Generate backend data structure: time 0.02132/0.6399, allocations: 4.975 MB / 0.5383 GB, free: 13.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.047e-05/0.6399, allocations: 14.61 kB / 0.5383 GB, free: 13.47 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01766/0.6576, allocations: 2.535 MB / 0.5408 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00944/0.6671, allocations: 2.726 MB / 0.5435 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005409/0.6677, allocations: 255.2 kB / 0.5437 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002645/0.6704, allocations: 340.4 kB / 0.544 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02466/0.695, allocations: 10.44 MB / 0.5542 GB, free: 9.902 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001607/0.6952, allocations: 48.53 kB / 0.5543 GB, free: 9.895 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005305/0.6958, allocations: 154.2 kB / 0.5544 GB, free: 9.828 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003805/0.6996, allocations: 2.098 MB / 0.5565 GB, free: 9.465 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01877/0.7184, allocations: 8.74 MB / 0.565 GB, free: 6.602 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05703/0.7755, allocations: 38.41 MB / 0.6025 GB, free: 1.887 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006665/0.7822, allocations: 3.062 MB / 0.6055 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002987/0.7852, allocations: 1.753 MB / 0.6072 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000447/0.7857, allocations: 330.4 kB / 0.6076 GB, free: 12.58 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.899e-05/0.7858, allocations: 51.56 kB / 0.6076 GB, free: 12.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=176): time 4.979e-06/0.7858, allocations: 3.75 kB / 0.6076 GB, free: 12.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=194): time 0.03569/0.8215, allocations: 14.77 MB / 0.622 GB, free: 13.65 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.8216, allocations: 197.2 kB / 0.6222 GB, free: 13.41 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006375/0.828, allocations: 3.851 MB / 0.626 GB, free: 9.578 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006252/0.8287, allocations: 56.36 kB / 0.626 GB, free: 9.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002533/0.8312, allocations: 3.178 MB / 0.6291 GB, free: 6.352 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001279/0.8325, allocations: 0.7441 MB / 0.6299 GB, free: 5.613 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001899/0.8344, allocations: 1.245 MB / 0.6311 GB, free: 4.355 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.8345, allocations: 305.1 kB / 0.6314 GB, free: 4.055 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003961/0.8385, allocations: 2.257 MB / 0.6336 GB, free: 1.793 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007234/0.8458, allocations: 5.951 MB / 0.6394 GB, free: 10.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/0.8582, allocations: 8.831 MB / 0.648 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000157/0.8584, allocations: 40 kB / 0.648 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=802) (initialization): time 0.02114/0.8795, allocations: 8.478 MB / 0.6563 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002771/0.8799, allocations: 63.94 kB / 0.6564 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003786/0.8803, allocations: 136 kB / 0.6565 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001995/0.8823, allocations: 0.6802 MB / 0.6572 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005702/0.888, allocations: 1.447 MB / 0.6586 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005617/0.8936, allocations: 4.368 MB / 0.6629 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005778/0.8995, allocations: 359.5 kB / 0.6632 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00172/0.9012, allocations: 380 kB / 0.6636 GB, free: 140 kB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 30 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (764): * Single equations (assignments): 760 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006711/0.9079, allocations: 2.235 MB / 0.6657 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/0.909, allocations: 343.5 kB / 0.6661 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006912/0.916, allocations: 3.246 MB / 0.6692 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.465e-05/0.916, allocations: 31.92 kB / 0.6693 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.916, allocations: 4 kB / 0.6693 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-05/0.9161, allocations: 7.969 kB / 0.6693 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01821/0.9343, allocations: 8.133 MB / 0.6772 GB, free: 2.094 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.298e-05/0.9344, allocations: 0 / 0.6772 GB, free: 2.094 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001872/0.9362, allocations: 341.1 kB / 0.6776 GB, free: 1.762 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001473/0.9377, allocations: 0.508 MB / 0.678 GB, free: 1.254 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002101/0.938, allocations: 35.89 kB / 0.6781 GB, free: 1.223 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00553/0.9435, allocations: 3.923 MB / 0.6819 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.126e-06/0.9435, allocations: 11.97 kB / 0.6819 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01163/0.9552, allocations: 5.931 MB / 0.6877 GB, free: 7.199 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002158/0.9573, allocations: 0.6372 MB / 0.6883 GB, free: 6.539 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005333/0.9579, allocations: 28 kB / 0.6884 GB, free: 6.512 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/0.9593, allocations: 126.3 kB / 0.6885 GB, free: 6.391 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00037/0.9597, allocations: 129 kB / 0.6886 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001463/0.9599, allocations: 51.98 kB / 0.6887 GB, free: 6.215 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005058/0.9649, allocations: 2.396 MB / 0.691 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.053e-06/0.965, allocations: 4 kB / 0.691 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007022/0.972, allocations: 1.028 MB / 0.692 GB, free: 2.805 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008314/0.9729, allocations: 158 kB / 0.6922 GB, free: 2.645 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01137/0.9842, allocations: 5.371 MB / 0.6974 GB, free: 13.29 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.106e-06/0.9843, allocations: 0.875 kB / 0.6974 GB, free: 13.29 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00373/0.988, allocations: 1.715 MB / 0.6991 GB, free: 11.57 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003645/0.9917, allocations: 434.4 kB / 0.6995 GB, free: 11.16 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02217/1.014, allocations: 9.543 MB / 0.7088 GB, free: 1.582 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004513/1.018, allocations: 3.455 MB / 0.7122 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005466/1.024, allocations: 1.944 MB / 0.7141 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001257/1.025, allocations: 257 kB / 0.7143 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of SimCode: time 3.016e-06/1.025, allocations: 0 / 0.7143 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of Templates: time 0.07347/1.099, allocations: 33.81 MB / 0.7473 GB, free: 10.18 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches