Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis") translateModel(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001402/0.001402, allocations: 187.8 kB / 8.132 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.089/1.089, allocations: 194.2 MB / 202.8 MB, free: 8.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001868/0.001868, allocations: 115.3 kB / 247.7 MB, free: 6.363 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.101e-06/6.221e-06, allocations: 0 / 297.6 MB, free: 7.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07086/0.07088, allocations: 44.48 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2085/0.2794, allocations: 88.17 MB / 430.2 MB, free: 7.398 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/0.2797, allocations: 88.38 kB / 430.3 MB, free: 7.348 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.08825/0.368, allocations: 37.65 MB / 468 MB, free: 8.305 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.03e-05/0.3681, allocations: 32 kB / 468 MB, free: 8.273 MB / 346.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.003576/0.3717, allocations: 1.557 MB / 469.6 MB, free: 6.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.3717, allocations: 8.031 kB / 469.6 MB, free: 6.762 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005507/0.3723, allocations: 181.9 kB / 469.8 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.3738, allocations: 0.7894 MB / 470.5 MB, free: 5.988 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002957/0.3741, allocations: 192.1 kB / 470.7 MB, free: 5.785 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002649/0.3743, allocations: 99.84 kB / 470.8 MB, free: 5.691 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002696/0.3771, allocations: 1.302 MB / 472.1 MB, free: 4.879 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002773/0.3798, allocations: 1.348 MB / 473.5 MB, free: 3.504 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.627e-05/0.3799, allocations: 11.89 kB / 473.5 MB, free: 3.492 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.3801, allocations: 4 kB / 473.5 MB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.412e-05/0.3801, allocations: 36 kB / 473.5 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01019/0.3903, allocations: 5.815 MB / 479.3 MB, free: 13.42 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009626/0.3913, allocations: 0.5772 MB / 479.9 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007282/0.3921, allocations: 456.7 kB / 480.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001209/0.3922, allocations: 12.72 kB / 480.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008866/0.3931, allocations: 0.5696 MB / 480.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=92): time 4.378e-06/0.3931, allocations: 0 / 480.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=123): time 0.01316/0.4063, allocations: 5.342 MB / 486.3 MB, free: 6.316 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.4064, allocations: 295.7 kB / 486.6 MB, free: 5.961 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008576/0.4073, allocations: 0.605 MB / 487.2 MB, free: 5.348 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.4074, allocations: 37.69 kB / 487.2 MB, free: 5.305 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003976/0.4078, allocations: 0.5726 MB / 487.8 MB, free: 4.719 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003391/0.4082, allocations: 398.1 kB / 488.2 MB, free: 4.324 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.4083, allocations: 0 / 488.2 MB, free: 4.324 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.4085, allocations: 410.6 kB / 488.6 MB, free: 3.914 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001097/0.4096, allocations: 0.6172 MB / 489.2 MB, free: 3.297 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00133/0.4109, allocations: 0.9203 MB / 490.1 MB, free: 2.266 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.4121, allocations: 0.6155 MB / 490.7 MB, free: 1.648 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4121, allocations: 0 / 490.7 MB, free: 1.648 MB / 362.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003017/0.4151, allocations: 1.629 MB / 492.4 MB, free: 4 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.4151, allocations: 4 kB / 492.4 MB, free: 0 / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.49e-05/0.4152, allocations: 8.125 kB / 492.4 MB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003981/0.4156, allocations: 178.4 kB / 492.5 MB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001916/0.4175, allocations: 387.5 kB / 492.9 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003006/0.4205, allocations: 3.991 MB / 496.9 MB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/0.4221, allocations: 191.9 kB / 497.1 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001594/0.4223, allocations: 52.19 kB / 497.2 MB, free: 10.84 MB / 378.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.0003378/0.4226, allocations: 157.2 kB / 497.3 MB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001917/0.4228, allocations: 102.8 kB / 497.4 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002634/0.4255, allocations: 1.383 MB / 498.8 MB, free: 9.176 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.4255, allocations: 12 kB / 498.8 MB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.4255, allocations: 0 / 498.8 MB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.4255, allocations: 11.98 kB / 498.8 MB, free: 9.152 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007117/0.4327, allocations: 3.941 MB / 0.491 GB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/0.4327, allocations: 12 kB / 0.491 GB, free: 5.027 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001342/0.434, allocations: 288.5 kB / 0.4913 GB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005444/0.4346, allocations: 321.5 kB / 0.4916 GB, free: 4.422 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.4347, allocations: 23.98 kB / 0.4916 GB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001692/0.4364, allocations: 2.047 MB / 0.4936 GB, free: 2.211 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/0.4364, allocations: 16.08 kB / 0.4936 GB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003413/0.4399, allocations: 2.47 MB / 0.496 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005021/0.4404, allocations: 323.7 kB / 0.4963 GB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/0.4406, allocations: 24 kB / 0.4963 GB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.4418, allocations: 147.9 kB / 0.4965 GB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003431/0.4422, allocations: 176.3 kB / 0.4967 GB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.4423, allocations: 47.98 kB / 0.4967 GB, free: 14.62 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0005921/0.4429, allocations: 467.2 kB / 0.4971 GB, free: 14.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001127/0.444, allocations: 303.9 kB / 0.4974 GB, free: 13.87 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.0003061/0.4443, allocations: 162.8 kB / 0.4976 GB, free: 13.71 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002558/0.4469, allocations: 1.66 MB / 0.4992 GB, free: 12.01 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.4469, allocations: 4 kB / 0.4992 GB, free: 12 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001686/0.4486, allocations: 0.8834 MB / 0.5001 GB, free: 11.12 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008341/0.4494, allocations: 131.1 kB / 0.5002 GB, free: 10.99 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005345/0.4548, allocations: 2.384 MB / 0.5025 GB, free: 8.445 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001371/0.4562, allocations: 1.287 MB / 0.5038 GB, free: 7.133 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4562, allocations: 0 / 0.5038 GB, free: 7.133 MB / 394.7 MB Notification: Performance of Templates: time 0.1249/0.5811, allocations: 17.77 MB / 0.5211 GB, free: 144.8 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)