Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001135/0.001135, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00178/0.002915, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001219/0.001219, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001566/0.002785, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9716/0.9716, allocations: 177.4 MB / 189.9 MB, free: 4.828 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09929/1.071, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.241e-05/2.408e-05, allocations: 2.312 kB / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.007473/0.007497, allocations: 9.106 MB / 254.1 MB, free: 4.484 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003586/0.01108, allocations: 2.561 MB / 256.7 MB, free: 1.914 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007467/0.01183, allocations: 31.88 kB / 256.7 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006257/0.01246, allocations: 340.9 kB / 257 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008556/0.01331, allocations: 0.5383 MB / 257.6 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000913/0.01422, allocations: 0.667 MB / 258.3 MB, free: 344 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002091/0.01632, allocations: 2.422 MB / 260.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008338/0.01715, allocations: 0.7263 MB / 261.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001483/0.01863, allocations: 1.43 MB / 262.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006011/0.01923, allocations: 0.6973 MB / 263.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002071/0.01944, allocations: 280 kB / 263.8 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003928/0.01983, allocations: 355.8 kB / 264.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002479/0.02008, allocations: 419 kB / 264.6 MB, free: 9.949 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004252/0.02051, allocations: 0.5733 MB / 265.1 MB, free: 9.375 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001217/0.02172, allocations: 1.515 MB / 266.6 MB, free: 7.855 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.233e-05/0.02174, allocations: 4 kB / 266.7 MB, free: 7.852 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.02174, allocations: 0 / 266.7 MB, free: 7.852 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.149e-05/0.02176, allocations: 0 / 266.7 MB, free: 7.852 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.001924/0.02368, allocations: 2.223 MB / 268.9 MB, free: 5.594 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.02371, allocations: 8.922 kB / 268.9 MB, free: 5.586 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002983/0.02401, allocations: 341.8 kB / 269.2 MB, free: 5.234 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005748/0.02459, allocations: 0.5121 MB / 269.7 MB, free: 4.695 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001969/0.02479, allocations: 442.3 kB / 270.2 MB, free: 4.195 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.02492, allocations: 160.3 kB / 270.3 MB, free: 4.039 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.02597, allocations: 1.283 MB / 271.6 MB, free: 2.672 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.11e-05/0.026, allocations: 11.94 kB / 271.6 MB, free: 2.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.992e-05/0.02607, allocations: 64 kB / 271.7 MB, free: 2.598 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.02609, allocations: 39.98 kB / 271.7 MB, free: 2.559 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006726/0.02676, allocations: 0.5052 MB / 272.2 MB, free: 2.039 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1167/0.1435, allocations: 3.875 MB / 276.1 MB, free: 19.51 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009731/0.1445, allocations: 0.5175 MB / 276.6 MB, free: 19.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002932/0.1447, allocations: 188.1 kB / 276.8 MB, free: 19.39 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.752e-05/0.1448, allocations: 14.97 kB / 276.8 MB, free: 19.39 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000503/0.1453, allocations: 0.5888 MB / 277.4 MB, free: 18.99 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.425e-06/0.1453, allocations: 1.031 kB / 277.4 MB, free: 18.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=119): time 0.01005/0.1554, allocations: 4.716 MB / 282.1 MB, free: 18.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.1554, allocations: 95.89 kB / 282.2 MB, free: 18.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006072/0.156, allocations: 0.6359 MB / 282.8 MB, free: 18.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.07e-05/0.1561, allocations: 54.48 kB / 282.9 MB, free: 18.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002482/0.1563, allocations: 0.614 MB / 283.5 MB, free: 17.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.1565, allocations: 417.3 kB / 283.9 MB, free: 17.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002626/0.1568, allocations: 250.7 kB / 284.2 MB, free: 17.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.962e-05/0.1569, allocations: 415.8 kB / 284.6 MB, free: 17.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003625/0.1572, allocations: 225.2 kB / 284.8 MB, free: 17.17 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000455/0.1577, allocations: 0.7415 MB / 285.5 MB, free: 16.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007503/0.1584, allocations: 0.7716 MB / 286.3 MB, free: 16.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.1584, allocations: 1.688 kB / 286.3 MB, free: 16.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.001044/0.1595, allocations: 0.8568 MB / 287.2 MB, free: 16.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1595, allocations: 12.38 kB / 287.2 MB, free: 16.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.1595, allocations: 8.25 kB / 287.2 MB, free: 16.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002751/0.1598, allocations: 176.3 kB / 287.4 MB, free: 16.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009676/0.1608, allocations: 396.6 kB / 287.7 MB, free: 16.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/0.1622, allocations: 3.821 MB / 291.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006171/0.1628, allocations: 141.6 kB / 291.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.447e-05/0.1629, allocations: 37.2 kB / 291.7 MB, free: 12.62 MB / 266.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 (168): * Single equations (assignments): 165 * 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.0002973/0.1632, allocations: 208.6 kB / 291.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.1633, allocations: 104.6 kB / 292 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.792e-05/0.1634, allocations: 135.3 kB / 292.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1634, allocations: 11.34 kB / 292.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-05/0.1634, allocations: 10.16 kB / 292.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.1634, allocations: 6.281 kB / 292.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/0.1657, allocations: 2.025 MB / 294.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.1657, allocations: 12.41 kB / 294.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005736/0.1663, allocations: 292.3 kB / 294.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002336/0.1665, allocations: 126.5 kB / 294.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002424/0.1668, allocations: 216.7 kB / 294.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.122e-05/0.1668, allocations: 33.48 kB / 294.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005459/0.1674, allocations: 1.795 MB / 296.7 MB, free: 9.844 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.687e-06/0.1674, allocations: 18.62 kB / 296.7 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008984/0.1683, allocations: 1.164 MB / 297.9 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.252e-05/0.1684, allocations: 47.05 kB / 297.9 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003789/0.1687, allocations: 109.7 kB / 298 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/0.1689, allocations: 151.2 kB / 298.2 MB, free: 8.609 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.423e-05/0.1689, allocations: 36.92 kB / 298.2 MB, free: 8.582 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001703/0.1691, allocations: 292.7 kB / 298.5 MB, free: 8.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1691, allocations: 0 / 298.5 MB, free: 8.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007107/0.1698, allocations: 346.8 kB / 298.8 MB, free: 8.039 MB / 266.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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001111/0.1709, allocations: 0.5259 MB / 299.4 MB, free: 7.789 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009643/0.1719, allocations: 1.049 MB / 300.4 MB, free: 6.777 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-05/0.1719, allocations: 20.44 kB / 300.4 MB, free: 6.754 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003521/0.1723, allocations: 450.3 kB / 300.9 MB, free: 6.336 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006058/0.1729, allocations: 317.1 kB / 301.2 MB, free: 6.039 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/0.1831, allocations: 2.955 MB / 304.1 MB, free: 2.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.1833, allocations: 273.4 kB / 304.4 MB, free: 2.691 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005664/0.1838, allocations: 167.6 kB / 304.6 MB, free: 2.527 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000446/0.1843, allocations: 265.2 kB / 304.8 MB, free: 2.27 MB / 266.7 MB Notification: Performance of SimCode: time 1.313e-06/0.1843, allocations: 0 / 304.8 MB, free: 2.27 MB / 266.7 MB Notification: Performance of Templates: time 0.02478/0.2091, allocations: 21.04 MB / 325.9 MB, free: 13.47 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.2255514208227396]