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.001434/0.001434, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 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.001427/0.001427, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 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.9814/0.9814, allocations: 173.3 MB / 201.1 MB, free: 9.301 MB / 186.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.383e-06/1.383e-06, allocations: 3.938 kB / 268 MB, free: 6.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.064e-05/2.202e-05, allocations: 2.312 kB / 268 MB, free: 6.395 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01115/0.01117, allocations: 9.18 MB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004735/0.0159, allocations: 2.279 MB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008476/0.01675, allocations: 31.88 kB / 279.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007892/0.01754, allocations: 329 kB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001266/0.01881, allocations: 0.5189 MB / 280.3 MB, free: 10 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001224/0.02003, allocations: 0.6554 MB / 281 MB, free: 9.344 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002231/0.02226, allocations: 2.418 MB / 283.4 MB, free: 6.918 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001033/0.02329, allocations: 0.6944 MB / 284.1 MB, free: 6.172 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00125/0.02454, allocations: 1.306 MB / 285.4 MB, free: 4.863 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007706/0.02531, allocations: 0.6973 MB / 286.1 MB, free: 4.164 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002848/0.0256, allocations: 276 kB / 286.4 MB, free: 3.895 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004667/0.02607, allocations: 331.9 kB / 286.7 MB, free: 3.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003725/0.02644, allocations: 0.5181 MB / 287.2 MB, free: 3.051 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006107/0.02705, allocations: 0.6861 MB / 287.9 MB, free: 2.363 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001865/0.02891, allocations: 1.62 MB / 289.5 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.02892, allocations: 0 / 289.5 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.02892, allocations: 0 / 289.5 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.02893, allocations: 0 / 289.5 MB, free: 0.7383 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.1449/0.1738, allocations: 1.967 MB / 291.5 MB, free: 30.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.1739, allocations: 9.875 kB / 291.5 MB, free: 30.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000473/0.1743, allocations: 324 kB / 291.8 MB, free: 29.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.1754, allocations: 0.7799 MB / 292.6 MB, free: 29.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002898/0.1757, allocations: 439.2 kB / 293 MB, free: 29.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002088/0.1759, allocations: 164.2 kB / 293.2 MB, free: 29.4 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002034/0.1779, allocations: 1.383 MB / 294.6 MB, free: 29.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.547e-05/0.178, allocations: 8.047 kB / 294.6 MB, free: 29.01 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-05/0.1781, allocations: 65.38 kB / 294.6 MB, free: 29.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-05/0.1781, allocations: 37.81 kB / 294.7 MB, free: 29.01 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001597/0.1797, allocations: 0.7639 MB / 295.4 MB, free: 28.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006257/0.186, allocations: 4.84 MB / 300.3 MB, free: 26.06 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.187, allocations: 0.5858 MB / 300.9 MB, free: 25.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004217/0.1874, allocations: 288.9 kB / 301.1 MB, free: 25.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.229e-05/0.1875, allocations: 20.25 kB / 301.2 MB, free: 25.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006343/0.1881, allocations: 0.6701 MB / 301.8 MB, free: 25.26 MB / 266.7 MB Notification: Performance of pre-optimization done (n=91): time 3.617e-06/0.1881, allocations: 3.25 kB / 301.8 MB, free: 25.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=121): time 0.009224/0.1973, allocations: 4.975 MB / 306.8 MB, free: 22.93 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.264e-05/0.1974, allocations: 299.8 kB / 307.1 MB, free: 22.57 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000523/0.1979, allocations: 0.7061 MB / 307.8 MB, free: 21.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.915e-05/0.198, allocations: 53.7 kB / 307.9 MB, free: 21.79 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002722/0.1983, allocations: 0.725 MB / 308.6 MB, free: 21.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.1984, allocations: 422 kB / 309 MB, free: 20.65 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002746/0.1987, allocations: 257.1 kB / 309.3 MB, free: 20.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1988, allocations: 0.5742 MB / 309.8 MB, free: 19.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005143/0.1993, allocations: 375.8 kB / 310.2 MB, free: 19.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006738/0.2, allocations: 0.9905 MB / 311.2 MB, free: 18.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009901/0.201, allocations: 1.01 MB / 312.2 MB, free: 17.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.201, allocations: 3.5 kB / 312.2 MB, free: 17.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.001514/0.2025, allocations: 1.303 MB / 313.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.2025, allocations: 8.844 kB / 313.5 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.2026, allocations: 8 kB / 313.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003215/0.2029, allocations: 160.3 kB / 313.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007919/0.2037, allocations: 339.5 kB / 314 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.2057, allocations: 5.659 MB / 319.7 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007773/0.2065, allocations: 143.8 kB / 319.8 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.064e-05/0.2066, allocations: 51.98 kB / 319.9 MB, free: 9.055 MB / 266.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 (169): * Single equations (assignments): 166 * 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.0003896/0.207, allocations: 242.3 kB / 320.1 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.2071, allocations: 139.3 kB / 320.2 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.522e-05/0.2072, allocations: 133.6 kB / 320.4 MB, free: 8.535 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2072, allocations: 12.14 kB / 320.4 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.2072, allocations: 0 / 320.4 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.2072, allocations: 7.969 kB / 320.4 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003325/0.2106, allocations: 3.001 MB / 323.4 MB, free: 5.316 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.2106, allocations: 8 kB / 323.4 MB, free: 5.309 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005289/0.2111, allocations: 255.6 kB / 323.6 MB, free: 5.059 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003677/0.2115, allocations: 327.2 kB / 324 MB, free: 4.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.114e-05/0.2115, allocations: 39.98 kB / 324 MB, free: 4.691 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009025/0.2124, allocations: 2.758 MB / 326.8 MB, free: 1.785 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/0.2124, allocations: 17.11 kB / 326.8 MB, free: 1.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001664/0.2141, allocations: 1.696 MB / 328.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003743/0.2145, allocations: 254 kB / 328.7 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.869e-05/0.2146, allocations: 48 kB / 328.8 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004646/0.215, allocations: 111.9 kB / 328.9 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002511/0.2153, allocations: 164 kB / 329 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.987e-05/0.2154, allocations: 47.98 kB / 329.1 MB, free: 15.27 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004053/0.2158, allocations: 446.9 kB / 329.5 MB, free: 14.84 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.2158, allocations: 0 / 329.5 MB, free: 14.84 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009863/0.2167, allocations: 340 kB / 329.8 MB, free: 14.51 MB / 282.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003089/0.2171, allocations: 183.6 kB / 330 MB, free: 14.32 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001813/0.2189, allocations: 1.443 MB / 331.5 MB, free: 12.82 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/0.2189, allocations: 7.938 kB / 331.5 MB, free: 12.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006737/0.2196, allocations: 0.5635 MB / 332 MB, free: 12.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007765/0.2203, allocations: 216.6 kB / 332.3 MB, free: 12.02 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004207/0.2245, allocations: 2.809 MB / 335.1 MB, free: 9.008 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.2247, allocations: 257.4 kB / 335.3 MB, free: 8.738 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004824/0.2252, allocations: 152 kB / 335.5 MB, free: 8.586 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002643/0.2255, allocations: 84.48 kB / 335.5 MB, free: 8.504 MB / 282.7 MB Notification: Performance of SimCode: time 1.944e-06/0.2255, allocations: 0 / 335.5 MB, free: 8.504 MB / 282.7 MB Notification: Performance of Templates: time 0.02427/0.2498, allocations: 18.23 MB / 353.8 MB, free: 6.539 MB / 298.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4551480361260474]