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.001039/0.001039, allocations: 75.75 kB / 21.97 MB, free: 2.594 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.001047/0.001047, allocations: 164.8 kB / 25.33 MB, free: 9.121 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.9226/0.9226, allocations: 158.6 MB / 187.2 MB, free: 2.492 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.235e-06/2.235e-06, allocations: 3.938 kB / 251.1 MB, free: 3.57 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.62e-05/3.843e-05, allocations: 6.312 kB / 251.1 MB, free: 3.562 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01285/0.01288, allocations: 9.057 MB / 260.1 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007406/0.02029, allocations: 2.307 MB / 262.4 MB, free: 8.137 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001871/0.02216, allocations: 35.81 kB / 262.5 MB, free: 8.102 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.02326, allocations: 329 kB / 262.8 MB, free: 7.777 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001557/0.02481, allocations: 0.5189 MB / 263.3 MB, free: 7.254 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.02589, allocations: 0.6632 MB / 264 MB, free: 6.59 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002249/0.02814, allocations: 2.402 MB / 266.4 MB, free: 4.176 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000979/0.02912, allocations: 0.6983 MB / 267.1 MB, free: 3.43 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001606/0.03072, allocations: 1.306 MB / 268.4 MB, free: 2.121 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009576/0.03168, allocations: 0.6895 MB / 269.1 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004117/0.03209, allocations: 276 kB / 269.3 MB, free: 1.16 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005201/0.03261, allocations: 335.9 kB / 269.7 MB, free: 0.832 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003652/0.03298, allocations: 0.5181 MB / 270.2 MB, free: 320 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008636/0.03384, allocations: 0.694 MB / 270.9 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001752/0.03559, allocations: 1.612 MB / 272.5 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.0356, allocations: 0 / 272.5 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.0356, allocations: 0 / 272.5 MB, free: 14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.002e-05/0.03565, allocations: 0 / 272.5 MB, free: 14 MB / 266.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.0026/0.03825, allocations: 1.971 MB / 274.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.03829, allocations: 19.92 kB / 274.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004115/0.0387, allocations: 319.8 kB / 274.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008963/0.0396, allocations: 0.7764 MB / 275.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002539/0.03985, allocations: 442.3 kB / 276 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/0.04002, allocations: 160.3 kB / 276.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002278/0.0423, allocations: 1.391 MB / 277.5 MB, free: 8.711 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.057e-05/0.04234, allocations: 7.953 kB / 277.5 MB, free: 8.703 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.833e-05/0.04243, allocations: 67.94 kB / 277.6 MB, free: 8.637 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/0.04245, allocations: 36 kB / 277.6 MB, free: 8.602 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.04377, allocations: 0.7632 MB / 278.4 MB, free: 7.832 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005552/0.04933, allocations: 4.853 MB / 283.3 MB, free: 2.773 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009368/0.05026, allocations: 0.5835 MB / 283.8 MB, free: 2.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003841/0.05065, allocations: 272.9 kB / 284.1 MB, free: 1.891 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.744e-05/0.0507, allocations: 17 kB / 284.1 MB, free: 1.875 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006631/0.05137, allocations: 0.672 MB / 284.8 MB, free: 1.094 MB / 266.7 MB Notification: Performance of pre-optimization done (n=91): time 2.695e-06/0.05137, allocations: 0 / 284.8 MB, free: 1.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=121): time 0.009501/0.06087, allocations: 4.972 MB / 289.8 MB, free: 12.07 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.06099, allocations: 295.7 kB / 290.1 MB, free: 11.71 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007018/0.06169, allocations: 0.7101 MB / 290.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.166e-05/0.06177, allocations: 57.69 kB / 290.8 MB, free: 10.92 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004296/0.0622, allocations: 0.7256 MB / 291.6 MB, free: 10.18 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002985/0.0625, allocations: 424.4 kB / 292 MB, free: 9.766 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003296/0.06283, allocations: 249.2 kB / 292.2 MB, free: 9.516 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002216/0.06305, allocations: 0.5781 MB / 292.8 MB, free: 8.926 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006425/0.06369, allocations: 379.8 kB / 293.2 MB, free: 8.555 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008517/0.06455, allocations: 0.9868 MB / 294.1 MB, free: 7.363 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001167/0.06571, allocations: 1.011 MB / 295.2 MB, free: 6.227 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.06572, allocations: 0 / 295.2 MB, free: 6.227 MB / 282.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.001786/0.06751, allocations: 1.3 MB / 296.5 MB, free: 4.906 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.06753, allocations: 8 kB / 296.5 MB, free: 4.898 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.06755, allocations: 8 kB / 296.5 MB, free: 4.891 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003666/0.06791, allocations: 175.5 kB / 296.6 MB, free: 4.707 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008428/0.06876, allocations: 331.5 kB / 297 MB, free: 4.383 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.133/0.2018, allocations: 5.645 MB / 302.6 MB, free: 51.78 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/0.2029, allocations: 143.3 kB / 302.8 MB, free: 51.78 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.203, allocations: 50.2 kB / 302.8 MB, free: 51.78 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.0004023/0.2034, allocations: 257.2 kB / 303.1 MB, free: 51.61 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/0.2036, allocations: 142.7 kB / 303.2 MB, free: 51.61 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001352/0.2037, allocations: 131 kB / 303.3 MB, free: 51.6 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.2037, allocations: 12.97 kB / 303.3 MB, free: 51.6 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.2037, allocations: 2.156 kB / 303.3 MB, free: 51.6 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.2037, allocations: 6.375 kB / 303.3 MB, free: 51.6 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003991/0.2077, allocations: 2.991 MB / 306.3 MB, free: 50.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/0.2077, allocations: 8.656 kB / 306.3 MB, free: 50.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006429/0.2084, allocations: 249 kB / 306.6 MB, free: 50.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004936/0.2089, allocations: 333.5 kB / 306.9 MB, free: 50.64 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.29e-05/0.209, allocations: 40.8 kB / 306.9 MB, free: 50.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009935/0.2099, allocations: 2.764 MB / 309.7 MB, free: 48.13 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.111e-05/0.21, allocations: 14 kB / 309.7 MB, free: 48.13 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.2119, allocations: 1.698 MB / 311.4 MB, free: 47.38 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003521/0.2122, allocations: 249 kB / 311.7 MB, free: 47.3 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.2123, allocations: 51.64 kB / 311.7 MB, free: 47.28 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000485/0.2128, allocations: 118.9 kB / 311.8 MB, free: 47.26 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/0.213, allocations: 151.4 kB / 312 MB, free: 47.23 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.797e-05/0.2131, allocations: 49.14 kB / 312 MB, free: 47.21 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004081/0.2135, allocations: 443.9 kB / 312.5 MB, free: 47.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2135, allocations: 0 / 312.5 MB, free: 47.02 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008351/0.2144, allocations: 349.5 kB / 312.8 MB, free: 46.98 MB / 282.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.0002351/0.2146, allocations: 185.4 kB / 313 MB, free: 46.86 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.2162, allocations: 1.435 MB / 314.4 MB, free: 46.14 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.2162, allocations: 1.375 kB / 314.4 MB, free: 46.14 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006257/0.2168, allocations: 0.5744 MB / 315 MB, free: 45.86 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007033/0.2175, allocations: 215.9 kB / 315.2 MB, free: 45.79 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003278/0.2208, allocations: 2.823 MB / 318 MB, free: 43.95 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001621/0.221, allocations: 260.9 kB / 318.3 MB, free: 43.86 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003919/0.2214, allocations: 161.4 kB / 318.4 MB, free: 43.8 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002446/0.2216, allocations: 82.53 kB / 318.5 MB, free: 43.79 MB / 282.7 MB Notification: Performance of SimCode: time 7.81e-07/0.2216, allocations: 0 / 318.5 MB, free: 43.79 MB / 282.7 MB Notification: Performance of Templates: time 0.01764/0.2393, allocations: 18.2 MB / 336.7 MB, free: 28.47 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 -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.3923554541543126]