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") [: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.001094/0.001095, allocations: 178.9 kB / 8.477 MB, free: 1.879 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.706/1.706, allocations: 205.2 MB / 214.1 MB, free: 5.105 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009732/0.0009732, allocations: 89.94 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.117e-06/9.137e-06, allocations: 0 / 315 MB, free: 41.47 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09463, allocations: 47.57 MB / 362.6 MB, free: 9.941 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3156/0.4102, allocations: 92.95 MB / 455.5 MB, free: 8.086 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.4105, allocations: 82.39 kB / 455.6 MB, free: 8.074 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.08766/0.4982, allocations: 37.81 MB / 493.4 MB, free: 492 kB / 330.7 MB Notification: Performance of Transformations before backend: time 9.726e-05/0.4984, allocations: 39.94 kB / 493.4 MB, free: 452 kB / 330.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.003492/0.5019, allocations: 1.551 MB / 495 MB, free: 14.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.5019, allocations: 12.03 kB / 495 MB, free: 14.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004464/0.5024, allocations: 181.9 kB / 495.2 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001333/0.5037, allocations: 0.8012 MB / 496 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002699/0.504, allocations: 186.8 kB / 496.2 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002359/0.5043, allocations: 102.4 kB / 496.3 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002428/0.5067, allocations: 1.3 MB / 497.6 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00255/0.5093, allocations: 1.341 MB / 498.9 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.64e-05/0.5093, allocations: 12.95 kB / 498.9 MB, free: 12.15 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.5095, allocations: 0 / 498.9 MB, free: 12.15 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.758e-05/0.5095, allocations: 36 kB / 498.9 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01058/0.5201, allocations: 5.826 MB / 0.4929 GB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009619/0.5211, allocations: 0.5719 MB / 0.4935 GB, free: 5.535 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006945/0.5218, allocations: 458.6 kB / 0.4939 GB, free: 5.086 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.53e-05/0.5219, allocations: 8.781 kB / 0.4939 GB, free: 5.078 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009098/0.5228, allocations: 0.5619 MB / 0.4945 GB, free: 4.473 MB / 346.7 MB Notification: Performance of pre-optimization done (n=92): time 3.567e-06/0.5228, allocations: 4 kB / 0.4945 GB, free: 4.469 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.01328/0.5361, allocations: 5.351 MB / 0.4997 GB, free: 15.01 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/0.5363, allocations: 295.7 kB / 0.5 GB, free: 14.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009284/0.5373, allocations: 0.6128 MB / 0.5006 GB, free: 14.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001135/0.5374, allocations: 37.62 kB / 0.5006 GB, free: 13.99 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005/0.5379, allocations: 0.5725 MB / 0.5012 GB, free: 13.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003625/0.5383, allocations: 390.1 kB / 0.5016 GB, free: 13.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.486e-05/0.5383, allocations: 0 / 0.5016 GB, free: 13.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.5386, allocations: 410.6 kB / 0.502 GB, free: 12.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.5396, allocations: 0.6288 MB / 0.5026 GB, free: 11.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/0.5409, allocations: 0.9081 MB / 0.5035 GB, free: 10.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.542, allocations: 0.6194 MB / 0.5041 GB, free: 10.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.542, allocations: 0 / 0.5041 GB, free: 10.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003081/0.5451, allocations: 1.625 MB / 0.5057 GB, free: 8.695 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.5451, allocations: 4 kB / 0.5057 GB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.739e-05/0.5452, allocations: 12 kB / 0.5057 GB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004321/0.5456, allocations: 182.4 kB / 0.5058 GB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00186/0.5475, allocations: 379.5 kB / 0.5062 GB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004019/0.5515, allocations: 3.987 MB / 0.5101 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.5535, allocations: 191.9 kB / 0.5103 GB, free: 3.594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/0.5537, allocations: 52 kB / 0.5103 GB, free: 3.543 MB / 362.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.0004899/0.5542, allocations: 160.1 kB / 0.5105 GB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002548/0.5544, allocations: 102.7 kB / 0.5106 GB, free: 3.281 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003198/0.5576, allocations: 1.398 MB / 0.5119 GB, free: 1.867 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/0.5577, allocations: 12 kB / 0.512 GB, free: 1.855 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.5577, allocations: 0 / 0.512 GB, free: 1.855 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.5577, allocations: 3.984 kB / 0.512 GB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007632/0.5653, allocations: 3.972 MB / 0.5158 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/0.5654, allocations: 8 kB / 0.5159 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001245/0.5666, allocations: 288.5 kB / 0.5161 GB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005849/0.5672, allocations: 321.5 kB / 0.5164 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.018e-05/0.5673, allocations: 23.98 kB / 0.5165 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001831/0.5692, allocations: 2.047 MB / 0.5185 GB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.444e-05/0.5692, allocations: 19.84 kB / 0.5185 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003493/0.5727, allocations: 2.487 MB / 0.5209 GB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006048/0.5733, allocations: 323.7 kB / 0.5212 GB, free: 7.656 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/0.5735, allocations: 31.92 kB / 0.5212 GB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.5746, allocations: 155.8 kB / 0.5214 GB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003677/0.575, allocations: 172.4 kB / 0.5216 GB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.844e-05/0.5751, allocations: 48.12 kB / 0.5216 GB, free: 7.258 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007329/0.5759, allocations: 459.2 kB / 0.522 GB, free: 6.812 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001411/0.5773, allocations: 300 kB / 0.5223 GB, free: 6.52 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.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.0003428/0.5776, allocations: 158.9 kB / 0.5225 GB, free: 6.355 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002796/0.5804, allocations: 1.657 MB / 0.5241 GB, free: 4.668 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.5805, allocations: 4 kB / 0.5241 GB, free: 4.664 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001703/0.5822, allocations: 0.88 MB / 0.525 GB, free: 3.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009204/0.5831, allocations: 128.7 kB / 0.5251 GB, free: 3.645 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005604/0.5887, allocations: 2.396 MB / 0.5274 GB, free: 1.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001432/0.5902, allocations: 1.287 MB / 0.5287 GB, free: 15.77 MB / 394.7 MB Notification: Performance of SimCode: time 7.61e-07/0.5902, allocations: 3.938 kB / 0.5287 GB, free: 15.77 MB / 394.7 MB Notification: Performance of Templates: time 0.03285/0.623, allocations: 17.74 MB / 0.546 GB, free: 14.02 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