Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9636/0.9636, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4704,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4704,variableFilter="time|axis.controller.PI.x|axis.gear.spring.phi_rel|axis.gear.spring.w_rel|axis.initializeFlange.phi_flange|axis.initializeFlange.w_flange|axis.motor.C.v|axis.motor.La.i|axis.gear.bearingFriction.mode|axis.gear.bearingFriction.startBackward|axis.gear.bearingFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.26e-05/2.417e-05, allocations: 2.312 kB / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007885/0.007909, allocations: 9.273 MB / 282.3 MB, free: 8.211 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003693/0.0116, allocations: 2.438 MB / 284.7 MB, free: 5.766 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005215/0.01212, allocations: 35.81 kB / 284.7 MB, free: 5.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000646/0.01277, allocations: 344.9 kB / 285.1 MB, free: 5.391 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007973/0.01357, allocations: 0.5305 MB / 285.6 MB, free: 4.855 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000771/0.01434, allocations: 0.667 MB / 286.3 MB, free: 4.188 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001461/0.0158, allocations: 2.441 MB / 288.7 MB, free: 1.738 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007786/0.01658, allocations: 0.6906 MB / 289.4 MB, free: 1 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1342/0.1508, allocations: 1.318 MB / 290.7 MB, free: 16.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001399/0.1522, allocations: 0.6932 MB / 291.4 MB, free: 16.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006294/0.1528, allocations: 280.7 kB / 291.7 MB, free: 16.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008229/0.1537, allocations: 356.5 kB / 292 MB, free: 16.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003956/0.154, allocations: 0.5242 MB / 292.6 MB, free: 16.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001234/0.1553, allocations: 0.6946 MB / 293.3 MB, free: 16.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002227/0.1575, allocations: 1.639 MB / 294.9 MB, free: 16.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.1575, allocations: 1.219 kB / 294.9 MB, free: 16.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1575, allocations: 0.875 kB / 294.9 MB, free: 16.51 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.733e-05/0.1576, allocations: 0 / 294.9 MB, free: 16.51 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.003386/0.161, allocations: 2.006 MB / 296.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.161, allocations: 9.328 kB / 296.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005628/0.1616, allocations: 320.8 kB / 297.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.1626, allocations: 0.7857 MB / 298 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002403/0.1629, allocations: 444 kB / 298.4 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001974/0.1631, allocations: 162.7 kB / 298.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/0.1649, allocations: 1.355 MB / 300 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.963e-05/0.165, allocations: 9.984 kB / 300 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.1651, allocations: 68.16 kB / 300 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.235e-05/0.1651, allocations: 37.58 kB / 300.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.1665, allocations: 0.7146 MB / 300.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004826/0.1713, allocations: 4.818 MB / 305.6 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008577/0.1721, allocations: 0.5708 MB / 306.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003635/0.1725, allocations: 248.7 kB / 306.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.645e-05/0.1726, allocations: 17 kB / 306.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004929/0.1731, allocations: 0.6521 MB / 307.1 MB, free: 10.67 MB / 266.7 MB Notification: Performance of pre-optimization done (n=92): time 2.184e-06/0.1731, allocations: 0 / 307.1 MB, free: 10.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.008078/0.1811, allocations: 4.795 MB / 311.9 MB, free: 8.484 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/0.1812, allocations: 298.2 kB / 312.2 MB, free: 8.141 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005479/0.1818, allocations: 0.7056 MB / 312.9 MB, free: 7.688 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.913e-05/0.1818, allocations: 60.33 kB / 312.9 MB, free: 7.633 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002527/0.1821, allocations: 0.7283 MB / 313.7 MB, free: 6.906 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.1823, allocations: 429.3 kB / 314.1 MB, free: 6.492 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002795/0.1825, allocations: 255.5 kB / 314.3 MB, free: 6.238 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1826, allocations: 0.5805 MB / 314.9 MB, free: 5.648 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005009/0.1831, allocations: 347.8 kB / 315.2 MB, free: 5.309 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006353/0.1838, allocations: 0.9586 MB / 316.2 MB, free: 4.148 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009609/0.1847, allocations: 0.9534 MB / 317.2 MB, free: 3.098 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1847, allocations: 4 kB / 317.2 MB, free: 3.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.001617/0.1864, allocations: 1.25 MB / 318.4 MB, free: 1.871 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.1864, allocations: 8 kB / 318.4 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.1864, allocations: 4 kB / 318.4 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003373/0.1867, allocations: 198.5 kB / 318.6 MB, free: 1.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007989/0.1875, allocations: 333.2 kB / 318.9 MB, free: 1.352 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002816/0.1903, allocations: 5.675 MB / 324.6 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006984/0.191, allocations: 139.9 kB / 324.8 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.128e-05/0.1911, allocations: 48 kB / 324.8 MB, free: 11.15 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,pathPlanning.path.motion_ref,axis.gear.bearingFriction.mode,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.startBackward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000339/0.1915, allocations: 249.2 kB / 325 MB, free: 10.91 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.1916, allocations: 143.3 kB / 325.2 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.1918, allocations: 133.8 kB / 325.3 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.1918, allocations: 12 kB / 325.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.1918, allocations: 3.938 kB / 325.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1918, allocations: 3.984 kB / 325.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003828/0.1956, allocations: 2.915 MB / 328.3 MB, free: 7.574 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.086e-06/0.1956, allocations: 9 kB / 328.3 MB, free: 7.566 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005609/0.1962, allocations: 250.2 kB / 328.5 MB, free: 7.336 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003235/0.1965, allocations: 237.5 kB / 328.7 MB, free: 7.098 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.042e-05/0.1966, allocations: 35.98 kB / 328.8 MB, free: 7.062 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001157/0.1977, allocations: 2.657 MB / 331.4 MB, free: 4.266 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.1977, allocations: 11.19 kB / 331.4 MB, free: 4.258 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.1995, allocations: 1.57 MB / 333 MB, free: 2.504 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003415/0.1998, allocations: 251.1 kB / 333.3 MB, free: 2.258 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.1999, allocations: 47.98 kB / 333.3 MB, free: 2.211 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004733/0.2004, allocations: 111.9 kB / 333.4 MB, free: 2.102 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.2006, allocations: 159.5 kB / 333.6 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.207e-05/0.2007, allocations: 51.98 kB / 333.6 MB, free: 1.898 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000403/0.2011, allocations: 442.9 kB / 334.1 MB, free: 1.469 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2011, allocations: 3.562 kB / 334.1 MB, free: 1.469 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009494/0.202, allocations: 340 kB / 334.4 MB, free: 1.137 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 9 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase) * Number of discrete states: 3 (axis.gear.bearingFriction.mode,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008485/0.2029, allocations: 417.8 kB / 334.8 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001971/0.2048, allocations: 1.376 MB / 336.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.2048, allocations: 4 kB / 336.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005975/0.2054, allocations: 0.5458 MB / 336.7 MB, free: 14.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007438/0.2062, allocations: 226.3 kB / 336.9 MB, free: 14.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003923/0.2101, allocations: 2.834 MB / 339.8 MB, free: 11.76 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.2103, allocations: 257.4 kB / 340 MB, free: 11.49 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004802/0.2108, allocations: 164 kB / 340.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/0.2111, allocations: 80.5 kB / 340.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of SimCode: time 1.262e-06/0.2111, allocations: 0 / 340.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of Templates: time 0.02316/0.2343, allocations: 18.49 MB / 358.8 MB, free: 9.004 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4863773910328746]