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.001535/0.001535, allocations: 85.95 kB / 23 MB, free: 1.504 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.001318/0.001318, allocations: 171.6 kB / 26.39 MB, free: 7.988 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 1.004/1.004, allocations: 158.6 MB / 188.3 MB, free: 2.82 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.964e-06/1.964e-06, allocations: 0 / 252.3 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.433e-05/2.63e-05, allocations: 6.312 kB / 252.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.007746/0.007773, allocations: 8.766 MB / 261 MB, free: 14.41 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004861/0.01263, allocations: 2.295 MB / 263.3 MB, free: 12.11 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001575/0.01421, allocations: 35.81 kB / 263.4 MB, free: 12.07 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009612/0.01517, allocations: 325 kB / 263.7 MB, free: 11.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001817/0.01699, allocations: 0.5267 MB / 264.2 MB, free: 11.22 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.01824, allocations: 0.6592 MB / 264.9 MB, free: 10.56 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002798/0.02104, allocations: 2.402 MB / 267.3 MB, free: 8.148 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001077/0.02211, allocations: 0.6944 MB / 268 MB, free: 7.406 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001815/0.02393, allocations: 1.31 MB / 269.3 MB, free: 6.094 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009422/0.02487, allocations: 0.6934 MB / 270 MB, free: 5.398 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003906/0.02526, allocations: 276 kB / 270.2 MB, free: 5.129 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005548/0.02582, allocations: 335.9 kB / 270.6 MB, free: 4.801 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003737/0.02619, allocations: 0.5103 MB / 271.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006319/0.02682, allocations: 0.69 MB / 271.8 MB, free: 3.598 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001748/0.02857, allocations: 1.616 MB / 273.4 MB, free: 1.977 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.02857, allocations: 0 / 273.4 MB, free: 1.977 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.02858, allocations: 0 / 273.4 MB, free: 1.977 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.598e-05/0.0286, allocations: 0 / 273.4 MB, free: 1.977 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.00245/0.03105, allocations: 1.994 MB / 275.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.0311, allocations: 15.98 kB / 275.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003933/0.03149, allocations: 315.9 kB / 275.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008321/0.03232, allocations: 0.7724 MB / 276.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002622/0.03258, allocations: 438.3 kB / 276.9 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.03276, allocations: 164.3 kB / 277.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.03428, allocations: 1.258 MB / 278.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.291e-05/0.03433, allocations: 11.94 kB / 278.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.73e-05/0.03442, allocations: 60 kB / 278.4 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.472e-05/0.03445, allocations: 39.98 kB / 278.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008575/0.03531, allocations: 0.5945 MB / 279 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005955/0.04126, allocations: 4.892 MB / 283.9 MB, free: 6.996 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007698/0.04203, allocations: 0.5069 MB / 284.4 MB, free: 6.461 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002683/0.0423, allocations: 219.1 kB / 284.6 MB, free: 6.242 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.954e-05/0.04235, allocations: 17 kB / 284.7 MB, free: 6.227 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005355/0.04289, allocations: 0.625 MB / 285.3 MB, free: 5.492 MB / 266.7 MB Notification: Performance of pre-optimization done (n=89): time 2.625e-06/0.04289, allocations: 0 / 285.3 MB, free: 5.492 MB / 266.7 MB Notification: Performance of matching and sorting (n=118): time 0.009135/0.05202, allocations: 4.228 MB / 289.5 MB, free: 1.211 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.05214, allocations: 299.7 kB / 289.8 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006371/0.05278, allocations: 0.6861 MB / 290.5 MB, free: 152 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.295e-05/0.05287, allocations: 57.69 kB / 290.5 MB, free: 88 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004951/0.05337, allocations: 0.7294 MB / 291.3 MB, free: 15.34 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002696/0.05364, allocations: 420.4 kB / 291.7 MB, free: 14.93 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003426/0.05398, allocations: 253.1 kB / 291.9 MB, free: 14.68 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002117/0.05419, allocations: 0.5818 MB / 292.5 MB, free: 14.08 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00041/0.0546, allocations: 283.8 kB / 292.8 MB, free: 13.8 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006762/0.05528, allocations: 0.8977 MB / 293.7 MB, free: 12.7 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.05634, allocations: 0.8659 MB / 294.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.05635, allocations: 4 kB / 294.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.001526/0.05787, allocations: 1.128 MB / 295.7 MB, free: 10.55 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.0579, allocations: 8 kB / 295.7 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.05791, allocations: 8 kB / 295.7 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003408/0.05826, allocations: 163 kB / 295.9 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008726/0.05913, allocations: 331.5 kB / 296.2 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003221/0.06235, allocations: 5.584 MB / 301.8 MB, free: 4.117 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009046/0.06325, allocations: 140 kB / 301.9 MB, free: 3.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.044e-05/0.06333, allocations: 40 kB / 301.9 MB, free: 3.941 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.0004506/0.06378, allocations: 246.3 kB / 302.2 MB, free: 3.688 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00021/0.06399, allocations: 147.3 kB / 302.3 MB, free: 3.543 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001459/0.06414, allocations: 137.6 kB / 302.5 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.176e-06/0.06415, allocations: 12 kB / 302.5 MB, free: 3.387 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.06416, allocations: 0 / 302.5 MB, free: 3.387 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.06417, allocations: 7.969 kB / 302.5 MB, free: 3.379 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003458/0.06763, allocations: 2.677 MB / 305.2 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.06763, allocations: 8 kB / 305.2 MB, free: 496 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005708/0.0682, allocations: 251.5 kB / 305.4 MB, free: 244 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004035/0.06861, allocations: 303.4 kB / 305.7 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.788e-05/0.06868, allocations: 35.98 kB / 305.7 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/0.07017, allocations: 2.697 MB / 308.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/0.07018, allocations: 16 kB / 308.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.07177, allocations: 1.494 MB / 310 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004091/0.07218, allocations: 247.2 kB / 310.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.0723, allocations: 40 kB / 310.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005376/0.07284, allocations: 115.9 kB / 310.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002427/0.07309, allocations: 156.2 kB / 310.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.759e-05/0.07314, allocations: 39.92 kB / 310.5 MB, free: 10.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003166/0.07346, allocations: 406.8 kB / 310.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.07346, allocations: 0 / 310.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009966/0.07446, allocations: 347.9 kB / 311.3 MB, free: 10.04 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.0003082/0.07476, allocations: 198.2 kB / 311.5 MB, free: 9.836 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001433/0.0762, allocations: 1.285 MB / 312.8 MB, free: 8.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.0762, allocations: 0 / 312.8 MB, free: 8.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005393/0.07674, allocations: 0.5217 MB / 313.3 MB, free: 7.957 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007322/0.07747, allocations: 199.5 kB / 313.5 MB, free: 7.762 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004215/0.08169, allocations: 2.761 MB / 316.2 MB, free: 4.785 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.08193, allocations: 256.6 kB / 316.5 MB, free: 4.512 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005413/0.08247, allocations: 151.9 kB / 316.6 MB, free: 4.359 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005464/0.08302, allocations: 286.1 kB / 316.9 MB, free: 4.078 MB / 298.7 MB Notification: Performance of SimCode: time 1.753e-06/0.08302, allocations: 0 / 316.9 MB, free: 4.078 MB / 298.7 MB Notification: Performance of Templates: time 0.02724/0.1103, allocations: 19.99 MB / 336.9 MB, free: 84 kB / 314.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.385515079833567]