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.000933/0.000933, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004817/0.00575, allocations: 449.7 kB / 10.37 MB, free: 328 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.0009502/0.0009502, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001192/0.002142, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9089/0.9089, allocations: 177.2 MB / 189.6 MB, free: 5.324 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08122/0.9902, allocations: 53.65 MB / 243.3 MB, free: 15.6 MB / 250.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.183e-06/1.183e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.156e-05/1.274e-05, allocations: 6.25 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01824/0.01826, allocations: 9.093 MB / 253.6 MB, free: 5.184 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006817/0.02507, allocations: 2.55 MB / 256.2 MB, free: 2.625 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004478/0.02552, allocations: 27.88 kB / 256.2 MB, free: 2.598 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004935/0.02601, allocations: 348.9 kB / 256.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006883/0.0267, allocations: 0.5344 MB / 257.1 MB, free: 1.715 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006963/0.0274, allocations: 0.667 MB / 257.7 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001586/0.02899, allocations: 2.422 MB / 260.2 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007438/0.02973, allocations: 0.7301 MB / 260.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.03078, allocations: 1.418 MB / 262.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005301/0.03131, allocations: 0.6973 MB / 263 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001984/0.03151, allocations: 283.9 kB / 263.3 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005039/0.03201, allocations: 347.8 kB / 263.6 MB, free: 11.08 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002489/0.03226, allocations: 423 kB / 264 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003994/0.03266, allocations: 0.5733 MB / 264.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001097/0.03376, allocations: 1.511 MB / 266.1 MB, free: 8.578 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.063e-05/0.03377, allocations: 0 / 266.1 MB, free: 8.578 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.03377, allocations: 0 / 266.1 MB, free: 8.578 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.71e-05/0.03379, allocations: 4 kB / 266.1 MB, free: 8.574 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.002157/0.03594, allocations: 2.215 MB / 268.3 MB, free: 6.324 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.815e-05/0.03597, allocations: 12.02 kB / 268.4 MB, free: 6.312 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002899/0.03626, allocations: 337.8 kB / 268.7 MB, free: 5.965 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005843/0.03685, allocations: 0.5082 MB / 269.2 MB, free: 5.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002009/0.03705, allocations: 438.3 kB / 269.6 MB, free: 4.934 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.03718, allocations: 168.3 kB / 269.8 MB, free: 4.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.03825, allocations: 1.279 MB / 271.1 MB, free: 3.406 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.156e-05/0.03828, allocations: 15.88 kB / 271.1 MB, free: 3.391 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.373e-05/0.03836, allocations: 68 kB / 271.1 MB, free: 3.324 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.03837, allocations: 40 kB / 271.2 MB, free: 3.285 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006829/0.03906, allocations: 0.4936 MB / 271.7 MB, free: 2.777 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1123/0.1514, allocations: 3.892 MB / 275.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006511/0.152, allocations: 0.5165 MB / 276.1 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.1523, allocations: 176.2 kB / 276.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5e-05/0.1523, allocations: 15.86 kB / 276.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004228/0.1527, allocations: 0.5957 MB / 276.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.164e-06/0.1527, allocations: 1.656 kB / 276.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=119): time 0.009194/0.1619, allocations: 4.711 MB / 281.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.813e-05/0.162, allocations: 91.72 kB / 281.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004924/0.1625, allocations: 0.6289 MB / 282.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.333e-05/0.1625, allocations: 53.36 kB / 282.3 MB, free: 11.65 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.1627, allocations: 0.6155 MB / 283 MB, free: 11.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001777/0.1629, allocations: 422.2 kB / 283.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002545/0.1632, allocations: 253.2 kB / 283.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.017e-05/0.1633, allocations: 420.8 kB / 284 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/0.1636, allocations: 224.7 kB / 284.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004485/0.164, allocations: 0.7372 MB / 285 MB, free: 10.05 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006857/0.1647, allocations: 0.7585 MB / 285.7 MB, free: 9.762 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.1647, allocations: 6.219 kB / 285.8 MB, free: 9.758 MB / 266.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.001033/0.1658, allocations: 0.8642 MB / 286.6 MB, free: 9.664 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.1658, allocations: 13.44 kB / 286.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.1658, allocations: 6.406 kB / 286.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002549/0.166, allocations: 181.7 kB / 286.8 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008122/0.1669, allocations: 391.6 kB / 287.2 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001189/0.168, allocations: 3.825 MB / 291 MB, free: 6.086 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005193/0.1686, allocations: 138.7 kB / 291.2 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.323e-05/0.1686, allocations: 38.88 kB / 291.2 MB, free: 6.082 MB / 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 (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.0002327/0.1688, allocations: 211 kB / 291.4 MB, free: 5.945 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.169, allocations: 104.1 kB / 291.5 MB, free: 5.945 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.651e-05/0.1691, allocations: 126.3 kB / 291.6 MB, free: 5.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.1691, allocations: 13.06 kB / 291.6 MB, free: 5.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.1691, allocations: 0 / 291.6 MB, free: 5.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.1691, allocations: 10.23 kB / 291.7 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002133/0.1712, allocations: 2.03 MB / 293.7 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.1712, allocations: 7.719 kB / 293.7 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005723/0.1718, allocations: 290 kB / 294 MB, free: 5.227 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002165/0.172, allocations: 123.3 kB / 294.1 MB, free: 5.172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000233/0.1722, allocations: 222.6 kB / 294.3 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-05/0.1723, allocations: 36.81 kB / 294.3 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005132/0.1728, allocations: 1.793 MB / 296.1 MB, free: 3.469 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.1728, allocations: 12.97 kB / 296.2 MB, free: 3.469 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008971/0.1737, allocations: 1.174 MB / 297.3 MB, free: 2.887 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.122e-05/0.1738, allocations: 46.27 kB / 297.4 MB, free: 2.887 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003878/0.1742, allocations: 110.5 kB / 297.5 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.1743, allocations: 155 kB / 297.6 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.669e-05/0.1744, allocations: 41.2 kB / 297.7 MB, free: 2.871 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001745/0.1745, allocations: 279.9 kB / 297.9 MB, free: 2.844 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1745, allocations: 0 / 297.9 MB, free: 2.844 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005951/0.1751, allocations: 340.8 kB / 298.3 MB, free: 2.84 MB / 266.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.000975/0.1761, allocations: 0.5517 MB / 298.8 MB, free: 2.684 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008477/0.177, allocations: 1.048 MB / 299.9 MB, free: 2.254 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.676e-05/0.177, allocations: 19.03 kB / 299.9 MB, free: 2.254 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003345/0.1773, allocations: 452.2 kB / 300.3 MB, free: 1.879 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005838/0.1779, allocations: 305.7 kB / 300.6 MB, free: 1.645 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.1881, allocations: 2.966 MB / 303.6 MB, free: 14.79 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.1883, allocations: 269.2 kB / 303.9 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004454/0.1887, allocations: 152.2 kB / 304 MB, free: 14.36 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004875/0.1892, allocations: 264.9 kB / 304.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.1892, allocations: 0 / 304.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of Templates: time 0.02381/0.213, allocations: 21.02 MB / 325.3 MB, free: 9.949 MB / 298.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 -ignoreHideResult -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: 2.978017471730709]