Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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(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_3.2.3_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_3.2.3_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.00119/0.00119, allocations: 106.4 kB / 17.73 MB, free: 5.344 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.001387/0.001387, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.327/1.327, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.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.001186/0.001186, allocations: 55.92 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07509/0.07629, allocations: 46.61 MB / 375.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2502/0.3265, allocations: 12.49 MB / 387.6 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0112/0.3378, allocations: 4.186 MB / 391.8 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002988/0.3409, allocations: 74.84 kB / 391.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008177/0.3491, allocations: 3.227 MB / 395.1 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009202/0.3583, allocations: 2.083 MB / 397.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003219/0.3616, allocations: 0.8244 MB / 398 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0097/0.3713, allocations: 4.558 MB / 402.6 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00745/0.3788, allocations: 4.176 MB / 406.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004826/0.3837, allocations: 1.761 MB / 408.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00598/0.3897, allocations: 2.353 MB / 410.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002446/0.3922, allocations: 392.7 kB / 411.3 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005485/0.3977, allocations: 1.27 MB / 412.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004112/0.4019, allocations: 2.224 MB / 414.8 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005456/0.4074, allocations: 2.548 MB / 417.3 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.42, allocations: 8.287 MB / 425.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.42, allocations: 4 kB / 425.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.919e-06/0.42, allocations: 0 / 425.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003213/0.4204, allocations: 3.938 kB / 425.6 MB, free: 12.98 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.01373/0.4341, allocations: 5.656 MB / 431.3 MB, free: 7.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.4342, allocations: 8.031 kB / 431.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0097/0.4439, allocations: 2.26 MB / 433.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006681/0.4506, allocations: 3.012 MB / 436.5 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/0.4509, allocations: 270.7 kB / 436.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001222/0.4521, allocations: 359.8 kB / 437.1 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02052/0.4727, allocations: 11.64 MB / 448.8 MB, free: 4.926 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001144/0.4728, allocations: 43.62 kB / 448.8 MB, free: 4.883 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004909/0.4733, allocations: 171.8 kB / 449 MB, free: 4.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003816/0.4771, allocations: 2.342 MB / 451.3 MB, free: 2.371 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01915/0.4963, allocations: 9.969 MB / 461.3 MB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0523/0.5486, allocations: 44.35 MB / 0.4938 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01316/0.5618, allocations: 5.341 MB / 0.499 GB, free: 5.398 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003556/0.5654, allocations: 2.818 MB / 0.5018 GB, free: 2.57 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01299/0.5784, allocations: 8.138 MB / 0.5097 GB, free: 10.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.236e-05/0.5786, allocations: 67.73 kB / 0.5098 GB, free: 10.15 MB / 446.1 MB Notification: Performance of pre-optimization done (n=216): time 5.7e-06/0.5786, allocations: 0 / 0.5098 GB, free: 10.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=237): time 0.05683/0.6354, allocations: 21.04 MB / 0.5303 GB, free: 4.992 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.763e-05/0.6356, allocations: 176.2 kB / 0.5305 GB, free: 4.781 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006895/0.6425, allocations: 4.779 MB / 0.5352 GB, free: 15.99 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004826/0.643, allocations: 61.69 kB / 0.5352 GB, free: 15.92 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002251/0.6452, allocations: 3.525 MB / 0.5387 GB, free: 12.36 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00113/0.6464, allocations: 0.938 MB / 0.5396 GB, free: 11.42 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001898/0.6483, allocations: 1.389 MB / 0.5409 GB, free: 10.02 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.6484, allocations: 308.9 kB / 0.5412 GB, free: 9.719 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003912/0.6523, allocations: 2.703 MB / 0.5439 GB, free: 7.012 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2125/0.8648, allocations: 6.609 MB / 0.5503 GB, free: 142.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/0.8762, allocations: 10.08 MB / 0.5602 GB, free: 135.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001272/0.8764, allocations: 38.94 kB / 0.5602 GB, free: 135.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01958/0.896, allocations: 10.2 MB / 0.5702 GB, free: 132.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.8961, allocations: 65.53 kB / 0.5702 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001737/0.8963, allocations: 136.5 kB / 0.5704 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003222/0.8995, allocations: 1.199 MB / 0.5715 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005498/0.905, allocations: 1.608 MB / 0.5731 GB, free: 132 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008546/0.9136, allocations: 7.272 MB / 0.5802 GB, free: 128.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005645/0.9193, allocations: 389.9 kB / 0.5806 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001411/0.9207, allocations: 414.8 kB / 0.581 GB, free: 128.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 42 (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.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 (835): * Single equations (assignments): 829 * 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.005107/0.9258, allocations: 2.367 MB / 0.5833 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009054/0.9268, allocations: 437.8 kB / 0.5837 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007705/0.9345, allocations: 4.774 MB / 0.5884 GB, free: 125.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.989e-05/0.9345, allocations: 31.64 kB / 0.5884 GB, free: 125.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.9346, allocations: 6 kB / 0.5884 GB, free: 125.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.088e-05/0.9346, allocations: 7.547 kB / 0.5884 GB, free: 125.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01613/0.9507, allocations: 10.79 MB / 0.599 GB, free: 118.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-05/0.9508, allocations: 4.875 kB / 0.599 GB, free: 118.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001922/0.9527, allocations: 427.3 kB / 0.5994 GB, free: 118 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002396/0.9551, allocations: 1.016 MB / 0.6004 GB, free: 117 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002227/0.9554, allocations: 48 kB / 0.6004 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007129/0.9625, allocations: 6.884 MB / 0.6071 GB, free: 110 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/0.9626, allocations: 11.94 kB / 0.6071 GB, free: 109.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01012/0.9727, allocations: 8.186 MB / 0.6151 GB, free: 101.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001601/0.9743, allocations: 0.8564 MB / 0.616 GB, free: 100.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006024/0.9749, allocations: 47.98 kB / 0.616 GB, free: 100.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001809/0.9768, allocations: 147.8 kB / 0.6162 GB, free: 100.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003458/0.9771, allocations: 149.6 kB / 0.6163 GB, free: 100.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001622/0.9773, allocations: 71.75 kB / 0.6164 GB, free: 100.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003881/0.9812, allocations: 3.054 MB / 0.6193 GB, free: 97.46 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9812, allocations: 0 / 0.6193 GB, free: 97.46 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004758/0.9859, allocations: 1.182 MB / 0.6205 GB, free: 96.29 MB / 478.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 (198): * Single equations (assignments): 194 * 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.000423/0.9864, allocations: 201.9 kB / 0.6207 GB, free: 96.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008704/0.9951, allocations: 6.533 MB / 0.6271 GB, free: 89.59 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/0.9951, allocations: 4.188 kB / 0.6271 GB, free: 89.58 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003231/0.9984, allocations: 2.414 MB / 0.6294 GB, free: 87.16 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002991/1.001, allocations: 0.5127 MB / 0.6299 GB, free: 86.67 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01637/1.018, allocations: 11.38 MB / 0.6411 GB, free: 75.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003254/1.021, allocations: 3.672 MB / 0.6446 GB, free: 71.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004409/1.026, allocations: 2.212 MB / 0.6468 GB, free: 69.29 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009198/1.026, allocations: 291.4 kB / 0.6471 GB, free: 69 MB / 478.1 MB Notification: Performance of SimCode: time 6.62e-07/1.026, allocations: 0 / 0.6471 GB, free: 69 MB / 478.1 MB Notification: Performance of Templates: time 0.06316/1.09, allocations: 42.64 MB / 0.6887 GB, free: 26.4 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches