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.0008431/0.0008431, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001387/0.00223, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007475/0.0007475, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009368/0.001684, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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.8476/0.8476, allocations: 158.6 MB / 171.1 MB, free: 2.578 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1479/0.9955, allocations: 49.49 MB / 220.6 MB, free: 1.441 MB / 218.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.443e-06/1.443e-06, allocations: 0 / 221.8 MB, free: 180 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.759e-05/1.904e-05, allocations: 10.25 kB / 221.8 MB, free: 168 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01111/0.01113, allocations: 8.864 MB / 230.7 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005828/0.01696, allocations: 2.411 MB / 233.1 MB, free: 4.824 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00178/0.01874, allocations: 31.88 kB / 233.1 MB, free: 4.793 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001001/0.01974, allocations: 325 kB / 233.5 MB, free: 4.473 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001949/0.02169, allocations: 0.5266 MB / 234 MB, free: 3.941 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001428/0.02312, allocations: 0.6554 MB / 234.6 MB, free: 3.285 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003051/0.02617, allocations: 2.399 MB / 237 MB, free: 0.8789 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001271/0.02744, allocations: 0.734 MB / 237.8 MB, free: 88 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002305/0.02975, allocations: 1.395 MB / 239.2 MB, free: 14.68 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001172/0.03092, allocations: 0.6934 MB / 239.9 MB, free: 13.99 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004677/0.03139, allocations: 280 kB / 240.1 MB, free: 13.71 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006708/0.03206, allocations: 339.9 kB / 240.5 MB, free: 13.38 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004242/0.03248, allocations: 415 kB / 240.9 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007699/0.03325, allocations: 0.5694 MB / 241.4 MB, free: 12.41 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001895/0.03515, allocations: 1.472 MB / 242.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.037e-05/0.03517, allocations: 0 / 242.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.03517, allocations: 0 / 242.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.975e-05/0.03523, allocations: 4 kB / 242.9 MB, free: 10.93 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.002987/0.03822, allocations: 2.188 MB / 245.1 MB, free: 8.703 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.03825, allocations: 15.83 kB / 245.1 MB, free: 8.688 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003567/0.03861, allocations: 337.8 kB / 245.5 MB, free: 8.34 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007324/0.03934, allocations: 0.512 MB / 246 MB, free: 7.801 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002421/0.03958, allocations: 438.3 kB / 246.4 MB, free: 7.305 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/0.03974, allocations: 164.3 kB / 246.6 MB, free: 7.145 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.04109, allocations: 1.286 MB / 247.8 MB, free: 5.773 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.658e-05/0.04113, allocations: 7.969 kB / 247.9 MB, free: 5.766 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.838e-05/0.04121, allocations: 71.98 kB / 247.9 MB, free: 5.695 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.445e-05/0.04123, allocations: 36 kB / 248 MB, free: 5.66 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007792/0.04201, allocations: 0.5246 MB / 248.5 MB, free: 5.121 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004664/0.04668, allocations: 3.924 MB / 252.4 MB, free: 1 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006111/0.04729, allocations: 0.5157 MB / 252.9 MB, free: 468 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002209/0.04751, allocations: 192.6 kB / 253.1 MB, free: 272 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.778e-05/0.04756, allocations: 17 kB / 253.1 MB, free: 252 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004897/0.04805, allocations: 0.6024 MB / 253.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 7.274e-06/0.04805, allocations: 0 / 253.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.008701/0.05675, allocations: 4.809 MB / 258.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.05679, allocations: 90.11 kB / 258.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004537/0.05725, allocations: 0.6205 MB / 259.2 MB, free: 9.953 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.483e-05/0.05731, allocations: 53.7 kB / 259.3 MB, free: 9.895 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003025/0.05762, allocations: 0.6069 MB / 259.9 MB, free: 9.277 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002181/0.05783, allocations: 420.4 kB / 260.3 MB, free: 8.863 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.0581, allocations: 251.4 kB / 260.6 MB, free: 8.609 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.05822, allocations: 418.5 kB / 261 MB, free: 8.191 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003037/0.05853, allocations: 246.8 kB / 261.2 MB, free: 7.949 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004845/0.05901, allocations: 0.7511 MB / 262 MB, free: 7.039 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000672/0.05968, allocations: 0.7816 MB / 262.7 MB, free: 6.156 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.05969, allocations: 4 kB / 262.7 MB, free: 6.152 MB / 266.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.0009578/0.06064, allocations: 0.889 MB / 263.6 MB, free: 5.246 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.06066, allocations: 8 kB / 263.6 MB, free: 5.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.06067, allocations: 8 kB / 263.7 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002317/0.0609, allocations: 142.5 kB / 263.8 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008356/0.06174, allocations: 395.5 kB / 264.2 MB, free: 4.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/0.06363, allocations: 3.818 MB / 268 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000598/0.06423, allocations: 136 kB / 268.1 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.905e-05/0.06429, allocations: 40 kB / 268.2 MB, free: 460 kB / 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.0003032/0.06459, allocations: 206.3 kB / 268.4 MB, free: 244 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.06472, allocations: 99.91 kB / 268.5 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001148/0.06484, allocations: 133.6 kB / 268.6 MB, free: 4 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/0.06485, allocations: 12.19 kB / 268.6 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.06486, allocations: 3.984 kB / 268.6 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.06487, allocations: 3.938 kB / 268.6 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002477/0.06735, allocations: 2.088 MB / 270.7 MB, free: 13.74 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.06735, allocations: 11.94 kB / 270.7 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005703/0.06792, allocations: 291.9 kB / 271 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000283/0.06821, allocations: 127.3 kB / 271.1 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003107/0.06852, allocations: 297.5 kB / 271.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.584e-05/0.06856, allocations: 39.98 kB / 271.5 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007676/0.06933, allocations: 1.848 MB / 273.3 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/0.06934, allocations: 15.94 kB / 273.3 MB, free: 11.01 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.07044, allocations: 1.234 MB / 274.6 MB, free: 9.637 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.07055, allocations: 47.94 kB / 274.6 MB, free: 9.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004068/0.07095, allocations: 115.9 kB / 274.7 MB, free: 9.477 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.07114, allocations: 148.2 kB / 274.9 MB, free: 9.332 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.161e-05/0.07118, allocations: 35.98 kB / 274.9 MB, free: 9.297 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002122/0.0714, allocations: 280.6 kB / 275.2 MB, free: 9.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.0714, allocations: 8 kB / 275.2 MB, free: 9.012 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008226/0.07222, allocations: 339.9 kB / 275.5 MB, free: 8.68 MB / 282.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.0002282/0.07245, allocations: 164.1 kB / 275.7 MB, free: 8.512 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.07353, allocations: 1.078 MB / 276.7 MB, free: 7.395 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.493e-05/0.07356, allocations: 20.5 kB / 276.8 MB, free: 7.375 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004339/0.074, allocations: 463.5 kB / 277.2 MB, free: 6.914 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006674/0.07467, allocations: 292 kB / 277.5 MB, free: 6.629 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.08525, allocations: 2.932 MB / 280.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/0.08548, allocations: 272.7 kB / 280.7 MB, free: 3.234 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005932/0.08608, allocations: 148.1 kB / 280.8 MB, free: 3.086 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004823/0.08656, allocations: 257.3 kB / 281.1 MB, free: 2.836 MB / 282.7 MB Notification: Performance of SimCode: time 1.553e-06/0.08656, allocations: 4 kB / 281.1 MB, free: 2.832 MB / 282.7 MB Notification: Performance of Templates: time 0.1217/0.2083, allocations: 20.66 MB / 301.8 MB, free: 45.35 MB / 282.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 -ignoreHideResult -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.084261861629784]