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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 105.5 kB / 17.59 MB, free: 5.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00168/0.00168, allocations: 187.6 kB / 18.51 MB, free: 4.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 42.27 kB / 301.3 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.103, allocations: 49.44 MB / 350.7 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01111/0.1142, allocations: 9.277 MB / 360 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005353/0.1196, allocations: 2.29 MB / 362.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001943/0.1216, allocations: 31.88 kB / 362.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.1231, allocations: 317.1 kB / 362.6 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002912/0.1261, allocations: 0.4919 MB / 363.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002265/0.1283, allocations: 0.6484 MB / 363.8 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003568/0.1319, allocations: 2.337 MB / 366.1 MB, free: 4.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002237/0.1342, allocations: 1.116 MB / 367.2 MB, free: 3.805 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001725/0.1359, allocations: 0.8451 MB / 368.1 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001487/0.1374, allocations: 0.8871 MB / 369 MB, free: 2.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007134/0.1382, allocations: 276 kB / 369.2 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009049/0.1391, allocations: 323.9 kB / 369.6 MB, free: 1.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006789/0.1398, allocations: 0.4948 MB / 370.1 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00165/0.1415, allocations: 0.9725 MB / 371 MB, free: 8 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2009/0.3424, allocations: 3.302 MB / 374.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.966e-06/0.3425, allocations: 2.625 kB / 374.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3425, allocations: 0.5312 kB / 374.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001567/0.3427, allocations: 2.812 kB / 374.3 MB, free: 14.08 MB / 302.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.007003/0.3497, allocations: 1.92 MB / 376.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.3497, allocations: 9.719 kB / 376.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005056/0.3502, allocations: 180 kB / 376.4 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.3516, allocations: 0.834 MB / 377.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002661/0.3519, allocations: 236.5 kB / 377.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002617/0.3521, allocations: 165.5 kB / 377.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003265/0.3554, allocations: 1.68 MB / 379.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.076e-05/0.3555, allocations: 4.891 kB / 379.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001679/0.3556, allocations: 64.98 kB / 379.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.321e-05/0.3557, allocations: 37.41 kB / 379.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003393/0.3591, allocations: 1.566 MB / 381 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00845/0.3675, allocations: 5.888 MB / 386.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00198/0.3696, allocations: 0.9336 MB / 387.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.3706, allocations: 0.5345 MB / 388.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.146e-05/0.3707, allocations: 13.14 kB / 388.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/0.3719, allocations: 0.6612 MB / 389 MB, free: 7.348 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 2.955e-06/0.3719, allocations: 0 / 389 MB, free: 7.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.03344/0.4053, allocations: 8.917 MB / 398 MB, free: 2.582 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.762e-05/0.4054, allocations: 301.2 kB / 398.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001077/0.4065, allocations: 0.789 MB / 399 MB, free: 1.781 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001381/0.4067, allocations: 51.83 kB / 399.1 MB, free: 1.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004433/0.4071, allocations: 0.6678 MB / 399.8 MB, free: 1.141 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002826/0.4074, allocations: 408.3 kB / 400.2 MB, free: 0.793 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004372/0.4079, allocations: 245.2 kB / 400.4 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.408, allocations: 408.9 kB / 400.8 MB, free: 268 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001968/0.41, allocations: 0.8164 MB / 401.6 MB, free: 15.58 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002267/0.4123, allocations: 1.126 MB / 402.7 MB, free: 14.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003813/0.4161, allocations: 1.65 MB / 404.4 MB, free: 12.63 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/0.4161, allocations: 4 kB / 404.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00513/0.4213, allocations: 2.076 MB / 406.5 MB, free: 10.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.4213, allocations: 11.94 kB / 406.5 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.4213, allocations: 4 kB / 406.5 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004539/0.4218, allocations: 185.1 kB / 406.7 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/0.4235, allocations: 354.6 kB / 407 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004214/0.4278, allocations: 4.812 MB / 411.8 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001866/0.4297, allocations: 155.9 kB / 412 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001591/0.4298, allocations: 55.98 kB / 412 MB, free: 4.629 MB / 318.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.0008609/0.4307, allocations: 387 kB / 412.4 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002368/0.4309, allocations: 106.7 kB / 412.5 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002885/0.4312, allocations: 130 kB / 412.6 MB, free: 4.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-05/0.4313, allocations: 12 kB / 412.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.956e-05/0.4313, allocations: 4 kB / 412.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.4313, allocations: 11.97 kB / 412.7 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008899/0.4402, allocations: 4.41 MB / 417.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.279e-05/0.4403, allocations: 8 kB / 417.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001227/0.4415, allocations: 266.3 kB / 417.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000641/0.4422, allocations: 373.5 kB / 417.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.4423, allocations: 35.98 kB / 417.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002089/0.4444, allocations: 2.273 MB / 420 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.266e-05/0.4445, allocations: 15.75 kB / 420 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005444/0.4499, allocations: 2.498 MB / 422.5 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008148/0.4507, allocations: 319.7 kB / 422.8 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003794/0.4511, allocations: 51.98 kB / 422.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001344/0.4525, allocations: 135.9 kB / 423 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004045/0.4529, allocations: 171.8 kB / 423.2 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.4531, allocations: 43.98 kB / 423.2 MB, free: 9.043 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009783/0.454, allocations: 0.534 MB / 423.8 MB, free: 8.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4541, allocations: 0 / 423.8 MB, free: 8.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001721/0.4558, allocations: 352 kB / 424.1 MB, free: 8.176 MB / 334.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.0004463/0.4562, allocations: 186.2 kB / 424.3 MB, free: 8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.005764/0.462, allocations: 2.092 MB / 426.4 MB, free: 5.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-05/0.4621, allocations: 4 kB / 426.4 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002598/0.4647, allocations: 1.021 MB / 427.4 MB, free: 4.934 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002271/0.467, allocations: 197.9 kB / 427.6 MB, free: 4.746 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008417/0.4754, allocations: 3.155 MB / 430.8 MB, free: 1.457 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001424/0.4769, allocations: 1.179 MB / 431.9 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006435/0.4776, allocations: 87.42 kB / 432 MB, free: 172 kB / 334.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4776, allocations: 0 / 432 MB, free: 172 kB / 334.1 MB Notification: Performance of Templates: time 0.04582/0.5234, allocations: 36.12 MB / 468.2 MB, free: 12.1 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","/var/lib/jenkins1/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) Reference file matches