Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 147.5 kB / 24.89 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8957/0.8957, allocations: 173.4 MB / 201.5 MB, free: 8.746 MB / 186.7 MB " [Timeout remaining time 179] 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.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.097e-05/2.248e-05, allocations: 6.25 kB / 268.5 MB, free: 6.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007394/0.007417, allocations: 8.891 MB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004327/0.01174, allocations: 2.371 MB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008097/0.01255, allocations: 35.81 kB / 279.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006444/0.0132, allocations: 329 kB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001066/0.01426, allocations: 0.5189 MB / 280.6 MB, free: 9.816 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009831/0.01525, allocations: 0.6593 MB / 281.3 MB, free: 9.156 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002173/0.01742, allocations: 2.418 MB / 283.7 MB, free: 6.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008784/0.0183, allocations: 0.7224 MB / 284.4 MB, free: 5.941 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001336/0.01963, allocations: 1.303 MB / 285.7 MB, free: 4.637 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007742/0.02041, allocations: 0.6934 MB / 286.4 MB, free: 3.941 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003196/0.02073, allocations: 276 kB / 286.7 MB, free: 3.672 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004216/0.02115, allocations: 339.8 kB / 287 MB, free: 3.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003057/0.02146, allocations: 0.5141 MB / 287.5 MB, free: 2.824 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006088/0.02206, allocations: 0.6861 MB / 288.2 MB, free: 2.137 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001634/0.0237, allocations: 1.62 MB / 289.8 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.0237, allocations: 0 / 289.8 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.0237, allocations: 0 / 289.8 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.209e-05/0.02374, allocations: 4 kB / 289.8 MB, free: 0.5078 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.1034/0.1272, allocations: 1.837 MB / 291.7 MB, free: 22.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.1272, allocations: 9.188 kB / 291.7 MB, free: 22.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003458/0.1275, allocations: 264 kB / 291.9 MB, free: 22.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006622/0.1282, allocations: 0.5029 MB / 292.4 MB, free: 22.58 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/0.1284, allocations: 440.8 kB / 292.9 MB, free: 22.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/0.1285, allocations: 161.4 kB / 293 MB, free: 22.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.1298, allocations: 1.291 MB / 294.3 MB, free: 21.85 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.857e-05/0.1299, allocations: 8.562 kB / 294.3 MB, free: 21.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.27e-05/0.13, allocations: 67.66 kB / 294.4 MB, free: 21.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.59e-05/0.13, allocations: 36.66 kB / 294.4 MB, free: 21.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008783/0.1309, allocations: 0.523 MB / 295 MB, free: 21.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004345/0.1352, allocations: 3.908 MB / 298.9 MB, free: 20.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006528/0.1359, allocations: 0.5274 MB / 299.4 MB, free: 20.31 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002418/0.1361, allocations: 192.6 kB / 299.6 MB, free: 20.29 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.36e-05/0.1362, allocations: 16 kB / 299.6 MB, free: 20.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005091/0.1367, allocations: 0.5972 MB / 300.2 MB, free: 19.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 2.315e-06/0.1367, allocations: 0 / 300.2 MB, free: 19.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.009293/0.146, allocations: 4.799 MB / 305 MB, free: 19.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.146, allocations: 296.5 kB / 305.3 MB, free: 18.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003755/0.1464, allocations: 0.6119 MB / 305.9 MB, free: 18.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.29e-05/0.1464, allocations: 56.02 kB / 305.9 MB, free: 18.56 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.1466, allocations: 0.6163 MB / 306.6 MB, free: 18.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001481/0.1468, allocations: 416.7 kB / 307 MB, free: 17.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002401/0.147, allocations: 250.2 kB / 307.2 MB, free: 17.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.568e-05/0.1471, allocations: 419.2 kB / 307.6 MB, free: 17.3 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003075/0.1474, allocations: 241.8 kB / 307.9 MB, free: 17.26 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003752/0.1478, allocations: 0.7523 MB / 308.6 MB, free: 16.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005761/0.1483, allocations: 0.7905 MB / 309.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.1483, allocations: 4 kB / 309.4 MB, free: 15.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.0008754/0.1492, allocations: 0.8896 MB / 310.3 MB, free: 14.92 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.1492, allocations: 14.95 kB / 310.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.1492, allocations: 5.859 kB / 310.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002375/0.1495, allocations: 144.2 kB / 310.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006838/0.1502, allocations: 336 kB / 310.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.1514, allocations: 3.807 MB / 314.6 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005892/0.152, allocations: 147.8 kB / 314.7 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.406e-05/0.1521, allocations: 40 kB / 314.8 MB, free: 10.26 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (167): * Single equations (assignments): 164 * 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.0002693/0.1523, allocations: 197.3 kB / 315 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.1524, allocations: 106.9 kB / 315.1 MB, free: 9.973 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.078e-05/0.1525, allocations: 129.7 kB / 315.2 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1525, allocations: 12 kB / 315.2 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.1525, allocations: 0 / 315.2 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.1526, allocations: 7.922 kB / 315.2 MB, free: 9.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002334/0.1549, allocations: 2.101 MB / 317.3 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/0.1549, allocations: 8 kB / 317.3 MB, free: 7.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004688/0.1554, allocations: 243.3 kB / 317.6 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002674/0.1556, allocations: 296.7 kB / 317.9 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.338e-05/0.1557, allocations: 39.98 kB / 317.9 MB, free: 7.195 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005242/0.1562, allocations: 1.843 MB / 319.7 MB, free: 5.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.1562, allocations: 11.91 kB / 319.7 MB, free: 5.262 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009449/0.1572, allocations: 1.244 MB / 321 MB, free: 3.922 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002096/0.1574, allocations: 122.4 kB / 321.1 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.73e-05/0.1575, allocations: 43.98 kB / 321.2 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.1578, allocations: 115.9 kB / 321.3 MB, free: 3.648 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.158, allocations: 150.9 kB / 321.4 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.393e-05/0.158, allocations: 35.98 kB / 321.5 MB, free: 3.473 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001682/0.1582, allocations: 280.5 kB / 321.7 MB, free: 3.234 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1582, allocations: 0 / 321.7 MB, free: 3.234 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006828/0.1589, allocations: 344 kB / 322.1 MB, free: 2.898 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 (110): * Single equations (assignments): 108 * 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001985/0.1591, allocations: 162.4 kB / 322.2 MB, free: 2.746 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008518/0.1599, allocations: 1.077 MB / 323.3 MB, free: 1.703 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.597e-05/0.16, allocations: 12.5 kB / 323.3 MB, free: 1.688 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003527/0.1603, allocations: 470.2 kB / 323.8 MB, free: 1.266 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005671/0.1609, allocations: 212.4 kB / 324 MB, free: 1.062 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.1638, allocations: 2.554 MB / 326.5 MB, free: 14.41 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001844/0.164, allocations: 260.5 kB / 326.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004118/0.1644, allocations: 151.9 kB / 326.9 MB, free: 13.98 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004635/0.1649, allocations: 253.2 kB / 327.2 MB, free: 13.74 MB / 282.7 MB Notification: Performance of SimCode: time 1.202e-06/0.1649, allocations: 4 kB / 327.2 MB, free: 13.73 MB / 282.7 MB Notification: Performance of Templates: time 0.02314/0.188, allocations: 19.48 MB / 346.7 MB, free: 10.54 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 2.930945057887584]