Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.0_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.001128/0.001128, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001139/0.001139, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 242.4 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2191/0.2191, allocations: 44.19 MB / 336.8 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 60.31 kB / 408.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1208, allocations: 60.84 MB / 469.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.2872/0.4081, allocations: 51.77 MB / 0.5087 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0251/0.4332, allocations: 10.93 MB / 0.5194 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01265/0.4459, allocations: 216.7 kB / 0.5196 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006382/0.4524, allocations: 2.779 MB / 0.5223 GB, free: 8.125 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00507/0.4575, allocations: 1.601 MB / 0.5239 GB, free: 7.605 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001864/0.4594, allocations: 0.6433 MB / 0.5245 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007527/0.467, allocations: 5.829 MB / 0.5302 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004509/0.4715, allocations: 3.691 MB / 0.5338 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002332/0.4739, allocations: 1.27 MB / 0.5351 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00264/0.4765, allocations: 2.09 MB / 0.5371 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007079/0.4773, allocations: 233.7 kB / 0.5373 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002252/0.4795, allocations: 1.183 MB / 0.5385 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001461/0.481, allocations: 1.77 MB / 0.5402 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002169/0.4832, allocations: 2.041 MB / 0.5422 GB, free: 15.01 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006088/0.4893, allocations: 5.525 MB / 0.5476 GB, free: 10.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.896e-06/0.4893, allocations: 0 / 0.5476 GB, free: 10.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4894, allocations: 3.938 kB / 0.5476 GB, free: 10.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002345/0.4896, allocations: 0 / 0.5476 GB, free: 10.27 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1454 * Number of variables: 1454 Notification: Performance of Generate backend data structure: time 0.01055/0.5002, allocations: 4.516 MB / 0.552 GB, free: 5.777 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/0.5002, allocations: 8.031 kB / 0.552 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0146/0.5148, allocations: 2.466 MB / 0.5544 GB, free: 3.297 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005994/0.5209, allocations: 2.501 MB / 0.5569 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001842/0.5211, allocations: 230.8 kB / 0.5571 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001048/0.5222, allocations: 297.7 kB / 0.5574 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01603/0.5382, allocations: 9.301 MB / 0.5665 GB, free: 6.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001311/0.5384, allocations: 43.59 kB / 0.5665 GB, free: 6.438 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005601/0.539, allocations: 146.1 kB / 0.5666 GB, free: 6.328 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002898/0.5419, allocations: 1.834 MB / 0.5684 GB, free: 4.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01452/0.5564, allocations: 7.69 MB / 0.5759 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04458/0.6011, allocations: 34.86 MB / 0.61 GB, free: 9.02 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00509/0.6062, allocations: 2.444 MB / 0.6124 GB, free: 6.43 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001965/0.6082, allocations: 1.279 MB / 0.6136 GB, free: 5.141 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005265/0.6088, allocations: 328.8 kB / 0.6139 GB, free: 4.766 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.338e-05/0.6089, allocations: 43.12 kB / 0.614 GB, free: 4.715 MB / 462.1 MB Notification: Performance of pre-optimization done (n=122): time 6.432e-06/0.6089, allocations: 0 / 0.614 GB, free: 4.715 MB / 462.1 MB Notification: Performance of matching and sorting (n=140): time 0.03141/0.6403, allocations: 11.65 MB / 0.6254 GB, free: 8.918 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.6404, allocations: 200.6 kB / 0.6256 GB, free: 8.68 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005082/0.6455, allocations: 3.63 MB / 0.6291 GB, free: 5.051 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003036/0.6459, allocations: 41.7 kB / 0.6291 GB, free: 5.004 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002057/0.6479, allocations: 2.94 MB / 0.632 GB, free: 2.07 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006905/0.6486, allocations: 0.558 MB / 0.6326 GB, free: 1.516 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001449/0.6501, allocations: 1.12 MB / 0.6336 GB, free: 396 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.255e-05/0.6502, allocations: 305.1 kB / 0.6339 GB, free: 88 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002765/0.653, allocations: 1.821 MB / 0.6357 GB, free: 14.26 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005024/0.658, allocations: 5.253 MB / 0.6408 GB, free: 7.281 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008848/0.6669, allocations: 7.608 MB / 0.6483 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001403/0.6671, allocations: 36 kB / 0.6483 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01431/0.6814, allocations: 7.308 MB / 0.6554 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001502/0.6816, allocations: 56 kB / 0.6555 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001998/0.6818, allocations: 120 kB / 0.6556 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001818/0.6836, allocations: 0.685 MB / 0.6563 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004053/0.6877, allocations: 1.252 MB / 0.6575 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005229/0.693, allocations: 4.053 MB / 0.6615 GB, free: 332 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004177/0.6972, allocations: 311.6 kB / 0.6618 GB, free: 20 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/0.6982, allocations: 339 kB / 0.6621 GB, free: 15.69 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 553 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,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 (672): * Single equations (assignments): 668 * 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 {(2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004079/0.7023, allocations: 2.041 MB / 0.6641 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008295/0.7031, allocations: 312 kB / 0.6644 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004856/0.708, allocations: 2.253 MB / 0.6666 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.612e-05/0.7081, allocations: 16 kB / 0.6666 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.7081, allocations: 4 kB / 0.6666 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.7081, allocations: 3.984 kB / 0.6666 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01368/0.7218, allocations: 6.291 MB / 0.6727 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.7218, allocations: 0 / 0.6727 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.723, allocations: 231.6 kB / 0.673 GB, free: 4.492 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001474/0.7245, allocations: 0.5002 MB / 0.6735 GB, free: 3.988 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001626/0.7247, allocations: 23.98 kB / 0.6735 GB, free: 3.965 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004529/0.7292, allocations: 3.645 MB / 0.677 GB, free: 184 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.7292, allocations: 8 kB / 0.677 GB, free: 176 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007523/0.7368, allocations: 4.393 MB / 0.6813 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009627/0.7378, allocations: 357 kB / 0.6817 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006721/0.7384, allocations: 21.95 kB / 0.6817 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/0.7399, allocations: 79.89 kB / 0.6818 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003004/0.7402, allocations: 100.4 kB / 0.6819 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/0.7403, allocations: 39.98 kB / 0.6819 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00414/0.7445, allocations: 2.262 MB / 0.6841 GB, free: 8.895 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.01e-07/0.7445, allocations: 0 / 0.6841 GB, free: 8.895 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004865/0.7494, allocations: 0.8847 MB / 0.685 GB, free: 8.012 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 (107): * Single equations (assignments): 103 * 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.0004987/0.7499, allocations: 148.9 kB / 0.6851 GB, free: 7.859 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007387/0.7573, allocations: 4.314 MB / 0.6893 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.7573, allocations: 0 / 0.6893 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001994/0.7593, allocations: 1.25 MB / 0.6906 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002992/0.7623, allocations: 386.8 kB / 0.6909 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01859/0.781, allocations: 10.65 MB / 0.7013 GB, free: 7.234 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004783/0.7858, allocations: 3.148 MB / 0.7044 GB, free: 4.059 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/0.7869, allocations: 259.4 kB / 0.7046 GB, free: 3.805 MB / 0.545 GB Notification: Performance of SimCode: time 1.323e-06/0.7869, allocations: 0 / 0.7046 GB, free: 3.805 MB / 0.545 GB Notification: Performance of Templates: time 0.3091/1.096, allocations: 69.64 MB / 0.7726 GB, free: 156.3 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches