Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 110.9 kB / 17.75 MB, free: 5.309 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.001157/0.001157, allocations: 182.6 kB / 18.67 MB, free: 4.395 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.321/1.321, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001038, allocations: 47.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2189, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01144/0.2304, allocations: 11.4 MB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00723/0.2376, allocations: 4.066 MB / 416.9 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00142/0.2391, allocations: 67.88 kB / 417 MB, free: 9.273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005643/0.2447, allocations: 3.193 MB / 420.2 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004238/0.249, allocations: 2.004 MB / 422.2 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001667/0.2507, allocations: 0.8228 MB / 423 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005297/0.256, allocations: 4.462 MB / 427.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004607/0.2606, allocations: 4.048 MB / 431.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002357/0.263, allocations: 1.663 MB / 433.2 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003063/0.2661, allocations: 2.157 MB / 435.3 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009089/0.267, allocations: 352 kB / 435.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002465/0.2695, allocations: 1.26 MB / 436.9 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00213/0.2716, allocations: 2.069 MB / 439 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00306/0.2747, allocations: 2.365 MB / 441.4 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007093/0.2818, allocations: 7.626 MB / 449 MB, free: 9.105 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2818, allocations: 0 / 449 MB, free: 9.105 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2818, allocations: 0 / 449 MB, free: 9.105 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001001/0.2819, allocations: 0 / 449 MB, free: 9.105 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.008859/0.2908, allocations: 5.186 MB / 454.2 MB, free: 3.848 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.2908, allocations: 12.02 kB / 454.2 MB, free: 3.836 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008893/0.2997, allocations: 2.178 MB / 456.4 MB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00584/0.3056, allocations: 2.85 MB / 459.2 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.3058, allocations: 246.3 kB / 459.4 MB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005577/0.3063, allocations: 323.8 kB / 459.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01644/0.3228, allocations: 10.82 MB / 470.6 MB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-05/0.3229, allocations: 43.62 kB / 470.6 MB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004012/0.3233, allocations: 151.9 kB / 470.8 MB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003626/0.3269, allocations: 2.158 MB / 472.9 MB, free: 320 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02533/0.3523, allocations: 9.223 MB / 482.2 MB, free: 7.066 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04994/0.4022, allocations: 41.7 MB / 0.5116 GB, free: 12.24 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01178/0.4141, allocations: 4.483 MB / 0.516 GB, free: 7.609 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003059/0.4171, allocations: 2.493 MB / 0.5184 GB, free: 5.109 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01179/0.4289, allocations: 7.376 MB / 0.5256 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.71e-05/0.429, allocations: 51.56 kB / 0.5256 GB, free: 13.46 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.541e-06/0.429, allocations: 0 / 0.5256 GB, free: 13.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2077/0.6367, allocations: 18.77 MB / 0.544 GB, free: 128.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.6368, allocations: 179.4 kB / 0.5441 GB, free: 128.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004668/0.6415, allocations: 4.618 MB / 0.5487 GB, free: 126.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002225/0.6417, allocations: 60.27 kB / 0.5487 GB, free: 126.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.643, allocations: 3.213 MB / 0.5518 GB, free: 124.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004706/0.6434, allocations: 0.7509 MB / 0.5526 GB, free: 123.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001212/0.6447, allocations: 1.299 MB / 0.5538 GB, free: 123.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.61e-05/0.6447, allocations: 308.7 kB / 0.5541 GB, free: 123 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002555/0.6473, allocations: 2.394 MB / 0.5565 GB, free: 122.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003728/0.651, allocations: 6.146 MB / 0.5625 GB, free: 116.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006981/0.658, allocations: 9.235 MB / 0.5715 GB, free: 106.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.913e-05/0.6581, allocations: 36 kB / 0.5715 GB, free: 106.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01188/0.67, allocations: 9.358 MB / 0.5807 GB, free: 97.43 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.747e-05/0.67, allocations: 67.06 kB / 0.5807 GB, free: 97.37 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-05/0.6701, allocations: 132 kB / 0.5809 GB, free: 97.24 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002581/0.6727, allocations: 1.198 MB / 0.582 GB, free: 96.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003723/0.6764, allocations: 1.454 MB / 0.5835 GB, free: 94.58 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007205/0.6837, allocations: 7.285 MB / 0.5906 GB, free: 87.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004033/0.6877, allocations: 351.5 kB / 0.5909 GB, free: 86.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003557/0.6881, allocations: 388 kB / 0.5913 GB, free: 86.44 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (772): * Single equations (assignments): 766 * Array equations: 5 * 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,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00232/0.6904, allocations: 2.244 MB / 0.5935 GB, free: 84.19 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000462/0.6909, allocations: 386.9 kB / 0.5938 GB, free: 83.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005969/0.6968, allocations: 4.058 MB / 0.5978 GB, free: 79.73 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.6969, allocations: 11.91 kB / 0.5978 GB, free: 79.72 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.6969, allocations: 0 / 0.5978 GB, free: 79.72 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005875/0.6975, allocations: 455.8 kB / 0.5982 GB, free: 79.25 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004659/0.698, allocations: 31.91 kB / 0.5983 GB, free: 79.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.6995, allocations: 119.8 kB / 0.5984 GB, free: 79.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002709/0.6997, allocations: 125.1 kB / 0.5985 GB, free: 78.98 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006705/0.7065, allocations: 4.56 MB / 0.603 GB, free: 74.45 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005679/0.7121, allocations: 6.013 MB / 0.6088 GB, free: 68.42 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001478/0.7136, allocations: 1.572 MB / 0.6104 GB, free: 66.85 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003158/0.7168, allocations: 2.92 MB / 0.6132 GB, free: 63.93 MB / 462.1 MB Notification: Performance of Backend: time 4.31e-07/0.7168, allocations: 0 / 0.6132 GB, free: 63.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007036/0.7239, allocations: 4.601 MB / 0.6177 GB, free: 59.36 MB / 462.1 MB Notification: Performance of SimCode: time 0.01085/0.7347, allocations: 9.851 MB / 0.6273 GB, free: 49.48 MB / 462.1 MB Notification: Performance of Templates: time 0.06965/0.8044, allocations: 51.64 MB / 0.6778 GB, free: 14.08 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches