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.0009342/0.0009342, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.000991/0.000991, allocations: 174.6 kB / 25.7 MB, free: 8.426 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.8456/0.8456, allocations: 158.6 MB / 187.6 MB, free: 2.785 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.183e-06/1.183e-06, allocations: 0 / 251.5 MB, free: 7.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.757e-05/1.876e-05, allocations: 2.312 kB / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.00677/0.006789, allocations: 8.777 MB / 260.3 MB, free: 14.42 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003854/0.01064, allocations: 2.399 MB / 262.7 MB, free: 12.01 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000496/0.01114, allocations: 27.88 kB / 262.7 MB, free: 11.98 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005302/0.01167, allocations: 328.9 kB / 263.1 MB, free: 11.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000771/0.01244, allocations: 0.5189 MB / 263.6 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008009/0.01324, allocations: 0.6554 MB / 264.2 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001463/0.0147, allocations: 2.41 MB / 266.6 MB, free: 8.059 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006863/0.01539, allocations: 0.7224 MB / 267.4 MB, free: 7.277 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008548/0.01625, allocations: 1.31 MB / 268.7 MB, free: 5.965 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005413/0.01679, allocations: 0.6895 MB / 269.4 MB, free: 5.273 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001932/0.01698, allocations: 280 kB / 269.6 MB, free: 5 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003146/0.01729, allocations: 335.9 kB / 270 MB, free: 4.672 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002711/0.01757, allocations: 0.5181 MB / 270.5 MB, free: 4.152 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000413/0.01798, allocations: 0.69 MB / 271.2 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.01909, allocations: 1.604 MB / 272.8 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.614e-06/0.01909, allocations: 7.938 kB / 272.8 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.01909, allocations: 0 / 272.8 MB, free: 1.844 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.0191, allocations: 0 / 272.8 MB, free: 1.844 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.001765/0.02086, allocations: 1.853 MB / 274.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.02089, allocations: 11.98 kB / 274.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002755/0.02117, allocations: 264.7 kB / 274.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005878/0.02176, allocations: 0.512 MB / 275.4 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002175/0.02197, allocations: 438.3 kB / 275.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/0.02212, allocations: 168.3 kB / 276 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.02327, allocations: 1.286 MB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.068e-05/0.0233, allocations: 0 / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.633e-05/0.02338, allocations: 64 kB / 277.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.0234, allocations: 39.98 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007306/0.02413, allocations: 0.5285 MB / 277.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00395/0.02808, allocations: 3.896 MB / 281.8 MB, free: 8.379 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005944/0.02868, allocations: 0.5157 MB / 282.3 MB, free: 7.836 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/0.02889, allocations: 192.6 kB / 282.5 MB, free: 7.645 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.684e-05/0.02894, allocations: 20.94 kB / 282.6 MB, free: 7.625 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004182/0.02936, allocations: 0.6024 MB / 283.2 MB, free: 6.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 1.824e-06/0.02936, allocations: 0 / 283.2 MB, free: 6.926 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.008802/0.03816, allocations: 4.802 MB / 288 MB, free: 2.078 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.804e-05/0.03826, allocations: 303.7 kB / 288.3 MB, free: 1.711 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000401/0.03866, allocations: 0.6206 MB / 288.9 MB, free: 1.078 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.852e-05/0.03873, allocations: 53.7 kB / 288.9 MB, free: 1.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002542/0.03898, allocations: 0.6108 MB / 289.5 MB, free: 404 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/0.0392, allocations: 416.5 kB / 289.9 MB, free: 15.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/0.03946, allocations: 247.3 kB / 290.2 MB, free: 15.74 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.03959, allocations: 414.5 kB / 290.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003183/0.0399, allocations: 238.7 kB / 290.8 MB, free: 15.09 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005097/0.04041, allocations: 0.7511 MB / 291.6 MB, free: 14.18 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007213/0.04113, allocations: 0.7933 MB / 292.4 MB, free: 13.29 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.04114, allocations: 0 / 292.4 MB, free: 13.29 MB / 282.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.0009896/0.04213, allocations: 0.892 MB / 293.3 MB, free: 12.38 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.04215, allocations: 8.875 kB / 293.3 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.04216, allocations: 8 kB / 293.3 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002379/0.0424, allocations: 154.4 kB / 293.4 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007148/0.04311, allocations: 331.5 kB / 293.8 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001794/0.0449, allocations: 3.802 MB / 297.6 MB, free: 7.816 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005186/0.04542, allocations: 143.9 kB / 297.7 MB, free: 7.676 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.716e-05/0.04548, allocations: 36 kB / 297.7 MB, free: 7.641 MB / 282.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.0002709/0.04575, allocations: 206.2 kB / 297.9 MB, free: 7.43 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.04588, allocations: 99.89 kB / 298 MB, free: 7.332 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.04598, allocations: 133.6 kB / 298.2 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.04599, allocations: 12 kB / 298.2 MB, free: 7.184 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.04599, allocations: 7.938 kB / 298.2 MB, free: 7.176 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.046, allocations: 7.969 kB / 298.2 MB, free: 7.168 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002414/0.04841, allocations: 2.091 MB / 300.3 MB, free: 4.914 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.04842, allocations: 8.938 kB / 300.3 MB, free: 4.906 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004947/0.04892, allocations: 243.6 kB / 300.5 MB, free: 4.668 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000306/0.04922, allocations: 297.5 kB / 300.8 MB, free: 4.371 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.897e-05/0.04927, allocations: 47.92 kB / 300.9 MB, free: 4.324 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007694/0.05004, allocations: 1.836 MB / 302.7 MB, free: 2.379 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-05/0.05005, allocations: 15.94 kB / 302.7 MB, free: 2.363 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.05116, allocations: 1.23 MB / 303.9 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000219/0.05137, allocations: 119.2 kB / 304.1 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.222e-05/0.05147, allocations: 47.98 kB / 304.1 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003979/0.05186, allocations: 115.9 kB / 304.2 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.05204, allocations: 148.2 kB / 304.4 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/0.05208, allocations: 43.98 kB / 304.4 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002016/0.05228, allocations: 284.5 kB / 304.7 MB, free: 256 kB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05228, allocations: 0 / 304.7 MB, free: 256 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006455/0.05293, allocations: 344 kB / 305 MB, free: 15.91 MB / 298.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.000199/0.05313, allocations: 163.8 kB / 305.2 MB, free: 15.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009946/0.05412, allocations: 1.075 MB / 306.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-05/0.05414, allocations: 16.69 kB / 306.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004044/0.05454, allocations: 466.6 kB / 306.7 MB, free: 14.15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005768/0.05512, allocations: 207.4 kB / 306.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002814/0.05793, allocations: 2.571 MB / 309.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001755/0.05811, allocations: 256.6 kB / 309.8 MB, free: 10.94 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003824/0.05849, allocations: 159.9 kB / 309.9 MB, free: 10.78 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004535/0.05895, allocations: 249.3 kB / 310.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of SimCode: time 6.91e-07/0.05895, allocations: 0 / 310.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of Templates: time 0.02112/0.08006, allocations: 19.48 MB / 329.6 MB, free: 7.055 MB / 314.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: 2.8854749402962625]