Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001022/0.001022, allocations: 79.75 kB / 22.45 MB, free: 2.098 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.001026/0.001026, allocations: 169.8 kB / 25.75 MB, free: 8.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8495/0.8495, allocations: 158.6 MB / 187.5 MB, free: 2.938 MB / 170.7 MB " [Timeout remaining time 179] 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.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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 251.1 MB, free: 7.805 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.242e-05/1.379e-05, allocations: 6.312 kB / 251.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01458/0.0146, allocations: 9.023 MB / 260.1 MB, free: 14.72 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003115/0.01771, allocations: 2.303 MB / 262.4 MB, free: 12.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004648/0.01818, allocations: 35.81 kB / 262.5 MB, free: 12.37 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005686/0.01874, allocations: 325 kB / 262.8 MB, free: 12.05 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007323/0.01948, allocations: 0.5189 MB / 263.3 MB, free: 11.53 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007253/0.0202, allocations: 0.6593 MB / 264 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001388/0.02159, allocations: 2.41 MB / 266.4 MB, free: 8.445 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007431/0.02233, allocations: 0.6983 MB / 267.1 MB, free: 7.699 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008657/0.0232, allocations: 1.302 MB / 268.4 MB, free: 6.395 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005456/0.02374, allocations: 0.6896 MB / 269.1 MB, free: 5.703 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001978/0.02394, allocations: 283.9 kB / 269.4 MB, free: 5.426 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003196/0.02426, allocations: 335.9 kB / 269.7 MB, free: 5.098 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000278/0.02454, allocations: 0.5181 MB / 270.2 MB, free: 4.578 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000424/0.02496, allocations: 0.6861 MB / 270.9 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00117/0.02613, allocations: 1.616 MB / 272.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.02614, allocations: 0 / 272.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.02614, allocations: 0 / 272.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.02615, allocations: 0 / 272.5 MB, free: 2.27 MB / 250.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.002001/0.02815, allocations: 1.971 MB / 274.5 MB, free: 256 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.02818, allocations: 15.98 kB / 274.5 MB, free: 240 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003553/0.02854, allocations: 319.8 kB / 274.8 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007661/0.0293, allocations: 0.7725 MB / 275.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002404/0.02954, allocations: 442.3 kB / 276 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.0297, allocations: 168.3 kB / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.03129, allocations: 1.383 MB / 277.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.68e-05/0.03132, allocations: 11.95 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.695e-05/0.03142, allocations: 63.94 kB / 277.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.161e-05/0.03144, allocations: 36 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.03273, allocations: 0.7672 MB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004911/0.03765, allocations: 4.853 MB / 283.3 MB, free: 7.047 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008813/0.03853, allocations: 0.5874 MB / 283.9 MB, free: 6.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003727/0.0389, allocations: 266.2 kB / 284.1 MB, free: 6.164 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.311e-05/0.03894, allocations: 17 kB / 284.1 MB, free: 6.148 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005874/0.03953, allocations: 0.6759 MB / 284.8 MB, free: 5.363 MB / 266.7 MB Notification: Performance of pre-optimization done (n=91): time 1.794e-06/0.03953, allocations: 0 / 284.8 MB, free: 5.363 MB / 266.7 MB Notification: Performance of matching and sorting (n=121): time 0.008674/0.04821, allocations: 4.968 MB / 289.8 MB, free: 348 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.196e-05/0.0483, allocations: 299.7 kB / 290.1 MB, free: 15.98 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005694/0.04887, allocations: 0.7061 MB / 290.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.149e-05/0.04894, allocations: 53.7 kB / 290.8 MB, free: 15.2 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003188/0.04926, allocations: 0.7256 MB / 291.6 MB, free: 14.46 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/0.04949, allocations: 436.3 kB / 292 MB, free: 14.03 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002927/0.04978, allocations: 245.2 kB / 292.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.04997, allocations: 0.5742 MB / 292.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005911/0.05056, allocations: 379.8 kB / 293.2 MB, free: 12.83 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008646/0.05142, allocations: 0.9907 MB / 294.2 MB, free: 11.63 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.05259, allocations: 1.015 MB / 295.2 MB, free: 10.49 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.05259, allocations: 4 kB / 295.2 MB, free: 10.49 MB / 282.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.001689/0.05428, allocations: 1.3 MB / 296.5 MB, free: 9.168 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.0543, allocations: 8 kB / 296.5 MB, free: 9.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.0543, allocations: 15.98 kB / 296.5 MB, free: 9.145 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002693/0.05457, allocations: 154.9 kB / 296.7 MB, free: 8.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007851/0.05536, allocations: 335.5 kB / 297 MB, free: 8.652 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/0.05766, allocations: 5.664 MB / 302.7 MB, free: 2.617 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000579/0.05824, allocations: 139.9 kB / 302.8 MB, free: 2.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.921e-05/0.05831, allocations: 48 kB / 302.8 MB, free: 2.434 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 (169): * Single equations (assignments): 166 * 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.0003122/0.05863, allocations: 250.1 kB / 303.1 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.05879, allocations: 147.3 kB / 303.2 MB, free: 2.035 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000121/0.05891, allocations: 125.6 kB / 303.3 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.05892, allocations: 12 kB / 303.4 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.05893, allocations: 0 / 303.4 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.05894, allocations: 11.97 kB / 303.4 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003688/0.06262, allocations: 3.001 MB / 306.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.06263, allocations: 8 kB / 306.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000615/0.06325, allocations: 247.7 kB / 306.6 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004056/0.06365, allocations: 327.1 kB / 306.9 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.103e-05/0.06371, allocations: 39.98 kB / 307 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/0.0651, allocations: 2.755 MB / 309.7 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.06511, allocations: 20.02 kB / 309.8 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/0.067, allocations: 1.708 MB / 311.5 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003644/0.06736, allocations: 247.2 kB / 311.7 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.06747, allocations: 51.98 kB / 311.8 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004782/0.06795, allocations: 111.9 kB / 311.9 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.06817, allocations: 156.2 kB / 312 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.951e-05/0.06822, allocations: 44 kB / 312.1 MB, free: 8.602 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003831/0.0686, allocations: 450.9 kB / 312.5 MB, free: 8.168 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0686, allocations: 0 / 312.5 MB, free: 8.168 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007855/0.06938, allocations: 351.9 kB / 312.8 MB, free: 7.824 MB / 298.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002425/0.06963, allocations: 182.6 kB / 313 MB, free: 7.637 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.07116, allocations: 1.438 MB / 314.5 MB, free: 6.148 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.07117, allocations: 0 / 314.5 MB, free: 6.148 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005816/0.07175, allocations: 0.564 MB / 315 MB, free: 5.566 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006773/0.07243, allocations: 214.6 kB / 315.2 MB, free: 5.355 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.07597, allocations: 2.815 MB / 318 MB, free: 2.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000199/0.07617, allocations: 261.3 kB / 318.3 MB, free: 2.047 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004614/0.07663, allocations: 164 kB / 318.5 MB, free: 1.883 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002424/0.07687, allocations: 80.48 kB / 318.5 MB, free: 1.805 MB / 298.7 MB Notification: Performance of SimCode: time 1.452e-06/0.07687, allocations: 0 / 318.5 MB, free: 1.805 MB / 298.7 MB Notification: Performance of Templates: time 0.02077/0.09764, allocations: 18.2 MB / 336.7 MB, free: 15.6 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.188730597961694]