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.0009848/0.000985, allocations: 92.97 kB / 18 MB, free: 5.602 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.001187/0.001187, allocations: 179.5 kB / 18.91 MB, free: 4.734 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.436/1.436, allocations: 223.3 MB / 243 MB, free: 14.3 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.199/0.199, allocations: 44.25 MB / 338.3 MB, free: 2.41 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.0003438, allocations: 12.22 kB / 411 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1151, allocations: 61.93 MB / 472.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.2933/0.4085, allocations: 50.45 MB / 0.5111 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02871/0.4372, allocations: 10.86 MB / 0.5217 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01245/0.4497, allocations: 214.8 kB / 0.5219 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001868/0.4517, allocations: 390.2 kB / 0.5223 GB, free: 9.527 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005846/0.4575, allocations: 1.604 MB / 0.5239 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002263/0.4598, allocations: 0.6486 MB / 0.5245 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008182/0.468, allocations: 5.834 MB / 0.5302 GB, free: 7.051 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007335/0.4754, allocations: 4.906 MB / 0.535 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002491/0.4779, allocations: 1.03 MB / 0.536 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003003/0.481, allocations: 1.788 MB / 0.5377 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008999/0.4819, allocations: 133.5 kB / 0.5379 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002643/0.4845, allocations: 1.088 MB / 0.5389 GB, free: 2.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002025/0.4866, allocations: 1.634 MB / 0.5405 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003149/0.4898, allocations: 1.884 MB / 0.5424 GB, free: 480 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006509/0.4963, allocations: 5.405 MB / 0.5476 GB, free: 12.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4963, allocations: 4 kB / 0.5476 GB, free: 12.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.4963, allocations: 0 / 0.5476 GB, free: 12.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000306/0.4966, allocations: 0 / 0.5476 GB, free: 12.66 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.01067/0.5073, allocations: 3.703 MB / 0.5513 GB, free: 8.914 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.5074, allocations: 8.031 kB / 0.5513 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01747/0.5249, allocations: 2.525 MB / 0.5537 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006585/0.5315, allocations: 2.491 MB / 0.5562 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002876/0.5318, allocations: 234.5 kB / 0.5564 GB, free: 3.648 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001465/0.5333, allocations: 305 kB / 0.5567 GB, free: 3.383 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01934/0.5527, allocations: 9.324 MB / 0.5658 GB, free: 9.531 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002385/0.553, allocations: 39.59 kB / 0.5658 GB, free: 9.492 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001097/0.5541, allocations: 143.9 kB / 0.566 GB, free: 9.383 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003435/0.5575, allocations: 1.837 MB / 0.5678 GB, free: 7.551 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01581/0.5734, allocations: 7.711 MB / 0.5753 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04516/0.6186, allocations: 34.91 MB / 0.6094 GB, free: 12 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005133/0.6237, allocations: 2.455 MB / 0.6118 GB, free: 9.406 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001935/0.6257, allocations: 1.302 MB / 0.613 GB, free: 8.094 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003935/0.6261, allocations: 322.7 kB / 0.6133 GB, free: 7.727 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.145e-05/0.6262, allocations: 47.17 kB / 0.6134 GB, free: 7.668 MB / 462.1 MB Notification: Performance of pre-optimization done (n=122): time 3.707e-06/0.6262, allocations: 0 / 0.6134 GB, free: 7.668 MB / 462.1 MB Notification: Performance of matching and sorting (n=140): time 0.0311/0.6573, allocations: 11.92 MB / 0.625 GB, free: 11.6 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.6575, allocations: 192.6 kB / 0.6252 GB, free: 11.37 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006718/0.6642, allocations: 3.634 MB / 0.6288 GB, free: 7.734 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003196/0.6646, allocations: 45.7 kB / 0.6288 GB, free: 7.684 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002536/0.6671, allocations: 2.938 MB / 0.6317 GB, free: 4.75 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007788/0.6679, allocations: 0.5582 MB / 0.6322 GB, free: 4.195 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008823/0.6688, allocations: 481.9 kB / 0.6327 GB, free: 3.719 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.241e-05/0.6689, allocations: 301.3 kB / 0.633 GB, free: 3.422 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003219/0.6722, allocations: 1.853 MB / 0.6348 GB, free: 1.562 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005601/0.6778, allocations: 5.285 MB / 0.6399 GB, free: 10.55 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009391/0.6872, allocations: 7.656 MB / 0.6474 GB, free: 1.195 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001207/0.6873, allocations: 32 kB / 0.6475 GB, free: 1.164 MB / 494.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01421/0.7016, allocations: 7.356 MB / 0.6546 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.00013/0.7017, allocations: 56 kB / 0.6547 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001916/0.7019, allocations: 120 kB / 0.6548 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001795/0.7037, allocations: 0.6762 MB / 0.6555 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004141/0.7079, allocations: 1.271 MB / 0.6567 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005268/0.7132, allocations: 4.063 MB / 0.6607 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004328/0.7175, allocations: 321.7 kB / 0.661 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009641/0.7185, allocations: 336 kB / 0.6613 GB, free: 2.84 MB / 0.4981 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.00447/0.723, allocations: 2.037 MB / 0.6633 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008209/0.7238, allocations: 304.1 kB / 0.6636 GB, free: 500 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005034/0.7289, allocations: 2.303 MB / 0.6658 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.099e-05/0.7289, allocations: 18.34 kB / 0.6658 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.729, allocations: 4 kB / 0.6659 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.072e-05/0.729, allocations: 7.969 kB / 0.6659 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/0.7436, allocations: 6.348 MB / 0.6721 GB, free: 7.766 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.027e-05/0.7436, allocations: 11.94 kB / 0.6721 GB, free: 7.754 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.7448, allocations: 227.6 kB / 0.6723 GB, free: 7.531 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001472/0.7463, allocations: 0.5041 MB / 0.6728 GB, free: 7.023 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001836/0.7465, allocations: 31.98 kB / 0.6728 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004647/0.7511, allocations: 3.642 MB / 0.6764 GB, free: 3.215 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.7512, allocations: 0 / 0.6764 GB, free: 3.215 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007457/0.7586, allocations: 4.472 MB / 0.6807 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/0.7597, allocations: 357 kB / 0.6811 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000723/0.7604, allocations: 24 kB / 0.6811 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/0.7621, allocations: 102.1 kB / 0.6812 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003101/0.7624, allocations: 96.44 kB / 0.6813 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/0.7625, allocations: 40.27 kB / 0.6813 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004713/0.7672, allocations: 2.258 MB / 0.6835 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/0.7673, allocations: 0 / 0.6835 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005317/0.7726, allocations: 0.889 MB / 0.6844 GB, free: 10.96 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.0005659/0.7732, allocations: 149.1 kB / 0.6845 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008047/0.7812, allocations: 4.377 MB / 0.6888 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.7813, allocations: 0 / 0.6888 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002054/0.7833, allocations: 1.248 MB / 0.69 GB, free: 5.18 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003778/0.7871, allocations: 391.7 kB / 0.6904 GB, free: 4.797 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0212/0.8084, allocations: 10.73 MB / 0.7009 GB, free: 10.02 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005873/0.8143, allocations: 3.148 MB / 0.704 GB, free: 6.84 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.8154, allocations: 263.4 kB / 0.7042 GB, free: 6.582 MB / 0.545 GB Notification: Performance of SimCode: time 1.002e-06/0.8154, allocations: 0 / 0.7042 GB, free: 6.582 MB / 0.545 GB Notification: Performance of Templates: time 0.4082/1.224, allocations: 68.87 MB / 0.7715 GB, free: 158.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