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.001945/0.001945, allocations: 87.67 kB / 20.96 MB, free: 3.586 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.002122/0.002122, allocations: 161.3 kB / 24.27 MB, free: 280 kB / 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 1.52/1.52, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.864e-06/1.864e-06, allocations: 0 / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.801e-05/2.988e-05, allocations: 2.312 kB / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01387/0.0139, allocations: 9.21 MB / 281.5 MB, free: 8.551 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005914/0.01982, allocations: 2.423 MB / 284 MB, free: 6.121 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.02094, allocations: 31.88 kB / 284 MB, free: 6.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009964/0.02194, allocations: 356.8 kB / 284.3 MB, free: 5.738 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001578/0.02352, allocations: 0.5228 MB / 284.9 MB, free: 5.211 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001908/0.02543, allocations: 0.667 MB / 285.5 MB, free: 4.543 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003353/0.02878, allocations: 2.43 MB / 288 MB, free: 2.105 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001374/0.03015, allocations: 0.7022 MB / 288.7 MB, free: 1.355 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00217/0.03232, allocations: 1.326 MB / 290 MB, free: 28 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1204/0.1527, allocations: 0.6852 MB / 290.7 MB, free: 17.49 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005113/0.1532, allocations: 282.9 kB / 291 MB, free: 17.49 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007812/0.154, allocations: 348.6 kB / 291.3 MB, free: 17.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003873/0.1544, allocations: 0.5269 MB / 291.8 MB, free: 17.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007557/0.1551, allocations: 0.6897 MB / 292.5 MB, free: 17.49 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00364/0.1588, allocations: 3.55 MB / 296.1 MB, free: 17.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1588, allocations: 4.375 kB / 296.1 MB, free: 17.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1588, allocations: 0 / 296.1 MB, free: 17.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.154e-05/0.1588, allocations: 1.125 kB / 296.1 MB, free: 17.36 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.004/0.1628, allocations: 2.202 MB / 298.3 MB, free: 16.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.1629, allocations: 9.719 kB / 298.3 MB, free: 16.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005672/0.1634, allocations: 325.1 kB / 298.6 MB, free: 16.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.1646, allocations: 0.8046 MB / 299.4 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002608/0.1649, allocations: 438.9 kB / 299.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002376/0.1651, allocations: 162.2 kB / 300 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003021/0.1681, allocations: 1.953 MB / 301.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.183e-05/0.1682, allocations: 6.406 kB / 301.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001452/0.1683, allocations: 65.81 kB / 302 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.956e-05/0.1684, allocations: 36.72 kB / 302 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002989/0.1714, allocations: 1.418 MB / 303.5 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009479/0.1808, allocations: 7.812 MB / 311.3 MB, free: 8.148 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001834/0.1827, allocations: 0.9027 MB / 312.2 MB, free: 7.691 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008883/0.1836, allocations: 472.1 kB / 312.6 MB, free: 7.469 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-05/0.1836, allocations: 18.67 kB / 312.7 MB, free: 7.461 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001152/0.1848, allocations: 0.9155 MB / 313.6 MB, free: 6.562 MB / 266.7 MB Notification: Performance of pre-optimization done (n=92): time 2.545e-06/0.1848, allocations: 0 / 313.6 MB, free: 6.562 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.02051/0.2053, allocations: 6.834 MB / 320.4 MB, free: 15.72 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002153/0.2055, allocations: 295.7 kB / 320.7 MB, free: 15.37 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001576/0.2071, allocations: 1.019 MB / 321.7 MB, free: 14.33 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/0.2072, allocations: 53.7 kB / 321.8 MB, free: 14.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001079/0.2083, allocations: 0.7891 MB / 322.6 MB, free: 13.47 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005533/0.2089, allocations: 477.6 kB / 323 MB, free: 13.01 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006747/0.2096, allocations: 336.9 kB / 323.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0005347/0.2101, allocations: 0.6864 MB / 324 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002065/0.2122, allocations: 0.7262 MB / 324.8 MB, free: 11.26 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002704/0.2149, allocations: 1.416 MB / 326.2 MB, free: 9.645 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004242/0.2191, allocations: 1.706 MB / 327.9 MB, free: 7.836 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.2191, allocations: 0 / 327.9 MB, free: 7.836 MB / 282.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005637/0.2247, allocations: 2.007 MB / 329.9 MB, free: 5.852 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.2248, allocations: 8 kB / 329.9 MB, free: 5.844 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.2248, allocations: 4 kB / 329.9 MB, free: 5.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006948/0.2255, allocations: 254.5 kB / 330.2 MB, free: 5.586 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/0.2272, allocations: 334.8 kB / 330.5 MB, free: 5.273 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00602/0.2332, allocations: 6.109 MB / 336.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/0.2349, allocations: 146.8 kB / 336.7 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003806/0.2353, allocations: 48 kB / 336.8 MB, free: 14.64 MB / 298.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 (170): * Single equations (assignments): 167 * 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.0008734/0.2361, allocations: 421.7 kB / 337.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000318/0.2365, allocations: 147.3 kB / 337.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003383/0.2368, allocations: 129.8 kB / 337.5 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.2368, allocations: 16 kB / 337.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.2368, allocations: 3.938 kB / 337.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.2368, allocations: 4.125 kB / 337.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009104/0.2459, allocations: 4.38 MB / 341.9 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.709e-05/0.246, allocations: 12 kB / 341.9 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001173/0.2471, allocations: 255.6 kB / 342.1 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006493/0.2478, allocations: 291.2 kB / 342.4 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.2479, allocations: 39.98 kB / 342.4 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002784/0.2507, allocations: 2.854 MB / 345.3 MB, free: 5.863 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.23e-05/0.2507, allocations: 15.19 kB / 345.3 MB, free: 5.852 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005436/0.2561, allocations: 2.475 MB / 347.8 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006645/0.2568, allocations: 255.1 kB / 348 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000201/0.257, allocations: 43.28 kB / 348.1 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.258, allocations: 115.9 kB / 348.2 MB, free: 2.785 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003907/0.2584, allocations: 183.3 kB / 348.4 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.2585, allocations: 47.98 kB / 348.4 MB, free: 2.566 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009343/0.2594, allocations: 0.5927 MB / 349 MB, free: 1.973 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2594, allocations: 8 kB / 349 MB, free: 1.965 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00131/0.2608, allocations: 336 kB / 349.4 MB, free: 1.633 MB / 298.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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002595/0.2634, allocations: 453 kB / 349.8 MB, free: 1.391 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004939/0.2683, allocations: 2.091 MB / 351.9 MB, free: 15.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.2683, allocations: 4.062 kB / 351.9 MB, free: 15.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001835/0.2701, allocations: 0.8455 MB / 352.7 MB, free: 14.46 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/0.2714, allocations: 223.1 kB / 353 MB, free: 14.26 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006352/0.2778, allocations: 3.116 MB / 356.1 MB, free: 10.96 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008062/0.2786, allocations: 0.5941 MB / 356.7 MB, free: 10.33 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007793/0.2793, allocations: 164 kB / 356.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004113/0.2798, allocations: 76.5 kB / 356.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of SimCode: time 1.233e-06/0.2798, allocations: 0 / 356.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of Templates: time 0.0362/0.316, allocations: 18.48 MB / 375.4 MB, free: 7.855 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.338116171071306]