Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001519/0.002587, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008443/0.0008443, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00124/0.002084, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8914/0.8914, allocations: 173.4 MB / 186 MB, free: 7.52 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1785/1.07, allocations: 52.49 MB / 238.5 MB, free: 7.602 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 239.8 MB, free: 6.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.588e-05/1.767e-05, allocations: 2.312 kB / 239.8 MB, free: 6.328 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01017/0.01018, allocations: 8.971 MB / 248.7 MB, free: 13.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003946/0.01413, allocations: 2.392 MB / 251.1 MB, free: 10.95 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006869/0.01482, allocations: 36.41 kB / 251.2 MB, free: 10.92 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005061/0.01532, allocations: 329.5 kB / 251.5 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008528/0.01618, allocations: 0.5251 MB / 252 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008689/0.01705, allocations: 0.6515 MB / 252.6 MB, free: 9.414 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001842/0.01889, allocations: 2.406 MB / 255.1 MB, free: 7 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007847/0.01967, allocations: 0.7261 MB / 255.8 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001448/0.02112, allocations: 1.411 MB / 257.2 MB, free: 4.793 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005441/0.02166, allocations: 0.6895 MB / 257.9 MB, free: 4.102 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001982/0.02186, allocations: 276 kB / 258.2 MB, free: 3.832 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003685/0.02223, allocations: 343.9 kB / 258.5 MB, free: 3.496 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002292/0.02246, allocations: 411 kB / 258.9 MB, free: 3.094 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003847/0.02284, allocations: 0.5772 MB / 259.5 MB, free: 2.516 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.02393, allocations: 1.48 MB / 260.9 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.02394, allocations: 0 / 260.9 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.02394, allocations: 4 kB / 260.9 MB, free: 1.027 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.851e-05/0.02396, allocations: 0 / 260.9 MB, free: 1.027 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.002036/0.02599, allocations: 2.176 MB / 263.1 MB, free: 14.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.712e-05/0.02602, allocations: 12.03 kB / 263.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002977/0.02632, allocations: 337.8 kB / 263.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005895/0.02691, allocations: 0.5082 MB / 264 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/0.02712, allocations: 434.3 kB / 264.4 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.02726, allocations: 168.3 kB / 264.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.02839, allocations: 1.287 MB / 265.9 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.428e-05/0.02842, allocations: 7.953 kB / 265.9 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.007e-05/0.02849, allocations: 60 kB / 265.9 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.179e-05/0.02851, allocations: 39.94 kB / 266 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007182/0.02923, allocations: 0.5324 MB / 266.5 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004355/0.03359, allocations: 3.92 MB / 270.4 MB, free: 7.121 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006611/0.03425, allocations: 0.5275 MB / 270.9 MB, free: 6.574 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000223/0.03447, allocations: 196.6 kB / 271.1 MB, free: 6.379 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.093e-05/0.03452, allocations: 16.94 kB / 271.1 MB, free: 6.363 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004914/0.03501, allocations: 0.5985 MB / 271.7 MB, free: 5.668 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 1.823e-06/0.03501, allocations: 0 / 271.7 MB, free: 5.668 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.009323/0.04434, allocations: 4.865 MB / 276.6 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.04439, allocations: 98.05 kB / 276.7 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006409/0.04503, allocations: 0.6166 MB / 277.3 MB, free: 16 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.003e-05/0.04511, allocations: 53.7 kB / 277.4 MB, free: 15.96 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002865/0.04539, allocations: 0.6108 MB / 278 MB, free: 15.34 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.04562, allocations: 420.5 kB / 278.4 MB, free: 14.92 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002717/0.04589, allocations: 251.4 kB / 278.6 MB, free: 14.67 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.04604, allocations: 410.5 kB / 279 MB, free: 14.26 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003221/0.04636, allocations: 246.7 kB / 279.3 MB, free: 14.02 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005585/0.04692, allocations: 0.7549 MB / 280 MB, free: 13.1 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000826/0.04775, allocations: 0.8219 MB / 280.9 MB, free: 12.18 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.04775, allocations: 7.984 kB / 280.9 MB, free: 12.17 MB / 282.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.00107/0.04882, allocations: 0.8846 MB / 281.8 MB, free: 11.27 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.04885, allocations: 8 kB / 281.8 MB, free: 11.26 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.04886, allocations: 8 kB / 281.8 MB, free: 11.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002774/0.04914, allocations: 150.9 kB / 281.9 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008917/0.05003, allocations: 391.4 kB / 282.3 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/0.05243, allocations: 3.814 MB / 286.1 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005873/0.05302, allocations: 139.9 kB / 286.2 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.264e-05/0.05308, allocations: 40 kB / 286.3 MB, free: 6.461 MB / 282.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.0002948/0.05337, allocations: 202.3 kB / 286.5 MB, free: 6.254 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.0535, allocations: 99.91 kB / 286.6 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.05362, allocations: 129.7 kB / 286.7 MB, free: 6.027 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.05363, allocations: 12 kB / 286.7 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.05364, allocations: 3.938 kB / 286.7 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.05364, allocations: 3.984 kB / 286.7 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00251/0.05615, allocations: 2.099 MB / 288.8 MB, free: 3.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/0.05616, allocations: 8 kB / 288.8 MB, free: 3.742 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005936/0.05676, allocations: 303.6 kB / 289.1 MB, free: 3.449 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002177/0.05697, allocations: 119.3 kB / 289.2 MB, free: 3.332 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003353/0.05731, allocations: 305.5 kB / 289.5 MB, free: 3.027 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.798e-05/0.05736, allocations: 32 kB / 289.6 MB, free: 2.996 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.05853, allocations: 1.848 MB / 291.4 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/0.05854, allocations: 11.94 kB / 291.4 MB, free: 1.023 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.05977, allocations: 1.23 MB / 292.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.442e-05/0.05987, allocations: 44 kB / 292.7 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004049/0.06027, allocations: 115.9 kB / 292.8 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002095/0.06048, allocations: 152.2 kB / 293 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.257e-05/0.06054, allocations: 43.92 kB / 293 MB, free: 15.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002534/0.06079, allocations: 280.5 kB / 293.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.06079, allocations: 0 / 293.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009107/0.0617, allocations: 347.9 kB / 293.6 MB, free: 14.68 MB / 298.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.0003291/0.06203, allocations: 160.1 kB / 293.8 MB, free: 14.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.06323, allocations: 1.101 MB / 294.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.579e-05/0.06327, allocations: 16.5 kB / 294.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000606/0.06387, allocations: 0.5171 MB / 295.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.06509, allocations: 1.507 MB / 296.9 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.07573, allocations: 2.935 MB / 299.9 MB, free: 7.961 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000209/0.07594, allocations: 264.8 kB / 300.1 MB, free: 7.68 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004737/0.07641, allocations: 148.2 kB / 300.3 MB, free: 7.531 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005111/0.07692, allocations: 265.2 kB / 300.5 MB, free: 7.27 MB / 298.7 MB Notification: Performance of SimCode: time 1.353e-06/0.07693, allocations: 0 / 300.5 MB, free: 7.27 MB / 298.7 MB Notification: Performance of Templates: time 0.02637/0.1033, allocations: 20.78 MB / 321.3 MB, free: 2.707 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.091832907870412]