Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001514/0.001514, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001005/0.001005, allocations: 168.5 kB / 25.33 MB, free: 9.102 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9296/0.9296, allocations: 158.6 MB / 187.2 MB, free: 2.898 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 251.1 MB, free: 7.492 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.256e-05/1.371e-05, allocations: 2.312 kB / 251.1 MB, free: 7.488 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.007267/0.007281, allocations: 9.066 MB / 260.1 MB, free: 14.37 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003967/0.01125, allocations: 2.295 MB / 262.4 MB, free: 12.06 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007226/0.01197, allocations: 35.81 kB / 262.5 MB, free: 12.03 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006291/0.0126, allocations: 325 kB / 262.8 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001069/0.01367, allocations: 0.5266 MB / 263.3 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008577/0.01453, allocations: 0.6593 MB / 264 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001726/0.01625, allocations: 2.402 MB / 266.4 MB, free: 8.102 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001049/0.0173, allocations: 0.6983 MB / 267.1 MB, free: 7.355 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001099/0.0184, allocations: 1.31 MB / 268.4 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006039/0.01901, allocations: 0.6934 MB / 269.1 MB, free: 5.348 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001994/0.0192, allocations: 276 kB / 269.3 MB, free: 5.078 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000338/0.01954, allocations: 331.9 kB / 269.7 MB, free: 4.754 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002643/0.01981, allocations: 0.5181 MB / 270.2 MB, free: 4.234 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004208/0.02023, allocations: 0.6822 MB / 270.9 MB, free: 3.551 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.02138, allocations: 1.62 MB / 272.5 MB, free: 1.926 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.02138, allocations: 0 / 272.5 MB, free: 1.926 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.02138, allocations: 0 / 272.5 MB, free: 1.926 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.02139, allocations: 0 / 272.5 MB, free: 1.926 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.002262/0.02366, allocations: 1.979 MB / 274.5 MB, free: 15.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.02369, allocations: 11.98 kB / 274.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003287/0.02402, allocations: 319.8 kB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007374/0.02475, allocations: 0.7802 MB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002174/0.02497, allocations: 442.3 kB / 276 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.02512, allocations: 164.3 kB / 276.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.02663, allocations: 1.383 MB / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.02667, allocations: 11.95 kB / 277.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.471e-05/0.02675, allocations: 60 kB / 277.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.02678, allocations: 36 kB / 277.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.02796, allocations: 0.7672 MB / 278.4 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004939/0.0329, allocations: 4.853 MB / 283.3 MB, free: 6.699 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008423/0.03374, allocations: 0.5694 MB / 283.8 MB, free: 6.102 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003421/0.03409, allocations: 271.1 kB / 284.1 MB, free: 5.832 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.188e-05/0.03413, allocations: 17 kB / 284.1 MB, free: 5.816 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005571/0.03468, allocations: 0.6681 MB / 284.8 MB, free: 5.039 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 2.114e-06/0.03469, allocations: 0 / 284.8 MB, free: 5.039 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.008727/0.04341, allocations: 4.932 MB / 289.7 MB, free: 48 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.04354, allocations: 299.7 kB / 290 MB, free: 15.69 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006234/0.04416, allocations: 0.7061 MB / 290.7 MB, free: 14.96 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.573e-05/0.04424, allocations: 53.7 kB / 290.8 MB, free: 14.91 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000383/0.04462, allocations: 0.7372 MB / 291.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002211/0.04484, allocations: 408.5 kB / 291.9 MB, free: 13.75 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003661/0.04521, allocations: 253.1 kB / 292.2 MB, free: 13.5 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.04541, allocations: 0.5703 MB / 292.7 MB, free: 12.92 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005768/0.04599, allocations: 383.8 kB / 293.1 MB, free: 12.54 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.047, allocations: 0.9877 MB / 294.1 MB, free: 11.35 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.04818, allocations: 1.01 MB / 295.1 MB, free: 10.21 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.04818, allocations: 4 kB / 295.1 MB, free: 10.2 MB / 282.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.00173/0.04991, allocations: 1.304 MB / 296.4 MB, free: 8.879 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.04994, allocations: 8 kB / 296.4 MB, free: 8.871 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.04995, allocations: 8 kB / 296.4 MB, free: 8.863 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003327/0.05028, allocations: 151.1 kB / 296.6 MB, free: 8.703 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008346/0.05112, allocations: 335.5 kB / 296.9 MB, free: 8.375 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002838/0.05396, allocations: 5.652 MB / 302.5 MB, free: 2.359 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006637/0.05462, allocations: 144 kB / 302.7 MB, free: 2.219 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-05/0.0547, allocations: 51.98 kB / 302.7 MB, free: 2.168 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.0003423/0.05504, allocations: 242.3 kB / 303 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.0552, allocations: 155.3 kB / 303.1 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.05532, allocations: 125.7 kB / 303.2 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.05533, allocations: 15.98 kB / 303.3 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.05534, allocations: 0 / 303.3 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.05534, allocations: 7.922 kB / 303.3 MB, free: 1.609 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003683/0.05903, allocations: 2.954 MB / 306.2 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.05904, allocations: 12 kB / 306.2 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005442/0.05958, allocations: 239.6 kB / 306.5 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003503/0.05993, allocations: 327.3 kB / 306.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.364e-05/0.05998, allocations: 35.98 kB / 306.8 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001071/0.06105, allocations: 2.759 MB / 309.6 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.06106, allocations: 16.16 kB / 309.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001937/0.063, allocations: 1.662 MB / 311.3 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002951/0.06329, allocations: 251.1 kB / 311.5 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.683e-05/0.06339, allocations: 40 kB / 311.5 MB, free: 8.758 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000437/0.06383, allocations: 115.9 kB / 311.7 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/0.06403, allocations: 156.2 kB / 311.8 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.195e-05/0.06408, allocations: 43.98 kB / 311.9 MB, free: 8.449 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003431/0.06443, allocations: 446.9 kB / 312.3 MB, free: 8.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.06443, allocations: 0 / 312.3 MB, free: 8.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006977/0.06512, allocations: 347.9 kB / 312.6 MB, free: 7.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.0002298/0.06535, allocations: 178.7 kB / 312.8 MB, free: 7.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001472/0.06683, allocations: 1.429 MB / 314.2 MB, free: 6.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.06683, allocations: 0 / 314.2 MB, free: 6.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000556/0.06738, allocations: 0.5608 MB / 314.8 MB, free: 5.438 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006592/0.06804, allocations: 215.4 kB / 315 MB, free: 5.227 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003286/0.07133, allocations: 2.792 MB / 317.8 MB, free: 2.223 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001728/0.0715, allocations: 252.6 kB / 318 MB, free: 1.953 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006446/0.07215, allocations: 155.9 kB / 318.2 MB, free: 1.797 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002531/0.0724, allocations: 76.5 kB / 318.3 MB, free: 1.723 MB / 298.7 MB Notification: Performance of SimCode: time 8.41e-07/0.0724, allocations: 0 / 318.3 MB, free: 1.723 MB / 298.7 MB Notification: Performance of Templates: time 0.02093/0.09333, allocations: 19.03 MB / 337.3 MB, free: 14.69 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.2101164679042995]