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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008131/0.0008131, allocations: 92.45 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002697/0.0002697, allocations: 4 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2534, allocations: 50.42 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1123/0.3658, allocations: 96.52 MB / 498 MB, free: 15.92 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.3661, allocations: 93.16 kB / 498.1 MB, free: 15.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2602/0.6263, allocations: 38.97 MB / 0.5245 GB, free: 88.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.6264, allocations: 0 / 0.5245 GB, free: 88.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.117e-05/0.6264, allocations: 38.95 kB / 0.5246 GB, free: 88.69 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.002722/0.6292, allocations: 1.625 MB / 0.5261 GB, free: 87.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.6292, allocations: 8.031 kB / 0.5261 GB, free: 87.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003396/0.6296, allocations: 181.9 kB / 0.5263 GB, free: 86.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.6306, allocations: 0.7938 MB / 0.5271 GB, free: 86.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002139/0.6309, allocations: 244.1 kB / 0.5273 GB, free: 85.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001921/0.6311, allocations: 159.9 kB / 0.5275 GB, free: 85.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002634/0.6337, allocations: 1.651 MB / 0.5291 GB, free: 83.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.472e-05/0.6338, allocations: 15.84 kB / 0.5291 GB, free: 83.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/0.6339, allocations: 60 kB / 0.5292 GB, free: 83.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.6339, allocations: 36 kB / 0.5292 GB, free: 83.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002695/0.6366, allocations: 1.546 MB / 0.5307 GB, free: 82.26 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007473/0.6441, allocations: 6.045 MB / 0.5366 GB, free: 76.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.6458, allocations: 0.9311 MB / 0.5375 GB, free: 75.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.163e-05/0.6458, allocations: 10.03 kB / 0.5375 GB, free: 75.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.6469, allocations: 0.6723 MB / 0.5382 GB, free: 74.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 3.337e-06/0.6469, allocations: 0 / 0.5382 GB, free: 74.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.03082/0.6777, allocations: 9.873 MB / 0.5478 GB, free: 64.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.345e-05/0.6778, allocations: 307.7 kB / 0.5481 GB, free: 64.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007715/0.6786, allocations: 0.6911 MB / 0.5488 GB, free: 63.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/0.6787, allocations: 57.7 kB / 0.5489 GB, free: 63.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003555/0.6791, allocations: 0.6549 MB / 0.5495 GB, free: 62.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002326/0.6793, allocations: 416.8 kB / 0.5499 GB, free: 62.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.35e-05/0.6794, allocations: 28 kB / 0.5499 GB, free: 62.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.6795, allocations: 406.7 kB / 0.5503 GB, free: 61.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.6811, allocations: 0.8316 MB / 0.5511 GB, free: 60.94 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00169/0.6828, allocations: 1.146 MB / 0.5522 GB, free: 59.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.6843, allocations: 0.8101 MB / 0.553 GB, free: 58.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.6844, allocations: 0 / 0.553 GB, free: 58.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003944/0.6883, allocations: 2.111 MB / 0.5551 GB, free: 56.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.6884, allocations: 11.98 kB / 0.5551 GB, free: 56.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/0.6884, allocations: 8 kB / 0.5551 GB, free: 56.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003369/0.6887, allocations: 178.5 kB / 0.5553 GB, free: 56.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/0.6902, allocations: 371.4 kB / 0.5556 GB, free: 56.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.6929, allocations: 4.48 MB / 0.56 GB, free: 51.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.6943, allocations: 203.9 kB / 0.5602 GB, free: 51.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.6944, allocations: 55.94 kB / 0.5603 GB, free: 51.05 MB / 378.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 () * Number of clocked 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.0006928/0.6951, allocations: 390.7 kB / 0.5606 GB, free: 50.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.6953, allocations: 106.7 kB / 0.5607 GB, free: 50.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003448/0.6988, allocations: 1.838 MB / 0.5625 GB, free: 48.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.6988, allocations: 12 kB / 0.5625 GB, free: 48.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.6988, allocations: 0 / 0.5625 GB, free: 48.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.6988, allocations: 7.969 kB / 0.5625 GB, free: 48.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0063/0.7051, allocations: 4.512 MB / 0.5669 GB, free: 44.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-06/0.7051, allocations: 8 kB / 0.567 GB, free: 44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.7062, allocations: 284.4 kB / 0.5672 GB, free: 43.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004362/0.7066, allocations: 325.5 kB / 0.5675 GB, free: 43.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.057e-05/0.7067, allocations: 43.98 kB / 0.5676 GB, free: 43.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.7078, allocations: 2.106 MB / 0.5696 GB, free: 41.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.972e-06/0.7078, allocations: 11.94 kB / 0.5696 GB, free: 41.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003839/0.7116, allocations: 2.99 MB / 0.5726 GB, free: 37.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004436/0.7121, allocations: 331.6 kB / 0.5729 GB, free: 37.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000149/0.7123, allocations: 44 kB / 0.5729 GB, free: 37.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009413/0.7132, allocations: 155.9 kB / 0.5731 GB, free: 37.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002651/0.7135, allocations: 188.5 kB / 0.5733 GB, free: 37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.59e-05/0.7136, allocations: 47.98 kB / 0.5733 GB, free: 36.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005757/0.7141, allocations: 0.5264 MB / 0.5738 GB, free: 36.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7142, allocations: 0 / 0.5738 GB, free: 36.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001073/0.7152, allocations: 355.9 kB / 0.5742 GB, free: 36.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.gear.bearingFriction.phi,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) * Number of clocked states: 0 () * 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.0002486/0.7155, allocations: 198.1 kB / 0.5743 GB, free: 35.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003281/0.7188, allocations: 2.094 MB / 0.5764 GB, free: 33.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.7188, allocations: 3.938 kB / 0.5764 GB, free: 33.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001753/0.7206, allocations: 1.077 MB / 0.5774 GB, free: 32.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008677/0.7214, allocations: 168.8 kB / 0.5776 GB, free: 32.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004756/0.7262, allocations: 3.737 MB / 0.5813 GB, free: 28.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000544/0.7268, allocations: 1.214 MB / 0.5824 GB, free: 27.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009133/0.7277, allocations: 160.3 kB / 0.5826 GB, free: 27.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003572/0.7281, allocations: 79.42 kB / 0.5827 GB, free: 27.12 MB / 378.7 MB Notification: Performance of SimCode: time 1.483e-06/0.7281, allocations: 3.938 kB / 0.5827 GB, free: 27.11 MB / 378.7 MB Notification: Performance of Templates: time 0.02396/0.752, allocations: 17.1 MB / 0.5994 GB, free: 10.15 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Systems/RobotR3/OneAxis/OneAxis.csv","../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