Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 112.2 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001673/0.001673, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 225.6 MB / 250.8 MB, free: 13.34 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 51.92 kB / 368.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2517, allocations: 52.15 MB / 420.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01227/0.264, allocations: 9.346 MB / 430.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005349/0.2694, allocations: 2.294 MB / 432.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00121/0.2706, allocations: 31.88 kB / 432.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000892/0.2715, allocations: 325 kB / 432.9 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001626/0.2731, allocations: 0.5075 MB / 433.4 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001383/0.2745, allocations: 0.6477 MB / 434 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002955/0.2774, allocations: 2.352 MB / 436.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001207/0.2786, allocations: 0.7459 MB / 437.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001315/0.28, allocations: 0.8607 MB / 438 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/0.2811, allocations: 0.891 MB / 438.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003215/0.2814, allocations: 276 kB / 439.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004486/0.2819, allocations: 327.9 kB / 439.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000475/0.2823, allocations: 0.4987 MB / 440 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009978/0.2833, allocations: 0.9803 MB / 440.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003502/0.2868, allocations: 3.351 MB / 444.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2868, allocations: 4 kB / 444.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2868, allocations: 0 / 444.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.094e-05/0.2869, allocations: 0 / 444.3 MB, free: 7.543 MB / 350.1 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.003876/0.2908, allocations: 1.965 MB / 446.3 MB, free: 5.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.2908, allocations: 8.031 kB / 446.3 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003088/0.2911, allocations: 191.8 kB / 446.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.2926, allocations: 0.8541 MB / 447.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003/0.2929, allocations: 232.6 kB / 447.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002561/0.2932, allocations: 167.9 kB / 447.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003793/0.297, allocations: 1.686 MB / 449.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.067e-05/0.297, allocations: 4 kB / 449.4 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001841/0.2972, allocations: 64 kB / 449.5 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.243e-05/0.2973, allocations: 36 kB / 449.5 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00358/0.3008, allocations: 1.566 MB / 451.1 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009583/0.3104, allocations: 5.831 MB / 456.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002162/0.3126, allocations: 0.8895 MB / 457.8 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001048/0.3136, allocations: 0.4937 MB / 458.3 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.944e-05/0.3137, allocations: 9 kB / 458.3 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001347/0.315, allocations: 0.6567 MB / 458.9 MB, free: 8.473 MB / 366.1 MB Notification: Performance of pre-optimization done (n=90): time 2.525e-06/0.3151, allocations: 0 / 458.9 MB, free: 8.473 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.03277/0.3478, allocations: 8.958 MB / 467.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002018/0.348, allocations: 311.6 kB / 468.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00119/0.3492, allocations: 0.7935 MB / 469 MB, free: 14.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001147/0.3493, allocations: 53.7 kB / 469 MB, free: 14.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006128/0.3499, allocations: 0.676 MB / 469.7 MB, free: 13.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003773/0.3503, allocations: 428.4 kB / 470.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005048/0.3508, allocations: 243.5 kB / 470.4 MB, free: 12.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002362/0.3511, allocations: 414.7 kB / 470.8 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001955/0.353, allocations: 0.8121 MB / 471.6 MB, free: 11.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002225/0.3552, allocations: 1.13 MB / 472.7 MB, free: 10.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003591/0.3588, allocations: 1.642 MB / 474.4 MB, free: 8.598 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3588, allocations: 0 / 474.4 MB, free: 8.598 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004726/0.3636, allocations: 2.08 MB / 476.4 MB, free: 6.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.3636, allocations: 8 kB / 476.5 MB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.3636, allocations: 4 kB / 476.5 MB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004247/0.364, allocations: 182.5 kB / 476.6 MB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001639/0.3657, allocations: 351.5 kB / 477 MB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004484/0.3701, allocations: 4.807 MB / 481.8 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/0.3716, allocations: 167.8 kB / 482 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.3717, allocations: 52 kB / 482 MB, free: 0.5156 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 12 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,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.0007289/0.3724, allocations: 395.3 kB / 482.4 MB, free: 120 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001902/0.3726, allocations: 115.3 kB / 482.5 MB, free: 4 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002758/0.3729, allocations: 130 kB / 482.6 MB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.3729, allocations: 12 kB / 482.6 MB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.3729, allocations: 0 / 482.6 MB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.3729, allocations: 7.984 kB / 482.6 MB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007986/0.3809, allocations: 4.424 MB / 487.1 MB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.3809, allocations: 8 kB / 487.1 MB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.3821, allocations: 260.1 kB / 487.3 MB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006095/0.3827, allocations: 377.4 kB / 487.7 MB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.536e-05/0.3828, allocations: 32 kB / 487.7 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002024/0.3848, allocations: 2.287 MB / 490 MB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/0.3848, allocations: 15.94 kB / 490 MB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004887/0.3897, allocations: 2.495 MB / 492.5 MB, free: 5.453 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000512/0.3902, allocations: 324.3 kB / 492.8 MB, free: 5.117 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001683/0.3904, allocations: 43.98 kB / 492.9 MB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.3914, allocations: 139.8 kB / 493 MB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000337/0.3917, allocations: 168.2 kB / 493.2 MB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.858e-05/0.3918, allocations: 47.98 kB / 493.2 MB, free: 4.727 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007736/0.3926, allocations: 0.5342 MB / 493.8 MB, free: 4.195 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3926, allocations: 0 / 493.8 MB, free: 4.195 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001208/0.3938, allocations: 344 kB / 494.1 MB, free: 3.859 MB / 398.1 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: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,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 (112): * Single equations (assignments): 110 * 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.0003196/0.3941, allocations: 187 kB / 494.3 MB, free: 3.672 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004452/0.3986, allocations: 1.914 MB / 496.2 MB, free: 1.723 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/0.3986, allocations: 4 kB / 496.2 MB, free: 1.719 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/0.4009, allocations: 1.028 MB / 497.2 MB, free: 0.6797 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.402, allocations: 203 kB / 497.4 MB, free: 496 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005831/0.4078, allocations: 3.118 MB / 0.4888 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008803/0.4087, allocations: 1.186 MB / 0.49 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007694/0.4095, allocations: 164.4 kB / 0.4901 GB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003499/0.4098, allocations: 83.42 kB / 0.4902 GB, free: 11.73 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4098, allocations: 0 / 0.4902 GB, free: 11.73 MB / 414.1 MB Notification: Performance of Templates: time 0.03387/0.4437, allocations: 19.68 MB / 0.5094 GB, free: 8.18 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.196009813807905]