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.001503/0.001503, allocations: 96.3 kB / 21.73 MB, free: 2.703 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.001498/0.001498, allocations: 168 kB / 25.02 MB, free: 8.43 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.433/1.433, allocations: 158.6 MB / 186.8 MB, free: 2.863 MB / 170.7 MB " [Timeout remaining time 178] 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.663e-06/1.663e-06, allocations: 0 / 250.4 MB, free: 3.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.547e-05/2.713e-05, allocations: 6.312 kB / 250.4 MB, free: 3.93 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis): time 0.01173/0.01176, allocations: 8.024 MB / 258.4 MB, free: 11.86 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005475/0.01723, allocations: 2.272 MB / 260.7 MB, free: 9.578 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.01828, allocations: 39.81 kB / 260.7 MB, free: 9.539 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008661/0.01915, allocations: 329 kB / 261 MB, free: 9.215 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001466/0.02062, allocations: 0.5189 MB / 261.5 MB, free: 8.691 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001432/0.02205, allocations: 0.6593 MB / 262.2 MB, free: 8.031 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003254/0.0253, allocations: 2.406 MB / 264.6 MB, free: 5.613 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001363/0.02666, allocations: 0.7098 MB / 265.3 MB, free: 4.855 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002299/0.02896, allocations: 1.299 MB / 266.6 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009904/0.02995, allocations: 0.6662 MB / 267.3 MB, free: 2.887 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003555/0.03031, allocations: 280 kB / 267.6 MB, free: 2.613 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006169/0.03093, allocations: 343.8 kB / 267.9 MB, free: 2.277 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005469/0.03147, allocations: 0.5141 MB / 268.4 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008579/0.03233, allocations: 0.6783 MB / 269.1 MB, free: 1.082 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004118/0.03645, allocations: 3.498 MB / 272.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.03645, allocations: 0 / 272.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.03646, allocations: 0 / 272.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.063e-05/0.03651, allocations: 0 / 272.6 MB, free: 13.57 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.004514/0.04102, allocations: 1.878 MB / 274.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.04107, allocations: 11.98 kB / 274.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006359/0.0417, allocations: 315.9 kB / 274.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001558/0.04326, allocations: 0.8086 MB / 275.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005015/0.04376, allocations: 442.3 kB / 276 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002928/0.04406, allocations: 164.3 kB / 276.2 MB, free: 9.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00365/0.04771, allocations: 1.891 MB / 278.1 MB, free: 7.871 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.455e-05/0.04776, allocations: 15.94 kB / 278.1 MB, free: 7.855 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001621/0.04792, allocations: 60 kB / 278.1 MB, free: 7.797 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.931e-05/0.04796, allocations: 39.94 kB / 278.2 MB, free: 7.758 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003658/0.05162, allocations: 1.562 MB / 279.7 MB, free: 6.191 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01019/0.06181, allocations: 5.116 MB / 284.9 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002375/0.06418, allocations: 0.9067 MB / 285.8 MB, free: 15.95 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00119/0.06537, allocations: 0.4924 MB / 286.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.04e-05/0.06544, allocations: 20.98 kB / 286.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001648/0.06709, allocations: 0.8693 MB / 287.2 MB, free: 14.47 MB / 282.7 MB Notification: Performance of pre-optimization done (n=91): time 2.605e-06/0.0671, allocations: 0 / 287.2 MB, free: 14.47 MB / 282.7 MB Notification: Performance of matching and sorting (n=121): time 0.03672/0.1038, allocations: 8.719 MB / 295.9 MB, free: 5.699 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002268/0.104, allocations: 299.7 kB / 296.2 MB, free: 5.34 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001302/0.1053, allocations: 0.7775 MB / 296.9 MB, free: 4.555 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000125/0.1055, allocations: 57.64 kB / 297 MB, free: 4.492 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007506/0.1062, allocations: 0.6799 MB / 297.7 MB, free: 3.805 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004939/0.1067, allocations: 420.4 kB / 298.1 MB, free: 3.391 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005552/0.1073, allocations: 251.5 kB / 298.3 MB, free: 3.137 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002885/0.1076, allocations: 406.7 kB / 298.7 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002071/0.1096, allocations: 0.816 MB / 299.5 MB, free: 1.914 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002607/0.1122, allocations: 1.343 MB / 300.9 MB, free: 420 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1453/0.2576, allocations: 1.659 MB / 302.5 MB, free: 57.25 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/0.2576, allocations: 2.188 kB / 302.6 MB, free: 57.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005266/0.2629, allocations: 2.136 MB / 304.7 MB, free: 56.45 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.983e-05/0.2629, allocations: 8.203 kB / 304.7 MB, free: 56.45 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.329e-05/0.2629, allocations: 7.781 kB / 304.7 MB, free: 56.45 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006113/0.2635, allocations: 201.6 kB / 304.9 MB, free: 56.38 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001688/0.2652, allocations: 356 kB / 305.2 MB, free: 56.35 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003287/0.2685, allocations: 4.413 MB / 309.7 MB, free: 52.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/0.2701, allocations: 171.1 kB / 309.8 MB, free: 52.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/0.2702, allocations: 46.52 kB / 309.9 MB, free: 52.2 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.0007821/0.271, allocations: 387.2 kB / 310.3 MB, free: 51.92 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003981/0.2714, allocations: 142.6 kB / 310.4 MB, free: 51.9 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003043/0.2717, allocations: 128.9 kB / 310.5 MB, free: 51.8 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.2717, allocations: 15.84 kB / 310.5 MB, free: 51.8 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.2717, allocations: 5.938 kB / 310.5 MB, free: 51.8 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.2717, allocations: 7.766 kB / 310.5 MB, free: 51.8 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007954/0.2797, allocations: 3.899 MB / 314.4 MB, free: 49.8 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.432e-05/0.2797, allocations: 12.22 kB / 314.5 MB, free: 49.8 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.2809, allocations: 266.3 kB / 314.7 MB, free: 49.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006122/0.2815, allocations: 380.1 kB / 315.1 MB, free: 49.66 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.963e-05/0.2816, allocations: 37.88 kB / 315.1 MB, free: 49.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001303/0.2829, allocations: 2.15 MB / 317.3 MB, free: 47.72 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.478e-06/0.2829, allocations: 16 kB / 317.3 MB, free: 47.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004496/0.2874, allocations: 2.539 MB / 319.8 MB, free: 46.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005194/0.2879, allocations: 244.6 kB / 320.1 MB, free: 46.33 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.2881, allocations: 48.3 kB / 320.1 MB, free: 46.29 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.2892, allocations: 143.5 kB / 320.3 MB, free: 46.19 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003261/0.2895, allocations: 176 kB / 320.4 MB, free: 46.08 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.119e-05/0.2896, allocations: 47.42 kB / 320.5 MB, free: 46.04 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006482/0.2902, allocations: 0.5092 MB / 321 MB, free: 45.59 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2902, allocations: 0 / 321 MB, free: 45.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001292/0.2915, allocations: 346.8 kB / 321.3 MB, free: 45.26 MB / 282.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.0003121/0.2918, allocations: 191.3 kB / 321.5 MB, free: 45.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003688/0.2955, allocations: 1.933 MB / 323.4 MB, free: 43.32 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/0.2955, allocations: 4 kB / 323.4 MB, free: 43.31 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00189/0.2974, allocations: 1.04 MB / 324.5 MB, free: 42.29 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.2986, allocations: 214.2 kB / 324.7 MB, free: 42.09 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00483/0.3034, allocations: 2.982 MB / 327.7 MB, free: 38.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000542/0.3039, allocations: 0.594 MB / 328.3 MB, free: 38.35 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0007263/0.3046, allocations: 160 kB / 328.4 MB, free: 38.19 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/0.305, allocations: 84.48 kB / 328.5 MB, free: 38.11 MB / 282.7 MB Notification: Performance of SimCode: time 9.42e-07/0.305, allocations: 4 kB / 328.5 MB, free: 38.11 MB / 282.7 MB Notification: Performance of Templates: time 0.02522/0.3303, allocations: 18.15 MB / 346.7 MB, free: 19.98 MB / 282.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: 5.282898329896852]