Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001047/0.001048, allocations: 203 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.566/1.566, allocations: 226.5 MB / 245.4 MB, free: 8.109 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007237/0.0007237, allocations: 99.72 kB / 297.4 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000218/0.000218, allocations: 8 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1966/0.1968, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1099/0.3068, allocations: 98.11 MB / 0.4949 GB, free: 9.465 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.3071, allocations: 89.39 kB / 0.495 GB, free: 9.379 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2728/0.5799, allocations: 41.28 MB / 0.5353 GB, free: 77.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5799, allocations: 0 / 0.5353 GB, free: 77.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.033e-05/0.58, allocations: 32 kB / 0.5353 GB, free: 77.06 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.002699/0.5827, allocations: 1.639 MB / 0.5369 GB, free: 75.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.5828, allocations: 8.031 kB / 0.5369 GB, free: 75.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003263/0.5831, allocations: 182.9 kB / 0.5371 GB, free: 75.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009298/0.584, allocations: 0.8225 MB / 0.5379 GB, free: 74.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002074/0.5843, allocations: 240.7 kB / 0.5381 GB, free: 74.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001854/0.5845, allocations: 160.2 kB / 0.5383 GB, free: 73.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002682/0.5871, allocations: 1.675 MB / 0.5399 GB, free: 72.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.492e-05/0.5872, allocations: 7.844 kB / 0.5399 GB, free: 72.19 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/0.5873, allocations: 68 kB / 0.54 GB, free: 72.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.035e-05/0.5874, allocations: 36 kB / 0.54 GB, free: 72.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002783/0.5902, allocations: 1.546 MB / 0.5416 GB, free: 70.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007459/0.5976, allocations: 6.066 MB / 0.5475 GB, free: 64.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.5994, allocations: 0.9515 MB / 0.5484 GB, free: 63.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008643/0.6003, allocations: 0.5246 MB / 0.5489 GB, free: 62.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.282e-05/0.6004, allocations: 12.98 kB / 0.5489 GB, free: 62.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001012/0.6014, allocations: 0.6528 MB / 0.5496 GB, free: 62.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=91): time 2.725e-06/0.6014, allocations: 0 / 0.5496 GB, free: 62.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.02943/0.6309, allocations: 9.775 MB / 0.5591 GB, free: 52.13 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.185e-05/0.631, allocations: 299.7 kB / 0.5594 GB, free: 51.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.632, allocations: 0.7974 MB / 0.5602 GB, free: 50.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001135/0.6321, allocations: 57.69 kB / 0.5602 GB, free: 50.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00041/0.6326, allocations: 0.674 MB / 0.5609 GB, free: 50.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.6328, allocations: 414.1 kB / 0.5613 GB, free: 49.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.106e-05/0.6329, allocations: 24 kB / 0.5613 GB, free: 49.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.633, allocations: 410.7 kB / 0.5617 GB, free: 49.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00166/0.6347, allocations: 0.8277 MB / 0.5625 GB, free: 48.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001743/0.6365, allocations: 1.142 MB / 0.5636 GB, free: 47.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002956/0.6394, allocations: 1.674 MB / 0.5653 GB, free: 45.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.6394, allocations: 7.938 kB / 0.5653 GB, free: 45.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004071/0.6435, allocations: 2.088 MB / 0.5673 GB, free: 43.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.6436, allocations: 12 kB / 0.5673 GB, free: 43.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.6436, allocations: 8 kB / 0.5673 GB, free: 43.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004041/0.644, allocations: 182.5 kB / 0.5675 GB, free: 43.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001495/0.6455, allocations: 375.4 kB / 0.5679 GB, free: 42.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002856/0.6484, allocations: 4.462 MB / 0.5722 GB, free: 37.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001499/0.6499, allocations: 203.8 kB / 0.5724 GB, free: 37.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.65, allocations: 59.94 kB / 0.5725 GB, free: 37.71 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 (170): * Single equations (assignments): 167 * 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: 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.0008214/0.6508, allocations: 391.9 kB / 0.5728 GB, free: 37.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.651, allocations: 102.8 kB / 0.5729 GB, free: 37.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002387/0.6513, allocations: 138.1 kB / 0.5731 GB, free: 37.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.6513, allocations: 16 kB / 0.5731 GB, free: 37.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.6513, allocations: 3.938 kB / 0.5731 GB, free: 37.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.6513, allocations: 7.969 kB / 0.5731 GB, free: 37.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00673/0.658, allocations: 4.49 MB / 0.5775 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.6581, allocations: 8 kB / 0.5775 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.6591, allocations: 283.9 kB / 0.5778 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004032/0.6596, allocations: 241.6 kB / 0.578 GB, free: 31.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.921e-05/0.6596, allocations: 32 kB / 0.578 GB, free: 31.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/0.6608, allocations: 2.076 MB / 0.58 GB, free: 29.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/0.6608, allocations: 15.94 kB / 0.5801 GB, free: 29.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004058/0.6649, allocations: 2.497 MB / 0.5825 GB, free: 26.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005797/0.6655, allocations: 331.6 kB / 0.5828 GB, free: 26.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/0.6657, allocations: 43.98 kB / 0.5829 GB, free: 26.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009403/0.6666, allocations: 155.9 kB / 0.583 GB, free: 26.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003122/0.667, allocations: 188.5 kB / 0.5832 GB, free: 26.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.618e-05/0.667, allocations: 47.98 kB / 0.5832 GB, free: 26.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007134/0.6678, allocations: 0.542 MB / 0.5838 GB, free: 25.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6678, allocations: 0 / 0.5838 GB, free: 25.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001227/0.669, allocations: 344 kB / 0.5841 GB, free: 25.28 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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 (113): * Single equations (assignments): 111 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008525/0.6699, allocations: 441.9 kB / 0.5845 GB, free: 24.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003536/0.6734, allocations: 2.062 MB / 0.5865 GB, free: 22.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.79e-06/0.6734, allocations: 0 / 0.5865 GB, free: 22.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/0.6753, allocations: 1.03 MB / 0.5875 GB, free: 21.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002068/0.6774, allocations: 197.5 kB / 0.5877 GB, free: 21.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005045/0.6824, allocations: 3.829 MB / 0.5915 GB, free: 17.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005546/0.683, allocations: 1.183 MB / 0.5926 GB, free: 16.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005188/0.6836, allocations: 95.42 kB / 0.5927 GB, free: 16.35 MB / 378.7 MB Notification: Performance of SimCode: time 7.71e-07/0.6836, allocations: 0 / 0.5927 GB, free: 16.35 MB / 378.7 MB Notification: Performance of Templates: time 0.03592/0.7195, allocations: 36.43 MB / 0.6283 GB, free: 11.95 MB / 410.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches