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.000993/0.000993, allocations: 84.3 kB / 22.21 MB, free: 2.289 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.00109/0.00109, allocations: 165.2 kB / 25.6 MB, free: 8.898 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.9922/0.9922, allocations: 158.6 MB / 187.5 MB, free: 2.816 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 2.164e-06/2.164e-06, allocations: 0 / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.219e-05/3.435e-05, allocations: 6.25 kB / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01078/0.01082, allocations: 8.769 MB / 260.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005819/0.01663, allocations: 2.287 MB / 262.5 MB, free: 12.12 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.01842, allocations: 35.81 kB / 262.6 MB, free: 12.08 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.01958, allocations: 325.1 kB / 262.9 MB, free: 11.76 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002074/0.02166, allocations: 0.5266 MB / 263.4 MB, free: 11.23 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001603/0.02326, allocations: 0.6632 MB / 264.1 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003155/0.02641, allocations: 2.402 MB / 266.5 MB, free: 8.152 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001497/0.02791, allocations: 0.6983 MB / 267.2 MB, free: 7.406 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002219/0.03013, allocations: 1.314 MB / 268.5 MB, free: 6.09 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008919/0.03102, allocations: 0.6856 MB / 269.2 MB, free: 5.402 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002994/0.03132, allocations: 276 kB / 269.5 MB, free: 5.133 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005271/0.03185, allocations: 335.9 kB / 269.8 MB, free: 4.805 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003252/0.03217, allocations: 0.5142 MB / 270.3 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008411/0.03302, allocations: 0.6861 MB / 271 MB, free: 3.602 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001729/0.03474, allocations: 1.62 MB / 272.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.03475, allocations: 0 / 272.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.03475, allocations: 0 / 272.6 MB, free: 1.977 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.431e-05/0.03478, allocations: 4 kB / 272.6 MB, free: 1.973 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.002463/0.03724, allocations: 1.99 MB / 274.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.03729, allocations: 11.98 kB / 274.6 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000402/0.03769, allocations: 319.8 kB / 274.9 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008094/0.0385, allocations: 0.7686 MB / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003517/0.03885, allocations: 442.3 kB / 276.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.03902, allocations: 160.3 kB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.04039, allocations: 1.262 MB / 277.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.531e-05/0.04043, allocations: 7.938 kB / 277.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.958e-05/0.04052, allocations: 72 kB / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-05/0.04054, allocations: 36 kB / 277.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008566/0.04139, allocations: 0.5945 MB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005448/0.04684, allocations: 4.872 MB / 283.1 MB, free: 7.012 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007175/0.04756, allocations: 0.5224 MB / 283.6 MB, free: 6.461 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002697/0.04783, allocations: 219.1 kB / 283.9 MB, free: 6.242 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.67e-05/0.04788, allocations: 13 kB / 283.9 MB, free: 6.23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005322/0.04841, allocations: 0.625 MB / 284.5 MB, free: 5.496 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 2.675e-06/0.04841, allocations: 0 / 284.5 MB, free: 5.496 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.00841/0.05682, allocations: 4.236 MB / 288.7 MB, free: 1.207 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.05693, allocations: 295.7 kB / 289 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005842/0.05751, allocations: 0.6823 MB / 289.7 MB, free: 156 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.949e-05/0.05759, allocations: 57.69 kB / 289.8 MB, free: 92 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004221/0.05802, allocations: 0.7255 MB / 290.5 MB, free: 15.35 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002527/0.05827, allocations: 428.3 kB / 290.9 MB, free: 14.93 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000329/0.0586, allocations: 261.1 kB / 291.2 MB, free: 14.67 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000221/0.05882, allocations: 0.5779 MB / 291.7 MB, free: 14.08 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003923/0.05921, allocations: 279.8 kB / 292 MB, free: 13.8 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006572/0.05987, allocations: 0.9016 MB / 292.9 MB, free: 12.7 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008404/0.06071, allocations: 0.8698 MB / 293.8 MB, free: 11.7 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.06071, allocations: 0 / 293.8 MB, free: 11.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.001366/0.06208, allocations: 1.128 MB / 294.9 MB, free: 10.55 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.06211, allocations: 11.98 kB / 294.9 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.06212, allocations: 8 kB / 294.9 MB, free: 10.53 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002882/0.06241, allocations: 151.3 kB / 295.1 MB, free: 10.37 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000788/0.06319, allocations: 331.5 kB / 295.4 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003048/0.06624, allocations: 5.592 MB / 301 MB, free: 4.113 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009296/0.06717, allocations: 144 kB / 301.1 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.231e-05/0.06724, allocations: 40 kB / 301.2 MB, free: 3.934 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.0004359/0.06768, allocations: 246.2 kB / 301.4 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.06787, allocations: 147.3 kB / 301.6 MB, free: 3.535 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.06799, allocations: 125.6 kB / 301.7 MB, free: 3.402 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.068, allocations: 12.14 kB / 301.7 MB, free: 3.391 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.06801, allocations: 7.938 kB / 301.7 MB, free: 3.383 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.477e-06/0.06802, allocations: 11.95 kB / 301.7 MB, free: 3.371 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003395/0.07142, allocations: 2.681 MB / 304.4 MB, free: 492 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.07142, allocations: 8 kB / 304.4 MB, free: 484 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005508/0.07198, allocations: 247.5 kB / 304.6 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003717/0.07235, allocations: 307.6 kB / 304.9 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.501e-05/0.0724, allocations: 39.98 kB / 305 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001264/0.07367, allocations: 2.701 MB / 307.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.07367, allocations: 11.94 kB / 307.7 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001528/0.0752, allocations: 1.494 MB / 309.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003468/0.07555, allocations: 243.2 kB / 309.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.792e-05/0.07565, allocations: 47.98 kB / 309.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004424/0.07609, allocations: 107.9 kB / 309.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/0.07628, allocations: 156.2 kB / 309.7 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.583e-05/0.07633, allocations: 39.92 kB / 309.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003093/0.07664, allocations: 410.8 kB / 310.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.07664, allocations: 0 / 310.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009925/0.07763, allocations: 347.9 kB / 310.5 MB, free: 10.02 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.000235/0.07787, allocations: 182.7 kB / 310.7 MB, free: 9.832 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.07918, allocations: 1.298 MB / 312 MB, free: 8.484 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.07919, allocations: 0 / 312 MB, free: 8.484 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005104/0.0797, allocations: 0.5195 MB / 312.5 MB, free: 7.941 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006856/0.08038, allocations: 196.3 kB / 312.7 MB, free: 7.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003464/0.08385, allocations: 2.765 MB / 315.5 MB, free: 4.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.08405, allocations: 252.6 kB / 315.7 MB, free: 4.5 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004911/0.08454, allocations: 151.9 kB / 315.9 MB, free: 4.348 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005215/0.08506, allocations: 286.1 kB / 316.1 MB, free: 4.066 MB / 298.7 MB Notification: Performance of SimCode: time 1.432e-06/0.08506, allocations: 0 / 316.1 MB, free: 4.066 MB / 298.7 MB Notification: Performance of Templates: time 0.02421/0.1093, allocations: 19.57 MB / 335.7 MB, free: 0.4961 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: 3.206766919232905]