Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009412/0.0009412, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.005811/0.005811, allocations: 160.2 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8456/0.8456, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.11e-05/2.277e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.006285/0.006308, allocations: 8.235 MB / 334.1 MB, free: 7.152 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002981/0.009289, allocations: 2.403 MB / 336.5 MB, free: 4.742 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004953/0.009785, allocations: 31.88 kB / 336.5 MB, free: 4.711 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000543/0.01033, allocations: 348.9 kB / 336.9 MB, free: 4.367 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008742/0.0112, allocations: 0.5228 MB / 337.4 MB, free: 3.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000682/0.01188, allocations: 0.667 MB / 338 MB, free: 3.172 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001395/0.01328, allocations: 2.434 MB / 340.5 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007282/0.01401, allocations: 0.6906 MB / 341.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009071/0.01491, allocations: 1.326 MB / 342.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005277/0.01544, allocations: 0.6778 MB / 343.2 MB, free: 13.98 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001949/0.01564, allocations: 280 kB / 343.4 MB, free: 13.71 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003681/0.016, allocations: 363.8 kB / 343.8 MB, free: 13.35 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002742/0.01628, allocations: 0.5142 MB / 344.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000434/0.01671, allocations: 0.69 MB / 345 MB, free: 12.14 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002118/0.01883, allocations: 3.541 MB / 348.5 MB, free: 8.594 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.01883, allocations: 0 / 348.5 MB, free: 8.594 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.01883, allocations: 0 / 348.5 MB, free: 8.594 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.062e-05/0.01886, allocations: 0 / 348.5 MB, free: 8.594 MB / 314.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.002145/0.021, allocations: 1.909 MB / 350.5 MB, free: 6.645 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.02103, allocations: 8.031 kB / 350.5 MB, free: 6.637 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002457/0.02128, allocations: 195.8 kB / 350.7 MB, free: 6.445 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008785/0.02216, allocations: 0.7853 MB / 351.4 MB, free: 5.629 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000239/0.0224, allocations: 442.3 kB / 351.9 MB, free: 5.129 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/0.02256, allocations: 172.2 kB / 352 MB, free: 4.961 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002003/0.02457, allocations: 1.876 MB / 353.9 MB, free: 3.008 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.477e-05/0.0246, allocations: 7.953 kB / 353.9 MB, free: 3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.691e-05/0.0247, allocations: 64 kB / 354 MB, free: 2.938 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.197e-05/0.02472, allocations: 36 kB / 354 MB, free: 2.902 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002036/0.02675, allocations: 1.531 MB / 355.5 MB, free: 1.367 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005213/0.03197, allocations: 5.014 MB / 360.6 MB, free: 12.15 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/0.03325, allocations: 0.8914 MB / 361.5 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000622/0.03387, allocations: 488.5 kB / 361.9 MB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.593e-05/0.03392, allocations: 12.94 kB / 361.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008625/0.03478, allocations: 0.8536 MB / 362.8 MB, free: 9.797 MB / 330.7 MB Notification: Performance of pre-optimization done (n=92): time 2.695e-06/0.03478, allocations: 0 / 362.8 MB, free: 9.797 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01806/0.05284, allocations: 8.556 MB / 371.4 MB, free: 1.195 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.05296, allocations: 303.7 kB / 371.7 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007907/0.05375, allocations: 0.7854 MB / 372.4 MB, free: 32 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.464e-05/0.05383, allocations: 53.78 kB / 372.5 MB, free: 15.97 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.05422, allocations: 0.6838 MB / 373.2 MB, free: 15.28 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002436/0.05447, allocations: 424.4 kB / 373.6 MB, free: 14.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003073/0.05477, allocations: 251.6 kB / 373.8 MB, free: 14.61 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.05492, allocations: 414.7 kB / 374.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.05607, allocations: 0.7926 MB / 375 MB, free: 13.4 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/0.05739, allocations: 1.315 MB / 376.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002071/0.05946, allocations: 1.619 MB / 378 MB, free: 10.22 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.05947, allocations: 4 kB / 378 MB, free: 10.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002649/0.06211, allocations: 2.034 MB / 380 MB, free: 8.164 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.06213, allocations: 8 kB / 380 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.06215, allocations: 4 kB / 380 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003236/0.06247, allocations: 222.4 kB / 380.2 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008101/0.06328, allocations: 351.5 kB / 380.6 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002517/0.0658, allocations: 4.436 MB / 385 MB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000698/0.06649, allocations: 172 kB / 385.2 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.281e-05/0.06657, allocations: 48 kB / 385.2 MB, free: 2.629 MB / 346.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 (170): * Single equations (assignments): 167 * 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.0005532/0.06712, allocations: 383.5 kB / 385.6 MB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.06724, allocations: 115.3 kB / 385.7 MB, free: 2.129 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001292/0.06737, allocations: 125.8 kB / 385.8 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.06738, allocations: 15.94 kB / 385.9 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.06738, allocations: 0 / 385.9 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.06739, allocations: 11.97 kB / 385.9 MB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00449/0.07188, allocations: 3.839 MB / 389.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.585e-06/0.07189, allocations: 8 kB / 389.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005551/0.07244, allocations: 255.6 kB / 390 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003198/0.07276, allocations: 281.7 kB / 390.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.723e-05/0.07282, allocations: 36 kB / 390.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.07391, allocations: 2.067 MB / 392.3 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/0.07392, allocations: 11.94 kB / 392.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002916/0.07684, allocations: 2.39 MB / 394.7 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003817/0.07722, allocations: 255.1 kB / 395 MB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.07732, allocations: 47.94 kB / 395 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005179/0.07784, allocations: 143.8 kB / 395.2 MB, free: 8.203 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002428/0.07808, allocations: 176.2 kB / 395.3 MB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.019e-05/0.07815, allocations: 51.98 kB / 395.4 MB, free: 7.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005128/0.07866, allocations: 0.5186 MB / 395.9 MB, free: 7.465 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.07866, allocations: 0 / 395.9 MB, free: 7.465 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008699/0.07953, allocations: 339.9 kB / 396.2 MB, free: 7.133 MB / 362.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,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007677/0.0803, allocations: 460.7 kB / 396.7 MB, free: 6.832 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002518/0.08282, allocations: 1.894 MB / 398.6 MB, free: 4.898 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.08283, allocations: 4.562 kB / 398.6 MB, free: 4.895 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001273/0.0841, allocations: 1 MB / 399.6 MB, free: 3.879 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000706/0.08481, allocations: 187.2 kB / 399.8 MB, free: 3.699 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003879/0.08868, allocations: 3.02 MB / 402.8 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004427/0.08913, allocations: 0.5942 MB / 403.4 MB, free: 15.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003035/0.08943, allocations: 92.42 kB / 403.5 MB, free: 15.79 MB / 378.7 MB Notification: Performance of SimCode: time 1.142e-06/0.08943, allocations: 0 / 403.5 MB, free: 15.79 MB / 378.7 MB Notification: Performance of Templates: time 0.02596/0.1154, allocations: 37.2 MB / 440.7 MB, free: 10.61 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.84740174934268]