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.001332/0.001332, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001358/0.001358, allocations: 188.4 kB / 23.72 MB, free: 4.711 MB / 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.449/1.449, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.001546/0.001546, allocations: 47.92 kB / 371 MB, free: 9.355 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2544, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01171/0.2661, allocations: 9.357 MB / 432.5 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004959/0.2711, allocations: 2.298 MB / 434.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008454/0.2719, allocations: 39.75 kB / 434.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008742/0.2728, allocations: 329 kB / 435.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001157/0.2739, allocations: 0.4997 MB / 435.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.2751, allocations: 0.6517 MB / 436.3 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002374/0.2775, allocations: 2.356 MB / 438.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001135/0.2786, allocations: 0.7426 MB / 439.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00114/0.2798, allocations: 0.8802 MB / 440.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001172/0.281, allocations: 0.8949 MB / 441.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003735/0.2813, allocations: 276 kB / 441.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000539/0.2819, allocations: 335.9 kB / 441.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004958/0.2824, allocations: 0.5026 MB / 442.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009874/0.2833, allocations: 0.9687 MB / 443.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003629/0.287, allocations: 3.367 MB / 446.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.287, allocations: 0 / 446.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.287, allocations: 0 / 446.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.215e-05/0.287, allocations: 0 / 446.6 MB, free: 7.086 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.004073/0.2911, allocations: 1.886 MB / 448.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.2911, allocations: 12.92 kB / 448.5 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003134/0.2914, allocations: 187.8 kB / 448.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001383/0.2928, allocations: 0.7846 MB / 449.5 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003137/0.2931, allocations: 236.7 kB / 449.7 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002555/0.2934, allocations: 159.9 kB / 449.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003322/0.2967, allocations: 1.678 MB / 451.5 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.761e-05/0.2968, allocations: 11.98 kB / 451.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001487/0.2969, allocations: 60 kB / 451.6 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.141e-05/0.2969, allocations: 40 kB / 451.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003489/0.3004, allocations: 1.562 MB / 453.2 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009442/0.3099, allocations: 5.708 MB / 458.9 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002224/0.3121, allocations: 0.8813 MB / 459.8 MB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001113/0.3132, allocations: 0.4924 MB / 460.3 MB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.041e-05/0.3133, allocations: 9 kB / 460.3 MB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001373/0.3146, allocations: 0.6567 MB / 461 MB, free: 8.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=90): time 2.365e-06/0.3146, allocations: 0 / 461 MB, free: 8.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.0369/0.3516, allocations: 8.67 MB / 469.6 MB, free: 15.62 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001947/0.3517, allocations: 299.7 kB / 469.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/0.353, allocations: 0.7896 MB / 470.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001422/0.3531, allocations: 53.7 kB / 470.8 MB, free: 14.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000677/0.3538, allocations: 0.6761 MB / 471.4 MB, free: 13.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004576/0.3543, allocations: 428.3 kB / 471.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005233/0.3548, allocations: 251.6 kB / 472.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002282/0.355, allocations: 406.7 kB / 472.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002137/0.3571, allocations: 0.8082 MB / 473.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002439/0.3596, allocations: 1.134 MB / 474.4 MB, free: 10.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003957/0.3635, allocations: 1.654 MB / 476.1 MB, free: 8.828 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.3635, allocations: 0 / 476.1 MB, free: 8.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.005103/0.3686, allocations: 2.077 MB / 478.2 MB, free: 6.734 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.3687, allocations: 12 kB / 478.2 MB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.3687, allocations: 8 kB / 478.2 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004561/0.3691, allocations: 186.4 kB / 478.4 MB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001756/0.3709, allocations: 355.5 kB / 478.7 MB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004459/0.3754, allocations: 4.493 MB / 483.2 MB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/0.377, allocations: 172 kB / 483.4 MB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.3771, allocations: 48 kB / 483.4 MB, free: 1.121 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.0007369/0.3778, allocations: 387.2 kB / 483.8 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/0.378, allocations: 115.3 kB / 483.9 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003033/0.3783, allocations: 138 kB / 484.1 MB, free: 492 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.3784, allocations: 12 kB / 484.1 MB, free: 480 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.3784, allocations: 0 / 484.1 MB, free: 480 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.3784, allocations: 7.969 kB / 484.1 MB, free: 472 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008434/0.3868, allocations: 4.377 MB / 488.4 MB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.484e-05/0.3868, allocations: 9 kB / 488.5 MB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/0.388, allocations: 267.6 kB / 488.7 MB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006215/0.3887, allocations: 369.5 kB / 489.1 MB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.305e-05/0.3888, allocations: 35.98 kB / 489.1 MB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001964/0.3907, allocations: 2.168 MB / 491.3 MB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.271e-05/0.3907, allocations: 15.94 kB / 491.3 MB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005301/0.396, allocations: 2.498 MB / 493.8 MB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006083/0.3966, allocations: 259.1 kB / 494 MB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001846/0.3968, allocations: 40 kB / 494.1 MB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.398, allocations: 139.8 kB / 494.2 MB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003462/0.3983, allocations: 172.2 kB / 494.4 MB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.875e-05/0.3984, allocations: 43.98 kB / 494.4 MB, free: 5.621 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007945/0.3992, allocations: 0.542 MB / 495 MB, free: 5.082 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3992, allocations: 0 / 495 MB, free: 5.082 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001234/0.4004, allocations: 347.9 kB / 495.3 MB, free: 4.742 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.0003245/0.4007, allocations: 172 kB / 495.5 MB, free: 4.566 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004456/0.4052, allocations: 1.922 MB / 497.4 MB, free: 2.609 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.4052, allocations: 8.062 kB / 497.4 MB, free: 2.602 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00243/0.4076, allocations: 1.024 MB / 498.4 MB, free: 1.566 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.4089, allocations: 191 kB / 498.6 MB, free: 1.379 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006162/0.415, allocations: 3.121 MB / 0.49 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009526/0.416, allocations: 1.182 MB / 0.4911 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008558/0.4169, allocations: 164.4 kB / 0.4913 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003813/0.4172, allocations: 87.36 kB / 0.4914 GB, free: 12.63 MB / 414.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4172, allocations: 0 / 0.4914 GB, free: 12.63 MB / 414.1 MB Notification: Performance of Templates: time 0.03536/0.4526, allocations: 20.11 MB / 0.511 GB, free: 8.641 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.325876540504396]