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.0009835/0.0009835, allocations: 76.94 kB / 22.28 MB, free: 2.211 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.001064/0.001064, allocations: 165.3 kB / 25.7 MB, free: 7.91 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.8804/0.8804, 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.503e-06/1.503e-06, allocations: 0 / 251.6 MB, free: 7.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.264e-05/2.415e-05, allocations: 6.25 kB / 251.6 MB, free: 7.207 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.009643/0.009667, allocations: 8.828 MB / 260.4 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004553/0.01422, allocations: 2.395 MB / 262.8 MB, free: 11.92 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006608/0.01488, allocations: 31.88 kB / 262.8 MB, free: 11.89 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006267/0.01551, allocations: 325 kB / 263.2 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008007/0.01631, allocations: 0.515 MB / 263.7 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008137/0.01712, allocations: 0.6593 MB / 264.3 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001533/0.01865, allocations: 2.402 MB / 266.7 MB, free: 7.977 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007614/0.01942, allocations: 0.7262 MB / 267.5 MB, free: 7.191 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001/0.02042, allocations: 1.303 MB / 268.8 MB, free: 5.887 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006505/0.02107, allocations: 0.6934 MB / 269.5 MB, free: 5.191 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002199/0.02129, allocations: 276 kB / 269.7 MB, free: 4.922 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003781/0.02167, allocations: 351.9 kB / 270.1 MB, free: 4.578 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003036/0.02197, allocations: 0.518 MB / 270.6 MB, free: 4.059 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004574/0.02243, allocations: 0.6783 MB / 271.3 MB, free: 3.379 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001211/0.02364, allocations: 1.616 MB / 272.9 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.02364, allocations: 0 / 272.9 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.02364, allocations: 3.938 kB / 272.9 MB, free: 1.754 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.02366, allocations: 0 / 272.9 MB, free: 1.754 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.00183/0.02549, allocations: 1.847 MB / 274.7 MB, free: 15.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.02552, allocations: 15.98 kB / 274.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002804/0.0258, allocations: 260.7 kB / 275 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006021/0.0264, allocations: 0.5081 MB / 275.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/0.02662, allocations: 442.3 kB / 275.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.02676, allocations: 164.3 kB / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.02791, allocations: 1.288 MB / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.072e-05/0.02794, allocations: 11.94 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.241e-05/0.02801, allocations: 60 kB / 277.5 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.02803, allocations: 40 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007496/0.02878, allocations: 0.5207 MB / 278 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00408/0.03286, allocations: 3.9 MB / 281.9 MB, free: 8.293 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006079/0.03347, allocations: 0.5157 MB / 282.4 MB, free: 7.754 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.03368, allocations: 188.6 kB / 282.6 MB, free: 7.566 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.728e-05/0.03373, allocations: 20.98 kB / 282.6 MB, free: 7.547 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004304/0.03416, allocations: 0.614 MB / 283.3 MB, free: 6.836 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 1.734e-06/0.03416, allocations: 0 / 283.3 MB, free: 6.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.009141/0.0433, allocations: 4.8 MB / 288.1 MB, free: 1.992 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.915e-05/0.04339, allocations: 299.7 kB / 288.3 MB, free: 1.629 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000433/0.04383, allocations: 0.6167 MB / 289 MB, free: 1 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.237e-05/0.0439, allocations: 53.69 kB / 289 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002722/0.04417, allocations: 0.6147 MB / 289.6 MB, free: 320 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/0.04439, allocations: 416.4 kB / 290 MB, free: 15.9 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003416/0.04473, allocations: 251.4 kB / 290.3 MB, free: 15.65 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.0449, allocations: 418.5 kB / 290.7 MB, free: 15.23 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004548/0.04536, allocations: 238.7 kB / 290.9 MB, free: 15 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008137/0.04617, allocations: 0.7472 MB / 291.7 MB, free: 14.09 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009613/0.04713, allocations: 0.7933 MB / 292.5 MB, free: 13.2 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.04714, allocations: 7.938 kB / 292.5 MB, free: 13.19 MB / 282.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.001316/0.04845, allocations: 0.8882 MB / 293.4 MB, free: 12.29 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.04847, allocations: 8.812 kB / 293.4 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.04849, allocations: 8 kB / 293.4 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000297/0.04878, allocations: 150.5 kB / 293.5 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.04993, allocations: 383.3 kB / 293.9 MB, free: 11.74 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005181/0.05511, allocations: 3.798 MB / 297.7 MB, free: 7.684 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007363/0.05584, allocations: 143.9 kB / 297.8 MB, free: 7.543 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.657e-05/0.05593, allocations: 43.94 kB / 297.9 MB, free: 7.5 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.0003102/0.05624, allocations: 206.4 kB / 298.1 MB, free: 7.289 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.05639, allocations: 103.9 kB / 298.2 MB, free: 7.188 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001348/0.05652, allocations: 125.7 kB / 298.3 MB, free: 7.059 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.05654, allocations: 12 kB / 298.3 MB, free: 7.047 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.05655, allocations: 4 kB / 298.3 MB, free: 7.043 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.05656, allocations: 15.91 kB / 298.3 MB, free: 7.027 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01235/0.06891, allocations: 2.076 MB / 300.4 MB, free: 4.789 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/0.06892, allocations: 16.17 kB / 300.4 MB, free: 4.773 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007704/0.06969, allocations: 271.6 kB / 300.7 MB, free: 4.508 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006391/0.07608, allocations: 301.6 kB / 301 MB, free: 4.207 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-05/0.07615, allocations: 39.92 kB / 301 MB, free: 4.168 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009589/0.07711, allocations: 1.84 MB / 302.9 MB, free: 2.219 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.393e-06/0.07712, allocations: 16 kB / 302.9 MB, free: 2.203 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.07854, allocations: 1.233 MB / 304.1 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0063/0.08484, allocations: 127.3 kB / 304.2 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.08496, allocations: 40 kB / 304.3 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005557/0.08551, allocations: 115.9 kB / 304.4 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/0.08576, allocations: 152.2 kB / 304.5 MB, free: 408 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.854e-05/0.08582, allocations: 39.98 kB / 304.6 MB, free: 368 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002674/0.08609, allocations: 276.6 kB / 304.9 MB, free: 96 kB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.08609, allocations: 0 / 304.9 MB, free: 96 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.000961/0.08705, allocations: 348 kB / 305.2 MB, free: 15.75 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.0002243/0.08728, allocations: 171.8 kB / 305.4 MB, free: 15.58 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.007068/0.09434, allocations: 1.074 MB / 306.4 MB, free: 14.47 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.441e-05/0.09437, allocations: 16.5 kB / 306.4 MB, free: 14.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005208/0.09489, allocations: 468 kB / 306.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007868/0.09568, allocations: 223.5 kB / 307.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003654/0.09933, allocations: 2.551 MB / 309.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.09954, allocations: 256.7 kB / 309.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005563/0.1001, allocations: 156.1 kB / 310.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006079/0.1007, allocations: 257.2 kB / 310.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of SimCode: time 8.51e-07/0.1007, allocations: 0 / 310.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of Templates: time 0.02427/0.125, allocations: 19.92 MB / 330.3 MB, free: 6.445 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 -s gbode -gbm=radauIIA3 -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.9997353721410036]