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.001465/0.001465, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001557/0.001557, allocations: 161.7 kB / 24.27 MB, free: 172 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.537/1.537, allocations: 177.1 MB / 204.6 MB, free: 5.602 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.362e-06/1.362e-06, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.431e-05/2.567e-05, allocations: 2.312 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01196/0.01199, allocations: 8.217 MB / 280.6 MB, free: 9.547 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005443/0.01743, allocations: 2.407 MB / 283 MB, free: 7.133 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.01891, allocations: 31.88 kB / 283 MB, free: 7.102 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001294/0.02021, allocations: 348.8 kB / 283.3 MB, free: 6.758 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00207/0.02228, allocations: 0.5267 MB / 283.9 MB, free: 6.227 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001712/0.02399, allocations: 0.6592 MB / 284.5 MB, free: 5.566 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003593/0.02758, allocations: 2.437 MB / 287 MB, free: 3.121 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001739/0.02932, allocations: 0.6944 MB / 287.7 MB, free: 2.379 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00235/0.03167, allocations: 1.318 MB / 289 MB, free: 1.059 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001306/0.03298, allocations: 0.6778 MB / 289.6 MB, free: 388 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005146/0.03349, allocations: 280 kB / 289.9 MB, free: 108 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1169/0.1504, allocations: 352.5 kB / 290.3 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005097/0.1509, allocations: 0.5279 MB / 290.8 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008664/0.1517, allocations: 0.6882 MB / 291.5 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003823/0.1556, allocations: 3.543 MB / 295 MB, free: 17.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.1556, allocations: 0 / 295 MB, free: 17.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1556, allocations: 2.734 kB / 295 MB, free: 17.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.432e-05/0.1557, allocations: 1.094 kB / 295 MB, free: 17.98 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.004172/0.1598, allocations: 1.899 MB / 296.9 MB, free: 17.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.1599, allocations: 12.94 kB / 296.9 MB, free: 17.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006096/0.1605, allocations: 326.7 kB / 297.3 MB, free: 17.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.1618, allocations: 0.8065 MB / 298.1 MB, free: 16.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003015/0.1621, allocations: 445.1 kB / 298.5 MB, free: 16.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000249/0.1623, allocations: 163.8 kB / 298.7 MB, free: 16.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003193/0.1655, allocations: 1.879 MB / 300.5 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.082e-05/0.1656, allocations: 2.5 kB / 300.5 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001537/0.1657, allocations: 71.81 kB / 300.6 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.394e-05/0.1657, allocations: 36.75 kB / 300.6 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00324/0.169, allocations: 1.535 MB / 302.2 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008005/0.177, allocations: 5.096 MB / 307.3 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/0.1789, allocations: 0.8952 MB / 308.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009163/0.1798, allocations: 489.8 kB / 308.7 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.944e-05/0.1799, allocations: 19.06 kB / 308.7 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00112/0.181, allocations: 0.8548 MB / 309.5 MB, free: 9.578 MB / 266.7 MB Notification: Performance of pre-optimization done (n=92): time 2.655e-06/0.181, allocations: 0 / 309.5 MB, free: 9.578 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.03113/0.2122, allocations: 8.584 MB / 318.1 MB, free: 2.738 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.455e-05/0.2122, allocations: 299.7 kB / 318.4 MB, free: 2.379 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000948/0.2132, allocations: 0.7893 MB / 319.2 MB, free: 1.578 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001039/0.2133, allocations: 56.44 kB / 319.2 MB, free: 1.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003851/0.2137, allocations: 0.6796 MB / 319.9 MB, free: 0.832 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/0.2139, allocations: 435.7 kB / 320.4 MB, free: 424 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004323/0.2143, allocations: 247.4 kB / 320.6 MB, free: 172 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002225/0.2146, allocations: 406.7 kB / 321 MB, free: 15.76 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002098/0.2167, allocations: 0.7965 MB / 321.8 MB, free: 14.96 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002555/0.2192, allocations: 1.326 MB / 323.1 MB, free: 13.48 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004039/0.2232, allocations: 1.612 MB / 324.7 MB, free: 11.81 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.471e-05/0.2233, allocations: 0 / 324.7 MB, free: 11.81 MB / 282.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.005536/0.2288, allocations: 2.101 MB / 326.8 MB, free: 9.734 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002955/0.2291, allocations: 8 kB / 326.8 MB, free: 9.727 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/0.2291, allocations: 8.875 kB / 326.8 MB, free: 9.719 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00066/0.2298, allocations: 238.2 kB / 327.1 MB, free: 9.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001711/0.2315, allocations: 350.2 kB / 327.4 MB, free: 9.156 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005066/0.2366, allocations: 4.443 MB / 331.9 MB, free: 4.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00171/0.2383, allocations: 163.9 kB / 332 MB, free: 4.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/0.2384, allocations: 55.98 kB / 332.1 MB, free: 4.215 MB / 282.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.0008745/0.2393, allocations: 386.2 kB / 332.5 MB, free: 3.844 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003409/0.2396, allocations: 143.3 kB / 332.6 MB, free: 3.703 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003119/0.2399, allocations: 141.8 kB / 332.7 MB, free: 3.562 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/0.2399, allocations: 12 kB / 332.7 MB, free: 3.551 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/0.24, allocations: 3.938 kB / 332.7 MB, free: 3.547 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.24, allocations: 7.984 kB / 332.8 MB, free: 3.539 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008666/0.2486, allocations: 3.833 MB / 336.6 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/0.2487, allocations: 12 kB / 336.6 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/0.2499, allocations: 261.3 kB / 336.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006582/0.2505, allocations: 297.1 kB / 337.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.2506, allocations: 35.98 kB / 337.2 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002166/0.2528, allocations: 2.065 MB / 339.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.526e-05/0.2528, allocations: 18.75 kB / 339.3 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005601/0.2584, allocations: 2.429 MB / 341.7 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006803/0.2591, allocations: 255.1 kB / 341.9 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002022/0.2593, allocations: 51.98 kB / 342 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.2605, allocations: 135.9 kB / 342.1 MB, free: 9.863 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003878/0.2608, allocations: 175.3 kB / 342.3 MB, free: 9.695 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.96e-05/0.2609, allocations: 43.98 kB / 342.3 MB, free: 9.652 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008602/0.2618, allocations: 0.5255 MB / 342.9 MB, free: 9.129 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2618, allocations: 0 / 342.9 MB, free: 9.129 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001359/0.2632, allocations: 343.9 kB / 343.2 MB, free: 8.793 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.001825/0.265, allocations: 456.7 kB / 343.6 MB, free: 8.551 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004734/0.2697, allocations: 1.901 MB / 345.5 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.794e-06/0.2697, allocations: 0 / 345.5 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002469/0.2722, allocations: 1.013 MB / 346.6 MB, free: 5.676 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/0.2737, allocations: 221.7 kB / 346.8 MB, free: 5.465 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006818/0.2805, allocations: 3.016 MB / 349.8 MB, free: 2.316 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009232/0.2814, allocations: 0.593 MB / 350.4 MB, free: 1.695 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009331/0.2824, allocations: 164.1 kB / 350.5 MB, free: 1.531 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004644/0.2828, allocations: 84.48 kB / 350.6 MB, free: 1.449 MB / 298.7 MB Notification: Performance of SimCode: time 1.503e-06/0.2828, allocations: 0 / 350.6 MB, free: 1.449 MB / 298.7 MB Notification: Performance of Templates: time 0.03529/0.3181, allocations: 18.41 MB / 369 MB, free: 15.3 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] 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.353738920995966]