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.001144/0.001144, allocations: 81.05 kB / 10.02 MB, free: 0.668 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001916/0.00306, allocations: 453.8 kB / 10.46 MB, free: 232 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.001235/0.001235, allocations: 165.1 kB / 11.36 MB, free: 2.809 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001752/0.002987, allocations: 483.5 kB / 11.83 MB, free: 2.332 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.9751/0.9751, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1926/1.168, allocations: 49.49 MB / 220.7 MB, free: 1.359 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.683e-06/1.683e-06, allocations: 0 / 222 MB, free: 72 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.119e-05/3.287e-05, allocations: 10.11 kB / 222 MB, free: 64 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01162/0.01165, allocations: 8.867 MB / 230.9 MB, free: 7.141 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007494/0.01915, allocations: 2.407 MB / 233.3 MB, free: 4.723 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002832/0.02198, allocations: 35.81 kB / 233.3 MB, free: 4.688 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00147/0.02345, allocations: 329 kB / 233.6 MB, free: 4.363 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002875/0.02632, allocations: 0.5189 MB / 234.1 MB, free: 3.84 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001894/0.02822, allocations: 0.6554 MB / 234.8 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003669/0.03189, allocations: 2.399 MB / 237.2 MB, free: 0.7773 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001607/0.0335, allocations: 0.7224 MB / 237.9 MB, free: 16 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002735/0.03623, allocations: 1.411 MB / 239.3 MB, free: 14.58 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.03748, allocations: 0.6934 MB / 240 MB, free: 13.88 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004348/0.03791, allocations: 280 kB / 240.3 MB, free: 13.61 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007609/0.03867, allocations: 339.9 kB / 240.6 MB, free: 13.28 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004305/0.0391, allocations: 411 kB / 241 MB, free: 12.88 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007938/0.0399, allocations: 0.5694 MB / 241.6 MB, free: 12.3 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002422/0.04232, allocations: 1.48 MB / 243.1 MB, free: 10.82 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.4e-05/0.04233, allocations: 0 / 243.1 MB, free: 10.82 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.04233, allocations: 0 / 243.1 MB, free: 10.82 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.66e-05/0.04238, allocations: 4 kB / 243.1 MB, free: 10.82 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.003602/0.04598, allocations: 2.184 MB / 245.3 MB, free: 8.598 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.04603, allocations: 11.89 kB / 245.3 MB, free: 8.586 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005465/0.04658, allocations: 337.8 kB / 245.6 MB, free: 8.238 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.04762, allocations: 0.512 MB / 246.1 MB, free: 7.699 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003725/0.04799, allocations: 442.3 kB / 246.6 MB, free: 7.199 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002533/0.04825, allocations: 160.3 kB / 246.7 MB, free: 7.043 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.05025, allocations: 1.294 MB / 248 MB, free: 5.664 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.087e-05/0.0503, allocations: 4 kB / 248 MB, free: 5.66 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.05041, allocations: 64 kB / 248.1 MB, free: 5.598 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.592e-05/0.05045, allocations: 40 kB / 248.1 MB, free: 5.559 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00128/0.05173, allocations: 0.5246 MB / 248.6 MB, free: 5.02 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006936/0.05867, allocations: 3.927 MB / 252.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009973/0.05966, allocations: 0.5118 MB / 253.1 MB, free: 364 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003477/0.06001, allocations: 196.5 kB / 253.3 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001477/0.06016, allocations: 17 kB / 253.3 MB, free: 144 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007051/0.06086, allocations: 0.6024 MB / 253.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 3.046e-06/0.06087, allocations: 0 / 253.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.009802/0.07067, allocations: 4.889 MB / 258.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.07072, allocations: 94.11 kB / 258.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005017/0.07122, allocations: 0.6127 MB / 259.5 MB, free: 9.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.124e-05/0.07129, allocations: 53.7 kB / 259.5 MB, free: 9.711 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003395/0.07163, allocations: 0.6108 MB / 260.1 MB, free: 9.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002398/0.07187, allocations: 420.4 kB / 260.6 MB, free: 8.676 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002674/0.07214, allocations: 251.4 kB / 260.8 MB, free: 8.422 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.07227, allocations: 406.5 kB / 261.2 MB, free: 8.016 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003229/0.0726, allocations: 242.7 kB / 261.4 MB, free: 7.777 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000521/0.07312, allocations: 0.7589 MB / 262.2 MB, free: 6.859 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008335/0.07395, allocations: 0.8141 MB / 263 MB, free: 5.941 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/0.07396, allocations: 0 / 263 MB, free: 5.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.001066/0.07502, allocations: 0.9007 MB / 263.9 MB, free: 5.023 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.07504, allocations: 8 kB / 263.9 MB, free: 5.016 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.07505, allocations: 8 kB / 263.9 MB, free: 5.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002524/0.07531, allocations: 138.5 kB / 264.1 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008741/0.07618, allocations: 395.4 kB / 264.4 MB, free: 4.477 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00201/0.07819, allocations: 3.814 MB / 268.3 MB, free: 416 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006149/0.0788, allocations: 140 kB / 268.4 MB, free: 276 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.145e-05/0.07887, allocations: 47.97 kB / 268.4 MB, free: 228 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.0003339/0.0792, allocations: 198.4 kB / 268.6 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.07934, allocations: 107.8 kB / 268.7 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.07947, allocations: 133.6 kB / 268.9 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.07947, allocations: 12 kB / 268.9 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.07948, allocations: 0 / 268.9 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.07949, allocations: 3.984 kB / 268.9 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002506/0.082, allocations: 2.096 MB / 271 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.08201, allocations: 11.94 kB / 271 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005922/0.0826, allocations: 287.6 kB / 271.3 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002298/0.08283, allocations: 123.5 kB / 271.4 MB, free: 13.1 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003099/0.08314, allocations: 297.5 kB / 271.7 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.741e-05/0.08319, allocations: 35.98 kB / 271.7 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008814/0.08407, allocations: 1.852 MB / 273.6 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.195e-06/0.08408, allocations: 11.94 kB / 273.6 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001212/0.08529, allocations: 1.23 MB / 274.8 MB, free: 9.422 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.927e-05/0.08539, allocations: 47.94 kB / 274.9 MB, free: 9.375 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004096/0.0858, allocations: 111.9 kB / 275 MB, free: 9.266 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002202/0.08602, allocations: 156.2 kB / 275.1 MB, free: 9.113 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.405e-05/0.08606, allocations: 32 kB / 275.2 MB, free: 9.082 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002629/0.08632, allocations: 288.5 kB / 275.4 MB, free: 8.797 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08632, allocations: 0 / 275.4 MB, free: 8.797 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009714/0.0873, allocations: 347.9 kB / 275.8 MB, free: 8.457 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.0003234/0.08762, allocations: 164.5 kB / 275.9 MB, free: 8.285 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.08882, allocations: 1.096 MB / 277 MB, free: 7.152 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.799e-05/0.08886, allocations: 28.42 kB / 277.1 MB, free: 7.125 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005655/0.08942, allocations: 0.5142 MB / 277.6 MB, free: 6.602 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.09053, allocations: 1.509 MB / 279.1 MB, free: 4.828 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/0.101, allocations: 2.923 MB / 282 MB, free: 1.734 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.1012, allocations: 268.8 kB / 282.3 MB, free: 1.449 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005423/0.1018, allocations: 156.2 kB / 282.4 MB, free: 1.293 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000502/0.1023, allocations: 265.2 kB / 282.7 MB, free: 1.031 MB / 282.7 MB Notification: Performance of SimCode: time 1.473e-06/0.1023, allocations: 0 / 282.7 MB, free: 1.031 MB / 282.7 MB Notification: Performance of Templates: time 0.1324/0.2347, allocations: 20.77 MB / 303.4 MB, free: 43.32 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.335870943032205]