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.0009347/0.0009347, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.0009107/0.0009107, allocations: 160.9 kB / 25.45 MB, free: 8.855 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.8801/0.8801, allocations: 158.6 MB / 187.2 MB, free: 3.043 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.753e-06/1.753e-06, allocations: 0 / 299.7 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.102e-05/3.277e-05, allocations: 2.281 kB / 299.7 MB, free: 6.91 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.007867/0.0079, allocations: 8.009 MB / 307.7 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00461/0.01251, allocations: 2.276 MB / 310 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001328/0.01384, allocations: 31.88 kB / 310 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008706/0.01471, allocations: 321 kB / 310.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001615/0.01632, allocations: 0.5267 MB / 310.9 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.0175, allocations: 0.6593 MB / 311.5 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0024/0.0199, allocations: 2.406 MB / 313.9 MB, free: 8.617 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009991/0.0209, allocations: 0.7021 MB / 314.6 MB, free: 7.871 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002082/0.02298, allocations: 1.306 MB / 315.9 MB, free: 6.562 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006996/0.02368, allocations: 0.67 MB / 316.6 MB, free: 5.891 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002453/0.02392, allocations: 276 kB / 316.9 MB, free: 5.621 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004639/0.02439, allocations: 339.9 kB / 317.2 MB, free: 5.289 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003108/0.0247, allocations: 0.5142 MB / 317.7 MB, free: 4.773 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006284/0.02533, allocations: 0.6899 MB / 318.4 MB, free: 4.082 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002547/0.02787, allocations: 3.486 MB / 321.9 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.02788, allocations: 4 kB / 321.9 MB, free: 0.582 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.02788, allocations: 0 / 321.9 MB, free: 0.582 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.012e-05/0.02794, allocations: 0 / 321.9 MB, free: 0.582 MB / 298.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.003159/0.0311, allocations: 1.886 MB / 323.8 MB, free: 14.65 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.03115, allocations: 11.98 kB / 323.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003389/0.03149, allocations: 191.8 kB / 324 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.03255, allocations: 0.7814 MB / 324.8 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002722/0.03282, allocations: 442.3 kB / 325.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001821/0.033, allocations: 164.2 kB / 325.4 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002247/0.03525, allocations: 1.895 MB / 327.3 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.103e-05/0.03529, allocations: 11.95 kB / 327.3 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.42e-05/0.03538, allocations: 60 kB / 327.3 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.03541, allocations: 40 kB / 327.4 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002119/0.03753, allocations: 1.558 MB / 328.9 MB, free: 9.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006266/0.04379, allocations: 5.022 MB / 334 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.04515, allocations: 0.9027 MB / 334.9 MB, free: 3.191 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006413/0.04579, allocations: 0.5002 MB / 335.4 MB, free: 2.688 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.627e-05/0.04584, allocations: 9 kB / 335.4 MB, free: 2.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00107/0.04691, allocations: 0.877 MB / 336.2 MB, free: 1.707 MB / 314.7 MB Notification: Performance of pre-optimization done (n=91): time 3.506e-06/0.04691, allocations: 0 / 336.2 MB, free: 1.707 MB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.01915/0.06606, allocations: 8.684 MB / 344.9 MB, free: 8.973 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.06619, allocations: 303.7 kB / 345.2 MB, free: 8.605 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008961/0.06708, allocations: 0.7736 MB / 346 MB, free: 7.824 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/0.0672, allocations: 53.7 kB / 346 MB, free: 7.766 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004371/0.06764, allocations: 0.6761 MB / 346.7 MB, free: 7.078 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000311/0.06795, allocations: 436.3 kB / 347.1 MB, free: 6.648 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003295/0.06828, allocations: 251.5 kB / 347.4 MB, free: 6.398 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.06843, allocations: 402.7 kB / 347.8 MB, free: 5.996 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.06963, allocations: 0.8121 MB / 348.6 MB, free: 5.184 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001442/0.07107, allocations: 1.343 MB / 349.9 MB, free: 3.68 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002461/0.07353, allocations: 1.658 MB / 351.6 MB, free: 1.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.07354, allocations: 4 kB / 351.6 MB, free: 1.926 MB / 330.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.1648/0.2383, allocations: 2.072 MB / 353.7 MB, free: 59.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.2384, allocations: 8.062 kB / 353.7 MB, free: 59.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.643e-05/0.2384, allocations: 7.562 kB / 353.7 MB, free: 59.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004655/0.2389, allocations: 182.5 kB / 353.9 MB, free: 59.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.2402, allocations: 353.4 kB / 354.2 MB, free: 59.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002521/0.2427, allocations: 4.406 MB / 358.6 MB, free: 55.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.244, allocations: 166.6 kB / 358.8 MB, free: 55.92 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/0.2441, allocations: 47.16 kB / 358.8 MB, free: 55.91 MB / 330.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.000838/0.2449, allocations: 391.5 kB / 359.2 MB, free: 55.64 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/0.2451, allocations: 111.3 kB / 359.3 MB, free: 55.64 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001653/0.2453, allocations: 127 kB / 359.4 MB, free: 55.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.2453, allocations: 12.19 kB / 359.5 MB, free: 55.54 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.612e-05/0.2453, allocations: 1.859 kB / 359.5 MB, free: 55.54 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.2453, allocations: 8 kB / 359.5 MB, free: 55.54 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005762/0.2511, allocations: 3.895 MB / 363.4 MB, free: 53.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.2511, allocations: 9.484 kB / 363.4 MB, free: 53.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006808/0.2518, allocations: 261.5 kB / 363.6 MB, free: 53.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004905/0.2523, allocations: 371.5 kB / 364 MB, free: 53.41 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.004e-05/0.2523, allocations: 40.16 kB / 364 MB, free: 53.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001151/0.2535, allocations: 2.142 MB / 366.2 MB, free: 51.47 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.035e-05/0.2535, allocations: 14.28 kB / 366.2 MB, free: 51.47 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003429/0.2569, allocations: 2.503 MB / 368.7 MB, free: 50.21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005519/0.2575, allocations: 248.4 kB / 368.9 MB, free: 50.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.2576, allocations: 47.97 kB / 369 MB, free: 50.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005908/0.2582, allocations: 139.9 kB / 369.1 MB, free: 50.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002852/0.2585, allocations: 175.8 kB / 369.3 MB, free: 50.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.791e-05/0.2585, allocations: 46.91 kB / 369.3 MB, free: 50.01 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005736/0.2591, allocations: 0.5179 MB / 369.8 MB, free: 49.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2591, allocations: 1.281 kB / 369.9 MB, free: 49.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0011/0.2602, allocations: 345.7 kB / 370.2 MB, free: 49.73 MB / 330.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.0003137/0.2605, allocations: 192.8 kB / 370.4 MB, free: 49.6 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002806/0.2633, allocations: 1.932 MB / 372.3 MB, free: 48.69 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/0.2634, allocations: 6.969 kB / 372.3 MB, free: 48.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001455/0.2648, allocations: 1.004 MB / 373.3 MB, free: 48.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.2658, allocations: 167.9 kB / 373.5 MB, free: 48.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00401/0.2698, allocations: 2.985 MB / 376.5 MB, free: 46.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.2703, allocations: 0.5889 MB / 377.1 MB, free: 45.79 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003775/0.2706, allocations: 89.89 kB / 377.1 MB, free: 45.7 MB / 330.7 MB Notification: Performance of SimCode: time 1.793e-06/0.2706, allocations: 4 kB / 377.1 MB, free: 45.7 MB / 330.7 MB Notification: Performance of Templates: time 0.02522/0.2959, allocations: 36.7 MB / 413.9 MB, free: 9.074 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 6.9571579387411475]