Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002629/0.002629, allocations: 176.2 kB / 8.151 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.737/1.737, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001297/0.001297, allocations: 91.23 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.108e-05/1.122e-05, allocations: 0 / 314.3 MB, free: 9.031 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2641, allocations: 47.55 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1459/0.4101, allocations: 92.96 MB / 454.8 MB, free: 9.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/0.4105, allocations: 80.45 kB / 454.9 MB, free: 8.992 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.151/0.5616, allocations: 37.82 MB / 492.7 MB, free: 3.176 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001384/0.5618, allocations: 35.98 kB / 492.7 MB, free: 3.141 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.006163/0.568, allocations: 1.55 MB / 494.3 MB, free: 1.539 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/0.568, allocations: 8.031 kB / 494.3 MB, free: 1.531 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/0.5691, allocations: 185.9 kB / 494.5 MB, free: 1.348 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002561/0.5717, allocations: 0.7944 MB / 495.3 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004838/0.5722, allocations: 188.1 kB / 495.5 MB, free: 316 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006203/0.5729, allocations: 99.84 kB / 495.6 MB, free: 216 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005288/0.5782, allocations: 1.303 MB / 496.9 MB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005154/0.5834, allocations: 1.352 MB / 498.2 MB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.848e-05/0.5836, allocations: 3.906 kB / 498.2 MB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002545/0.5838, allocations: 4 kB / 498.2 MB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.071e-05/0.5839, allocations: 36 kB / 498.3 MB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01745/0.6014, allocations: 5.814 MB / 0.4923 GB, free: 7.453 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/0.6031, allocations: 0.572 MB / 0.4928 GB, free: 6.871 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001273/0.6044, allocations: 452.7 kB / 0.4932 GB, free: 6.426 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.6045, allocations: 12.77 kB / 0.4933 GB, free: 6.414 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001541/0.6061, allocations: 0.5658 MB / 0.4938 GB, free: 5.805 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 4.468e-06/0.6061, allocations: 0 / 0.4938 GB, free: 5.805 MB / 394.7 MB Notification: Performance of matching and sorting (n=123): time 0.03163/0.6378, allocations: 5.349 MB / 0.499 GB, free: 364 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1341/0.7719, allocations: 303.7 kB / 0.4993 GB, free: 147.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.7734, allocations: 0.6077 MB / 0.4999 GB, free: 147.4 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003608/0.7738, allocations: 37.22 kB / 0.4999 GB, free: 147.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004823/0.7743, allocations: 0.5953 MB / 0.5005 GB, free: 147.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005576/0.7748, allocations: 399.3 kB / 0.5009 GB, free: 147 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.775, allocations: 0 / 0.5009 GB, free: 147 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.7752, allocations: 365.1 kB / 0.5013 GB, free: 146.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001832/0.777, allocations: 0.6231 MB / 0.5019 GB, free: 146.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002189/0.7792, allocations: 0.9206 MB / 0.5028 GB, free: 146.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001987/0.7813, allocations: 0.6041 MB / 0.5034 GB, free: 146.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.461e-05/0.7813, allocations: 2.906 kB / 0.5034 GB, free: 146.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004945/0.7863, allocations: 1.59 MB / 0.5049 GB, free: 146.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.7863, allocations: 6.188 kB / 0.5049 GB, free: 146.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-05/0.7864, allocations: 10.62 kB / 0.5049 GB, free: 146.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005517/0.787, allocations: 171.3 kB / 0.5051 GB, free: 146.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003709/0.7907, allocations: 381.7 kB / 0.5055 GB, free: 146.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003801/0.7946, allocations: 3.998 MB / 0.5094 GB, free: 142.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002828/0.7974, allocations: 188.2 kB / 0.5095 GB, free: 142.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002846/0.7978, allocations: 51.66 kB / 0.5096 GB, free: 142.6 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: axis.gear.bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0005319/0.7983, allocations: 72.09 kB / 0.5097 GB, free: 142.6 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003553/0.7987, allocations: 98.81 kB / 0.5098 GB, free: 142.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004269/0.803, allocations: 1.399 MB / 0.5111 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-05/0.803, allocations: 11.69 kB / 0.5111 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/0.8031, allocations: 3.844 kB / 0.5111 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.085e-05/0.8031, allocations: 5.953 kB / 0.5111 GB, free: 142.4 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01227/0.8154, allocations: 3.967 MB / 0.515 GB, free: 141.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.937e-05/0.8154, allocations: 10.62 kB / 0.515 GB, free: 141.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002674/0.8181, allocations: 291.6 kB / 0.5153 GB, free: 141.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001001/0.8192, allocations: 317.6 kB / 0.5156 GB, free: 141.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002902/0.8195, allocations: 23.38 kB / 0.5156 GB, free: 141.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00232/0.8219, allocations: 2.048 MB / 0.5176 GB, free: 140 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.521e-05/0.8219, allocations: 14.09 kB / 0.5176 GB, free: 140 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005603/0.8275, allocations: 2.503 MB / 0.5201 GB, free: 138.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.8287, allocations: 322.3 kB / 0.5204 GB, free: 138.6 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003801/0.8291, allocations: 26.55 kB / 0.5204 GB, free: 138.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002272/0.8314, allocations: 155.6 kB / 0.5206 GB, free: 138.6 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006843/0.8321, allocations: 172.3 kB / 0.5207 GB, free: 138.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/0.8323, allocations: 45.84 kB / 0.5208 GB, free: 138.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0009724/0.8332, allocations: 462.5 kB / 0.5212 GB, free: 138.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002021/0.8353, allocations: 298 kB / 0.5215 GB, free: 138.5 MB / 394.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.0006032/0.8359, allocations: 170.5 kB / 0.5217 GB, free: 138.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004439/0.8404, allocations: 1.652 MB / 0.5233 GB, free: 138 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/0.8404, allocations: 2.438 kB / 0.5233 GB, free: 138 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002761/0.8432, allocations: 0.8553 MB / 0.5241 GB, free: 137.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001688/0.845, allocations: 123.6 kB / 0.5242 GB, free: 137.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008983/0.854, allocations: 2.443 MB / 0.5266 GB, free: 136.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002011/0.856, allocations: 1.295 MB / 0.5279 GB, free: 135.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.553e-06/0.8561, allocations: 0 / 0.5279 GB, free: 135.4 MB / 394.7 MB Notification: Performance of Templates: time 0.06087/0.917, allocations: 34.03 MB / 0.5611 GB, free: 118.8 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches