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") [: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 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 178.9 kB / 8.135 MB, free: 0.8672 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 221.4 MB / 229.9 MB, free: 13.62 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009528/0.0009528, allocations: 96.64 kB / 280.8 MB, free: 10.52 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 6.372e-06/6.402e-06, allocations: 0 / 336.5 MB, free: 2.781 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08762/0.08765, allocations: 50.41 MB / 386.9 MB, free: 324 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2219/0.3096, allocations: 95.72 MB / 482.7 MB, free: 1.91 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.3099, allocations: 85.03 kB / 482.7 MB, free: 1.828 MB / 354.8 MB Notification: Performance of FrontEnd: time 0.08709/0.397, allocations: 38.62 MB / 0.5091 GB, free: 11.43 MB / 402.8 MB Notification: Performance of Transformations before backend: time 6.785e-05/0.3971, allocations: 32 kB / 0.5092 GB, free: 11.4 MB / 402.8 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.002837/0.3999, allocations: 1.561 MB / 0.5107 GB, free: 9.793 MB / 402.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.4, allocations: 11.97 kB / 0.5107 GB, free: 9.781 MB / 402.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003618/0.4003, allocations: 181.9 kB / 0.5109 GB, free: 9.602 MB / 402.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.4015, allocations: 0.7906 MB / 0.5117 GB, free: 8.77 MB / 402.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002472/0.4018, allocations: 192.1 kB / 0.5118 GB, free: 8.562 MB / 402.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000197/0.402, allocations: 91.91 kB / 0.5119 GB, free: 8.473 MB / 402.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00235/0.4043, allocations: 1.303 MB / 0.5132 GB, free: 7.168 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00239/0.4067, allocations: 1.346 MB / 0.5145 GB, free: 5.797 MB / 402.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.733e-05/0.4068, allocations: 15.89 kB / 0.5145 GB, free: 5.781 MB / 402.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.4069, allocations: 4 kB / 0.5145 GB, free: 5.777 MB / 402.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.34e-05/0.4069, allocations: 36 kB / 0.5146 GB, free: 5.742 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009132/0.4161, allocations: 5.804 MB / 0.5202 GB, free: 15.74 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009069/0.417, allocations: 0.5768 MB / 0.5208 GB, free: 15.15 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006914/0.4177, allocations: 452.7 kB / 0.5212 GB, free: 14.71 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 8.532e-05/0.4178, allocations: 8.781 kB / 0.5212 GB, free: 14.7 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008494/0.4187, allocations: 0.5658 MB / 0.5218 GB, free: 14.09 MB / 418.8 MB Notification: Performance of pre-optimization done (n=92): time 2.525e-06/0.4187, allocations: 0 / 0.5218 GB, free: 14.09 MB / 418.8 MB Notification: Performance of matching and sorting (n=123): time 0.01259/0.4313, allocations: 5.346 MB / 0.527 GB, free: 8.645 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001664/0.4315, allocations: 299.7 kB / 0.5273 GB, free: 8.285 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008569/0.4324, allocations: 0.6128 MB / 0.5279 GB, free: 7.668 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.4325, allocations: 25.7 kB / 0.5279 GB, free: 7.637 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005312/0.433, allocations: 0.5804 MB / 0.5285 GB, free: 7.043 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003352/0.4333, allocations: 390.1 kB / 0.5289 GB, free: 6.656 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.495e-05/0.4334, allocations: 0 / 0.5289 GB, free: 6.656 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.4336, allocations: 410.6 kB / 0.5292 GB, free: 6.246 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.4347, allocations: 0.6216 MB / 0.5299 GB, free: 5.625 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001197/0.4359, allocations: 0.9198 MB / 0.5308 GB, free: 4.594 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/0.4369, allocations: 0.6114 MB / 0.5314 GB, free: 3.98 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.4369, allocations: 0 / 0.5314 GB, free: 3.98 MB / 418.8 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.002814/0.4397, allocations: 1.629 MB / 0.5329 GB, free: 2.332 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.4398, allocations: 4 kB / 0.5329 GB, free: 2.328 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/0.4398, allocations: 11.09 kB / 0.533 GB, free: 2.32 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000381/0.4402, allocations: 176.5 kB / 0.5331 GB, free: 2.141 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001787/0.442, allocations: 379.5 kB / 0.5335 GB, free: 1.77 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1008/0.5428, allocations: 3.997 MB / 0.5374 GB, free: 152.3 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001665/0.5445, allocations: 196.3 kB / 0.5376 GB, free: 152.3 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/0.5446, allocations: 50.22 kB / 0.5376 GB, free: 152.3 MB / 418.8 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.0003426/0.545, allocations: 150.6 kB / 0.5378 GB, free: 152.2 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.5451, allocations: 99.88 kB / 0.5379 GB, free: 152.2 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002276/0.5474, allocations: 1.405 MB / 0.5392 GB, free: 152.1 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.5474, allocations: 11.31 kB / 0.5392 GB, free: 152.1 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5474, allocations: 4.875 kB / 0.5393 GB, free: 152.1 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.5475, allocations: 5.531 kB / 0.5393 GB, free: 152.1 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005824/0.5533, allocations: 3.964 MB / 0.5431 GB, free: 151.4 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.5533, allocations: 12.66 kB / 0.5431 GB, free: 151.4 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.5545, allocations: 293.3 kB / 0.5434 GB, free: 151.4 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004491/0.555, allocations: 311.8 kB / 0.5437 GB, free: 151.4 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.238e-05/0.555, allocations: 24.5 kB / 0.5437 GB, free: 151.4 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.5563, allocations: 2.052 MB / 0.5457 GB, free: 149.7 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/0.5563, allocations: 13.44 kB / 0.5458 GB, free: 149.7 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002674/0.559, allocations: 2.487 MB / 0.5482 GB, free: 148.6 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004439/0.5594, allocations: 327.1 kB / 0.5485 GB, free: 148.5 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000196/0.5596, allocations: 27.38 kB / 0.5485 GB, free: 148.5 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.5607, allocations: 152.6 kB / 0.5487 GB, free: 148.5 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002933/0.561, allocations: 171.7 kB / 0.5488 GB, free: 148.5 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.922e-05/0.5611, allocations: 50.8 kB / 0.5489 GB, free: 148.5 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.0005115/0.5616, allocations: 459.1 kB / 0.5493 GB, free: 148.4 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.001056/0.5627, allocations: 305.8 kB / 0.5496 GB, free: 148.4 MB / 418.8 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.0002626/0.5629, allocations: 172.6 kB / 0.5498 GB, free: 148.3 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.002099/0.565, allocations: 1.656 MB / 0.5514 GB, free: 148 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.5651, allocations: 3.438 kB / 0.5514 GB, free: 148 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001412/0.5665, allocations: 0.8752 MB / 0.5523 GB, free: 147.9 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007482/0.5672, allocations: 132.9 kB / 0.5524 GB, free: 147.9 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00431/0.5716, allocations: 2.386 MB / 0.5547 GB, free: 146.9 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009892/0.5726, allocations: 1.294 MB / 0.556 GB, free: 146.2 MB / 418.8 MB Notification: Performance of SimCode: time 4.81e-07/0.5726, allocations: 0 / 0.556 GB, free: 146.2 MB / 418.8 MB Notification: Performance of Templates: time 0.02502/0.5976, allocations: 17.74 MB / 0.5733 GB, free: 145.5 MB / 418.8 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