Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001247/0.001247, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001201/0.001201, allocations: 168.4 kB / 25.62 MB, free: 8.914 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9378/0.9378, allocations: 177.1 MB / 206.1 MB, free: 4.523 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 3.938 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.044e-05/2.168e-05, allocations: 2.312 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007247/0.007269, allocations: 8.969 MB / 283.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003581/0.01085, allocations: 2.43 MB / 285.6 MB, free: 8.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006052/0.01145, allocations: 31.88 kB / 285.6 MB, free: 8.949 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007691/0.01222, allocations: 352.8 kB / 286 MB, free: 8.602 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009081/0.01313, allocations: 0.5189 MB / 286.5 MB, free: 8.078 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000899/0.01403, allocations: 0.6709 MB / 287.2 MB, free: 7.406 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00201/0.01604, allocations: 2.43 MB / 289.6 MB, free: 4.969 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008303/0.01687, allocations: 0.6944 MB / 290.3 MB, free: 4.223 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001164/0.01803, allocations: 1.326 MB / 291.6 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006385/0.01867, allocations: 0.7051 MB / 292.3 MB, free: 2.188 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002256/0.0189, allocations: 280 kB / 292.6 MB, free: 1.914 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004314/0.01933, allocations: 347.8 kB / 292.9 MB, free: 1.574 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003131/0.01964, allocations: 0.5258 MB / 293.5 MB, free: 1.047 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004978/0.02014, allocations: 0.6939 MB / 294.2 MB, free: 360 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001392/0.02153, allocations: 1.636 MB / 295.8 MB, free: 14.71 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.02154, allocations: 0 / 295.8 MB, free: 14.71 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.02154, allocations: 0 / 295.8 MB, free: 14.71 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.02155, allocations: 0 / 295.8 MB, free: 14.71 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.002715/0.02427, allocations: 2.021 MB / 297.8 MB, free: 12.64 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.02431, allocations: 8.031 kB / 297.8 MB, free: 12.63 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003891/0.0247, allocations: 323.8 kB / 298.1 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008038/0.0255, allocations: 0.7841 MB / 298.9 MB, free: 11.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000251/0.02575, allocations: 438.3 kB / 299.4 MB, free: 11 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/0.02592, allocations: 164.3 kB / 299.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.02726, allocations: 1.258 MB / 300.8 MB, free: 9.5 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.638e-05/0.02729, allocations: 7.953 kB / 300.8 MB, free: 9.492 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.704e-05/0.02739, allocations: 60 kB / 300.8 MB, free: 9.434 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.247e-05/0.02741, allocations: 40 kB / 300.9 MB, free: 9.395 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008547/0.02827, allocations: 0.579 MB / 301.5 MB, free: 8.805 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005553/0.03382, allocations: 4.849 MB / 306.3 MB, free: 3.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007426/0.03456, allocations: 0.5112 MB / 306.8 MB, free: 3.207 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002595/0.03482, allocations: 206.2 kB / 307 MB, free: 3 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.889e-05/0.03487, allocations: 17 kB / 307 MB, free: 2.984 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005021/0.03537, allocations: 0.6133 MB / 307.7 MB, free: 2.262 MB / 282.7 MB Notification: Performance of pre-optimization done (n=90): time 2.054e-06/0.03537, allocations: 0 / 307.7 MB, free: 2.262 MB / 282.7 MB Notification: Performance of matching and sorting (n=119): time 0.008109/0.04348, allocations: 4.132 MB / 311.8 MB, free: 14.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.97e-05/0.04357, allocations: 299.7 kB / 312.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005053/0.04408, allocations: 0.6901 MB / 312.8 MB, free: 13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.301e-05/0.04415, allocations: 53.7 kB / 312.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000354/0.04451, allocations: 0.741 MB / 313.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/0.04473, allocations: 420.4 kB / 314 MB, free: 11.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002948/0.04503, allocations: 257.1 kB / 314.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.0452, allocations: 0.5896 MB / 314.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003606/0.04556, allocations: 267.8 kB / 315.1 MB, free: 10.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005819/0.04614, allocations: 0.886 MB / 316 MB, free: 9.566 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007876/0.04693, allocations: 0.8424 MB / 316.8 MB, free: 8.594 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.04693, allocations: 4 kB / 316.8 MB, free: 8.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.001549/0.04848, allocations: 1.093 MB / 317.9 MB, free: 7.477 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.0485, allocations: 11.94 kB / 317.9 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.04851, allocations: 11.94 kB / 317.9 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002939/0.04881, allocations: 186.9 kB / 318.1 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007973/0.04961, allocations: 335.4 kB / 318.4 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002429/0.05203, allocations: 5.589 MB / 324 MB, free: 1.004 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007196/0.05275, allocations: 140 kB / 324.2 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.676e-05/0.05282, allocations: 40 kB / 324.2 MB, free: 0.8281 MB / 298.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 (168): * Single equations (assignments): 165 * 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.0003693/0.05319, allocations: 258.1 kB / 324.4 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.05337, allocations: 147.3 kB / 324.6 MB, free: 428 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003987/0.05377, allocations: 129.7 kB / 324.7 MB, free: 288 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.05378, allocations: 12 kB / 324.7 MB, free: 276 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.05379, allocations: 0 / 324.7 MB, free: 276 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.0538, allocations: 7.969 kB / 324.7 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003171/0.05697, allocations: 2.63 MB / 327.4 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/0.05698, allocations: 8 kB / 327.4 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005686/0.05754, allocations: 243.6 kB / 327.6 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003395/0.05788, allocations: 231.2 kB / 327.8 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-05/0.05795, allocations: 39.98 kB / 327.9 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001207/0.05915, allocations: 2.619 MB / 330.5 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/0.05916, allocations: 19.88 kB / 330.5 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.06105, allocations: 1.428 MB / 331.9 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004108/0.06147, allocations: 243.2 kB / 332.2 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.06158, allocations: 51.92 kB / 332.2 MB, free: 8.203 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005041/0.06209, allocations: 115.9 kB / 332.3 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/0.06231, allocations: 148.2 kB / 332.5 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.095e-05/0.06236, allocations: 43.98 kB / 332.5 MB, free: 7.902 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003174/0.06267, allocations: 406.8 kB / 332.9 MB, free: 7.508 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.06267, allocations: 0 / 332.9 MB, free: 7.508 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009557/0.06363, allocations: 347.9 kB / 333.3 MB, free: 7.168 MB / 314.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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008587/0.06449, allocations: 410.2 kB / 333.7 MB, free: 6.879 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.06611, allocations: 1.266 MB / 334.9 MB, free: 5.566 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.06612, allocations: 0 / 334.9 MB, free: 5.566 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006351/0.06676, allocations: 0.521 MB / 335.5 MB, free: 5.023 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008863/0.06764, allocations: 220.2 kB / 335.7 MB, free: 4.812 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003856/0.0715, allocations: 2.787 MB / 338.5 MB, free: 1.82 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.07172, allocations: 257.4 kB / 338.7 MB, free: 1.543 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008558/0.07258, allocations: 152 kB / 338.9 MB, free: 1.391 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005224/0.0731, allocations: 294.1 kB / 339.1 MB, free: 1.102 MB / 314.7 MB Notification: Performance of SimCode: time 1.813e-06/0.0731, allocations: 0 / 339.1 MB, free: 1.102 MB / 314.7 MB Notification: Performance of Templates: time 0.1279/0.201, allocations: 20.3 MB / 359.5 MB, free: 80.33 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.379468545783311]