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.001183/0.001183, allocations: 114.6 kB / 16.63 MB, free: 6.738 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.001196/0.001196, allocations: 197.9 kB / 17.55 MB, free: 5.914 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.302/1.302, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009366/0.0009367, allocations: 51.45 kB / 300.1 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08078/0.08173, allocations: 49.44 MB / 349.6 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2263/0.308, allocations: 56.87 MB / 406.4 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02822/0.3363, allocations: 11.56 MB / 418 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01284/0.3492, allocations: 243.5 kB / 418.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006119/0.3554, allocations: 3.079 MB / 421.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005323/0.3608, allocations: 1.818 MB / 423.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001964/0.3628, allocations: 0.7801 MB / 423.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006463/0.3692, allocations: 4.663 MB / 428.6 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004776/0.374, allocations: 4.287 MB / 432.9 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002307/0.3764, allocations: 1.686 MB / 434.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002896/0.3793, allocations: 2.403 MB / 437 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005963/0.3799, allocations: 352 kB / 437.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001979/0.3819, allocations: 1.272 MB / 438.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001656/0.3836, allocations: 2.1 MB / 440.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002048/0.3856, allocations: 2.377 MB / 443.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006977/0.3926, allocations: 7.446 MB / 450.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3926, allocations: 3.938 kB / 450.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3926, allocations: 4 kB / 450.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000172/0.3928, allocations: 0 / 450.5 MB, free: 15.61 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.009955/0.4028, allocations: 5.182 MB / 455.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.4028, allocations: 15.97 kB / 455.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008451/0.4113, allocations: 2.171 MB / 457.9 MB, free: 8.156 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005389/0.4167, allocations: 2.792 MB / 460.7 MB, free: 5.305 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.4169, allocations: 258.2 kB / 460.9 MB, free: 5.051 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000672/0.4176, allocations: 331.7 kB / 461.2 MB, free: 4.727 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01823/0.4358, allocations: 10.82 MB / 472.1 MB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001318/0.436, allocations: 43.59 kB / 472.1 MB, free: 9.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004685/0.4365, allocations: 167.8 kB / 472.3 MB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003909/0.4404, allocations: 2.146 MB / 474.4 MB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01823/0.4587, allocations: 9.23 MB / 483.6 MB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0488/0.5075, allocations: 41.88 MB / 0.5132 GB, free: 2.602 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01164/0.5192, allocations: 4.493 MB / 0.5176 GB, free: 13.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003013/0.5223, allocations: 2.495 MB / 0.52 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01122/0.5335, allocations: 7.388 MB / 0.5272 GB, free: 3.867 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.5336, allocations: 51.5 kB / 0.5273 GB, free: 3.809 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.849e-06/0.5336, allocations: 4 kB / 0.5273 GB, free: 3.805 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.2166/0.7502, allocations: 18.75 MB / 0.5456 GB, free: 148.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/0.7503, allocations: 176.9 kB / 0.5458 GB, free: 148.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005958/0.7563, allocations: 4.618 MB / 0.5503 GB, free: 147 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004596/0.7567, allocations: 53.58 kB / 0.5503 GB, free: 146.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001495/0.7582, allocations: 3.216 MB / 0.5535 GB, free: 144.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007187/0.759, allocations: 0.758 MB / 0.5542 GB, free: 143.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001255/0.7602, allocations: 1.297 MB / 0.5555 GB, free: 143.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.182e-05/0.7603, allocations: 301.1 kB / 0.5558 GB, free: 143 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002707/0.763, allocations: 2.4 MB / 0.5581 GB, free: 142.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00368/0.7667, allocations: 6.145 MB / 0.5641 GB, free: 136.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007041/0.7738, allocations: 9.226 MB / 0.5731 GB, free: 127.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.888e-05/0.7738, allocations: 47.94 kB / 0.5732 GB, free: 127.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.0118/0.7856, allocations: 9.354 MB / 0.5823 GB, free: 118 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.815e-05/0.7857, allocations: 66.34 kB / 0.5824 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.821e-05/0.7858, allocations: 132 kB / 0.5825 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002477/0.7883, allocations: 1.199 MB / 0.5837 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003707/0.792, allocations: 1.454 MB / 0.5851 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00696/0.799, allocations: 7.288 MB / 0.5922 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00415/0.8031, allocations: 355.4 kB / 0.5925 GB, free: 107.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003734/0.8035, allocations: 391.8 kB / 0.5929 GB, free: 107 MB / 446.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.002336/0.8059, allocations: 2.243 MB / 0.5951 GB, free: 104.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004802/0.8064, allocations: 386.9 kB / 0.5955 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005667/0.812, allocations: 4.062 MB / 0.5994 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.582e-05/0.8121, allocations: 20.47 kB / 0.5995 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.8121, allocations: 4 kB / 0.5995 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.654e-05/0.8121, allocations: 15.95 kB / 0.5995 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/0.8252, allocations: 9.607 MB / 0.6089 GB, free: 90.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.8253, allocations: 7.984 kB / 0.6089 GB, free: 90.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/0.8266, allocations: 323.5 kB / 0.6092 GB, free: 90.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002332/0.829, allocations: 1.024 MB / 0.6102 GB, free: 89.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001378/0.8291, allocations: 39.98 kB / 0.6102 GB, free: 89.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006853/0.836, allocations: 6.827 MB / 0.6169 GB, free: 82.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.836, allocations: 11.94 kB / 0.6169 GB, free: 82.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008751/0.8448, allocations: 7.046 MB / 0.6238 GB, free: 75.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.8459, allocations: 466.4 kB / 0.6242 GB, free: 74.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004989/0.8464, allocations: 36 kB / 0.6243 GB, free: 74.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/0.848, allocations: 126.7 kB / 0.6244 GB, free: 74.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003103/0.8483, allocations: 125 kB / 0.6245 GB, free: 74.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.8484, allocations: 56 kB / 0.6245 GB, free: 74.28 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003187/0.8516, allocations: 2.956 MB / 0.6274 GB, free: 71.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8516, allocations: 0 / 0.6274 GB, free: 71.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004439/0.8561, allocations: 1.087 MB / 0.6285 GB, free: 70.24 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (157): * Single equations (assignments): 153 * 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 {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003584/0.8565, allocations: 179.8 kB / 0.6287 GB, free: 70.06 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008203/0.8647, allocations: 6.861 MB / 0.6354 GB, free: 63.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.8647, allocations: 0 / 0.6354 GB, free: 63.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0026/0.8673, allocations: 2.063 MB / 0.6374 GB, free: 61.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002989/0.8703, allocations: 0.4964 MB / 0.6379 GB, free: 60.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/0.8857, allocations: 12.39 MB / 0.65 GB, free: 48.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002898/0.8887, allocations: 3.449 MB / 0.6533 GB, free: 44.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0044/0.8931, allocations: 2.041 MB / 0.6553 GB, free: 42.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008332/0.8939, allocations: 271.4 kB / 0.6556 GB, free: 42.4 MB / 446.1 MB Notification: Performance of SimCode: time 7.12e-07/0.8939, allocations: 0 / 0.6556 GB, free: 42.4 MB / 446.1 MB Notification: Performance of Templates: time 0.2436/1.138, allocations: 43.04 MB / 0.6976 GB, free: 130.4 MB / 446.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/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