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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001009/0.001009, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.643/1.643, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008551/0.0008554, allocations: 82.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.785e-05/2.789e-05, allocations: 4 kB / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 47.58 MB / 370 MB, free: 1.699 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3892/0.5004, allocations: 93.69 MB / 463.7 MB, free: 15.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/0.5007, allocations: 83.25 kB / 463.8 MB, free: 15.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09082/0.5916, allocations: 38.15 MB / 0.4902 GB, free: 10.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5916, allocations: 0 / 0.4902 GB, free: 10.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.444e-05/0.5917, allocations: 36.22 kB / 0.4902 GB, free: 10.79 MB / 378.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.003312/0.595, allocations: 1.504 MB / 0.4917 GB, free: 9.234 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.192e-05/0.5951, allocations: 12.03 kB / 0.4917 GB, free: 9.223 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004959/0.5956, allocations: 193.9 kB / 0.4919 GB, free: 9.031 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.597, allocations: 0.7905 MB / 0.4927 GB, free: 8.195 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003032/0.5973, allocations: 240.1 kB / 0.4929 GB, free: 7.941 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000243/0.5976, allocations: 159.9 kB / 0.493 GB, free: 7.785 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003016/0.6006, allocations: 1.562 MB / 0.4946 GB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.552e-05/0.6007, allocations: 11.91 kB / 0.4946 GB, free: 6.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001535/0.6008, allocations: 60 kB / 0.4946 GB, free: 6.121 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.721e-05/0.6009, allocations: 36 kB / 0.4947 GB, free: 6.086 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002759/0.6037, allocations: 1.383 MB / 0.496 GB, free: 4.699 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01077/0.6144, allocations: 6.049 MB / 0.5019 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.6159, allocations: 0.84 MB / 0.5028 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000709/0.6167, allocations: 476.7 kB / 0.5032 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.966e-05/0.6167, allocations: 16.78 kB / 0.5032 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009184/0.6177, allocations: 0.5946 MB / 0.5038 GB, free: 12.43 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 3.597e-06/0.6177, allocations: 0 / 0.5038 GB, free: 12.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=123): time 0.01264/0.6303, allocations: 5.579 MB / 0.5093 GB, free: 6.754 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001787/0.6306, allocations: 303.8 kB / 0.5095 GB, free: 6.391 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/0.6317, allocations: 0.6796 MB / 0.5102 GB, free: 5.703 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001266/0.6318, allocations: 57.69 kB / 0.5103 GB, free: 5.641 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006608/0.6325, allocations: 0.6469 MB / 0.5109 GB, free: 4.98 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004144/0.6329, allocations: 421.9 kB / 0.5113 GB, free: 4.562 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.457e-05/0.633, allocations: 24 kB / 0.5113 GB, free: 4.539 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002776/0.6333, allocations: 410.7 kB / 0.5117 GB, free: 4.129 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.6344, allocations: 0.6445 MB / 0.5123 GB, free: 3.484 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.6357, allocations: 0.9588 MB / 0.5133 GB, free: 2.418 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.6368, allocations: 0.632 MB / 0.5139 GB, free: 1.789 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.6368, allocations: 4 kB / 0.5139 GB, free: 1.785 MB / 394.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003307/0.6401, allocations: 1.737 MB / 0.5156 GB, free: 32 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/0.6402, allocations: 11.12 kB / 0.5156 GB, free: 24 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.703e-05/0.6402, allocations: 12 kB / 0.5156 GB, free: 12 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004584/0.6407, allocations: 178.5 kB / 0.5158 GB, free: 15.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/0.6424, allocations: 367.5 kB / 0.5161 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004006/0.6464, allocations: 4.462 MB / 0.5205 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.6482, allocations: 203.9 kB / 0.5207 GB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/0.6483, allocations: 52 kB / 0.5207 GB, free: 10.35 MB / 410.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,$whenCondition1,$PRE.axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.mode,pathPlanning.path.motion_ref,pathPlanning.path.noWphase,pathPlanning.pathToAxis1.moving[1],pathPlanning.terminateSimulation.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003924/0.6487, allocations: 198.8 kB / 0.5209 GB, free: 10.15 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001912/0.6489, allocations: 106.7 kB / 0.521 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002841/0.6518, allocations: 1.491 MB / 0.5225 GB, free: 8.535 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.6518, allocations: 16 kB / 0.5225 GB, free: 8.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.6518, allocations: 0 / 0.5225 GB, free: 8.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.6518, allocations: 12.11 kB / 0.5225 GB, free: 8.508 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007216/0.659, allocations: 4.245 MB / 0.5267 GB, free: 4.078 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.401e-05/0.6591, allocations: 12 kB / 0.5267 GB, free: 4.066 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/0.6602, allocations: 275.7 kB / 0.5269 GB, free: 3.797 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005437/0.6608, allocations: 317.5 kB / 0.5272 GB, free: 3.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.6609, allocations: 47.98 kB / 0.5273 GB, free: 3.434 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001635/0.6625, allocations: 2.095 MB / 0.5293 GB, free: 1.176 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.797e-06/0.6625, allocations: 11.94 kB / 0.5293 GB, free: 1.164 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2792/0.9417, allocations: 2.553 MB / 0.5318 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007667/0.9425, allocations: 329 kB / 0.5321 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002005/0.9427, allocations: 45.41 kB / 0.5322 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.9439, allocations: 162.2 kB / 0.5323 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000449/0.9443, allocations: 186.5 kB / 0.5325 GB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.9445, allocations: 48.8 kB / 0.5326 GB, free: 112.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008421/0.9453, allocations: 0.5168 MB / 0.5331 GB, free: 112.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.9453, allocations: 2.031 kB / 0.5331 GB, free: 112.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001836/0.9472, allocations: 355.2 kB / 0.5334 GB, free: 112.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 7 (axis.gear.gear.phi_a,axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.controller.PI.x,load.w) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004028/0.9476, allocations: 191.2 kB / 0.5336 GB, free: 112.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003218/0.9508, allocations: 1.754 MB / 0.5353 GB, free: 112.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.327e-06/0.9508, allocations: 3.062 kB / 0.5353 GB, free: 112.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00178/0.9526, allocations: 0.922 MB / 0.5362 GB, free: 112.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.9537, allocations: 166 kB / 0.5364 GB, free: 112.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005269/0.959, allocations: 2.462 MB / 0.5388 GB, free: 111.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/0.9601, allocations: 1.211 MB / 0.54 GB, free: 110.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001199/0.9613, allocations: 165.6 kB / 0.5401 GB, free: 110.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004103/0.9617, allocations: 82.19 kB / 0.5402 GB, free: 110.5 MB / 410.7 MB Notification: Performance of SimCode: time 2.574e-06/0.9617, allocations: 0 / 0.5402 GB, free: 110.5 MB / 410.7 MB Notification: Performance of Templates: time 0.0334/0.9951, allocations: 17.08 MB / 0.5569 GB, free: 109.6 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (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) 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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches