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.001832/0.001832, allocations: 95.86 kB / 20.96 MB, free: 3.461 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.001805/0.001805, allocations: 153.1 kB / 24.27 MB, free: 164 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 1.517/1.517, allocations: 173.3 MB / 200.8 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 178] 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.162e-06/1.162e-06, allocations: 0 / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.676e-05/2.792e-05, allocations: 6.25 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01297/0.013, allocations: 9.107 MB / 276.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005095/0.0181, allocations: 2.271 MB / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009534/0.01905, allocations: 35.81 kB / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008451/0.01989, allocations: 321 kB / 279 MB, free: 10.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001326/0.02122, allocations: 0.5266 MB / 279.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.02246, allocations: 0.6593 MB / 280.2 MB, free: 9.746 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003028/0.02549, allocations: 2.41 MB / 282.6 MB, free: 7.328 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001256/0.02675, allocations: 0.7021 MB / 283.3 MB, free: 6.574 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001744/0.02849, allocations: 1.314 MB / 284.7 MB, free: 5.258 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001019/0.02951, allocations: 0.6895 MB / 285.4 MB, free: 4.566 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003634/0.02987, allocations: 280 kB / 285.6 MB, free: 4.293 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000576/0.03045, allocations: 331.9 kB / 285.9 MB, free: 3.969 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005282/0.03098, allocations: 0.5181 MB / 286.5 MB, free: 3.449 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008372/0.03181, allocations: 0.6861 MB / 287.2 MB, free: 2.762 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1142/0.146, allocations: 3.5 MB / 290.7 MB, free: 20.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.146, allocations: 0 / 290.7 MB, free: 20.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.146, allocations: 0 / 290.7 MB, free: 20.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.416e-05/0.1461, allocations: 1.219 kB / 290.7 MB, free: 20.46 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.004097/0.1502, allocations: 2.154 MB / 292.8 MB, free: 19.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.1503, allocations: 10.03 kB / 292.8 MB, free: 19.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005989/0.1509, allocations: 323.2 kB / 293.1 MB, free: 19.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.152, allocations: 0.8017 MB / 293.9 MB, free: 19.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002861/0.1523, allocations: 440.9 kB / 294.4 MB, free: 18.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002643/0.1526, allocations: 163.3 kB / 294.5 MB, free: 18.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003501/0.1561, allocations: 1.974 MB / 296.5 MB, free: 18.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.515e-05/0.1562, allocations: 8.641 kB / 296.5 MB, free: 18.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001477/0.1563, allocations: 65.31 kB / 296.6 MB, free: 18.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.473e-05/0.1563, allocations: 36.84 kB / 296.6 MB, free: 18.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00336/0.1597, allocations: 1.454 MB / 298.1 MB, free: 18.47 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01052/0.1702, allocations: 7.812 MB / 305.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.1721, allocations: 0.9105 MB / 306.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009167/0.173, allocations: 0.4958 MB / 307.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.976e-05/0.1731, allocations: 15.84 kB / 307.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001225/0.1743, allocations: 0.9365 MB / 308.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=91): time 2.775e-06/0.1743, allocations: 0 / 308.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=121): time 0.0202/0.1945, allocations: 6.985 MB / 315.2 MB, free: 7.055 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.892e-05/0.1946, allocations: 299.7 kB / 315.5 MB, free: 6.695 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009801/0.1956, allocations: 1.009 MB / 316.5 MB, free: 5.676 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.203e-05/0.1957, allocations: 53.7 kB / 316.6 MB, free: 5.617 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003956/0.196, allocations: 0.7839 MB / 317.4 MB, free: 4.824 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000285/0.1963, allocations: 475.5 kB / 317.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004787/0.1968, allocations: 329.2 kB / 318.1 MB, free: 4.035 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002086/0.197, allocations: 0.6797 MB / 318.8 MB, free: 3.344 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/0.1987, allocations: 0.7536 MB / 319.6 MB, free: 2.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001874/0.2006, allocations: 1.442 MB / 321 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003555/0.2041, allocations: 1.748 MB / 322.8 MB, free: 15.1 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.2041, allocations: 4 kB / 322.8 MB, free: 15.1 MB / 282.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005131/0.2093, allocations: 2.048 MB / 324.8 MB, free: 13.07 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.2093, allocations: 8 kB / 324.8 MB, free: 13.06 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.2093, allocations: 8.281 kB / 324.8 MB, free: 13.06 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006107/0.2099, allocations: 219 kB / 325 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001698/0.2116, allocations: 332.1 kB / 325.4 MB, free: 12.53 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00594/0.2175, allocations: 6.083 MB / 331.5 MB, free: 6.105 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/0.2191, allocations: 143.8 kB / 331.6 MB, free: 5.965 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.2193, allocations: 55.98 kB / 331.6 MB, free: 5.91 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 (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.0008401/0.2201, allocations: 422.3 kB / 332.1 MB, free: 5.508 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003122/0.2204, allocations: 137.7 kB / 332.2 MB, free: 5.375 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003333/0.2207, allocations: 129.6 kB / 332.3 MB, free: 5.242 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.537e-05/0.2208, allocations: 15.98 kB / 332.3 MB, free: 5.227 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.2208, allocations: 0 / 332.3 MB, free: 5.227 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.2208, allocations: 3.984 kB / 332.3 MB, free: 5.223 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009309/0.2301, allocations: 4.47 MB / 336.8 MB, free: 0.625 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.931e-05/0.2301, allocations: 12 kB / 336.8 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.2313, allocations: 244 kB / 337.1 MB, free: 400 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007302/0.232, allocations: 379.5 kB / 337.4 MB, free: 12 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.2321, allocations: 38.48 kB / 337.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00268/0.2348, allocations: 2.944 MB / 340.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.296e-05/0.2348, allocations: 20.2 kB / 340.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005564/0.2404, allocations: 2.586 MB / 343 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009156/0.2413, allocations: 243.2 kB / 343.3 MB, free: 9.867 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001871/0.2415, allocations: 47.98 kB / 343.3 MB, free: 9.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.2425, allocations: 115.9 kB / 343.4 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003924/0.2429, allocations: 187.7 kB / 343.6 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.243, allocations: 44 kB / 343.6 MB, free: 9.492 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009006/0.2439, allocations: 0.5888 MB / 344.2 MB, free: 8.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2439, allocations: 0 / 344.2 MB, free: 8.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001339/0.2452, allocations: 351.9 kB / 344.6 MB, free: 8.566 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003547/0.2456, allocations: 189.8 kB / 344.8 MB, free: 8.391 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00468/0.2503, allocations: 2.124 MB / 346.9 MB, free: 6.258 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.2503, allocations: 192 / 346.9 MB, free: 6.258 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/0.2521, allocations: 0.8724 MB / 347.8 MB, free: 5.406 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.2534, allocations: 208.5 kB / 348 MB, free: 5.211 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006545/0.2599, allocations: 3.094 MB / 351.1 MB, free: 1.934 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007588/0.2607, allocations: 0.594 MB / 351.7 MB, free: 1.309 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0007815/0.2614, allocations: 156 kB / 351.8 MB, free: 1.152 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003912/0.2618, allocations: 84.48 kB / 351.9 MB, free: 1.07 MB / 298.7 MB Notification: Performance of SimCode: time 1.082e-06/0.2618, allocations: 0 / 351.9 MB, free: 1.07 MB / 298.7 MB Notification: Performance of Templates: time 0.03499/0.2968, allocations: 18.21 MB / 370.1 MB, free: 15.13 MB / 330.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.314760808949359]