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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) [: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.0009154/0.0009154, allocations: 180.4 kB / 8.134 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.051/1.051, allocations: 221.4 MB / 229.9 MB, free: 3.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009075/0.0009075, allocations: 90.91 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09686/0.09783, allocations: 55.83 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.2813, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09772/0.3791, allocations: 95.73 MB / 482.7 MB, free: 7.023 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.3793, allocations: 86.8 kB / 482.8 MB, free: 6.941 MB / 362.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.2183/0.5977, allocations: 40.21 MB / 0.5108 GB, free: 91.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.5978, allocations: 7.688 kB / 0.5108 GB, free: 91.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003817/0.5981, allocations: 182.7 kB / 0.511 GB, free: 90.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.5992, allocations: 0.7998 MB / 0.5117 GB, free: 90.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001945/0.5994, allocations: 185.5 kB / 0.5119 GB, free: 90.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001898/0.5996, allocations: 93.5 kB / 0.512 GB, free: 90.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002048/0.6016, allocations: 1.307 MB / 0.5133 GB, free: 90.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002002/0.6037, allocations: 1.349 MB / 0.5146 GB, free: 89.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.575e-05/0.6037, allocations: 0 / 0.5146 GB, free: 89.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.6038, allocations: 3.938 kB / 0.5146 GB, free: 89.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.456e-05/0.6039, allocations: 41.25 kB / 0.5146 GB, free: 89.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007444/0.6113, allocations: 5.807 MB / 0.5203 GB, free: 86.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007817/0.6121, allocations: 0.571 MB / 0.5209 GB, free: 86.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005527/0.6127, allocations: 461.7 kB / 0.5213 GB, free: 86.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.684e-05/0.6127, allocations: 17.16 kB / 0.5213 GB, free: 86.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000695/0.6134, allocations: 0.5648 MB / 0.5219 GB, free: 85.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 2.735e-06/0.6135, allocations: 3.703 kB / 0.5219 GB, free: 85.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.01035/0.6238, allocations: 5.343 MB / 0.5271 GB, free: 80.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/0.6239, allocations: 303.7 kB / 0.5274 GB, free: 80.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006269/0.6245, allocations: 0.609 MB / 0.528 GB, free: 79.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.072e-05/0.6246, allocations: 33.7 kB / 0.528 GB, free: 79.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002393/0.6249, allocations: 0.5724 MB / 0.5286 GB, free: 79.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002111/0.6251, allocations: 394 kB / 0.529 GB, free: 78.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.028e-05/0.6252, allocations: 0 / 0.529 GB, free: 78.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.124e-05/0.6253, allocations: 406.7 kB / 0.5293 GB, free: 78.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008082/0.6261, allocations: 0.6211 MB / 0.53 GB, free: 77.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009283/0.627, allocations: 0.9219 MB / 0.5309 GB, free: 76.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008331/0.6278, allocations: 0.6152 MB / 0.5315 GB, free: 76.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.6279, allocations: 0 / 0.5315 GB, free: 76.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00227/0.6301, allocations: 1.624 MB / 0.533 GB, free: 74.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.6302, allocations: 8 kB / 0.533 GB, free: 74.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.6302, allocations: 4.656 kB / 0.533 GB, free: 74.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003305/0.6305, allocations: 182.3 kB / 0.5332 GB, free: 74.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001694/0.6322, allocations: 383.4 kB / 0.5336 GB, free: 74.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002086/0.6343, allocations: 3.983 MB / 0.5375 GB, free: 69.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.6357, allocations: 191.9 kB / 0.5377 GB, free: 69.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.6358, allocations: 56.12 kB / 0.5377 GB, free: 69.48 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.0002841/0.6361, allocations: 153.5 kB / 0.5379 GB, free: 69.33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.6362, allocations: 106.8 kB / 0.538 GB, free: 69.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002056/0.6383, allocations: 1.406 MB / 0.5393 GB, free: 67.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.6383, allocations: 12 kB / 0.5393 GB, free: 67.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.6383, allocations: 3.188 kB / 0.5394 GB, free: 67.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.6384, allocations: 3.984 kB / 0.5394 GB, free: 67.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005334/0.6437, allocations: 3.966 MB / 0.5432 GB, free: 63.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.6437, allocations: 8 kB / 0.5432 GB, free: 63.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.6448, allocations: 292.3 kB / 0.5435 GB, free: 63.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004093/0.6452, allocations: 318.6 kB / 0.5438 GB, free: 63.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.565e-05/0.6453, allocations: 23.11 kB / 0.5438 GB, free: 63.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001111/0.6464, allocations: 2.046 MB / 0.5458 GB, free: 60.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.6464, allocations: 12.08 kB / 0.5458 GB, free: 60.87 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00248/0.6489, allocations: 2.497 MB / 0.5483 GB, free: 58 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003168/0.6521, allocations: 3.463 MB / 0.5517 GB, free: 54.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000425/0.6525, allocations: 319.8 kB / 0.552 GB, free: 53.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001789/0.6527, allocations: 31.89 kB / 0.552 GB, free: 53.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009657/0.6537, allocations: 147.9 kB / 0.5521 GB, free: 53.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002623/0.654, allocations: 172.4 kB / 0.5523 GB, free: 53.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.672e-05/0.6541, allocations: 47.98 kB / 0.5524 GB, free: 53.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004664/0.6545, allocations: 463.2 kB / 0.5528 GB, free: 52.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001561/0.6561, allocations: 303.9 kB / 0.5531 GB, free: 52.68 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.0002508/0.6564, allocations: 175.1 kB / 0.5533 GB, free: 52.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001992/0.6584, allocations: 1.662 MB / 0.5549 GB, free: 50.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.6584, allocations: 4 kB / 0.5549 GB, free: 50.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001289/0.6597, allocations: 0.8717 MB / 0.5557 GB, free: 49.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007943/0.6605, allocations: 135.9 kB / 0.5559 GB, free: 49.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004268/0.6647, allocations: 2.391 MB / 0.5582 GB, free: 47.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009678/0.6657, allocations: 1.307 MB / 0.5595 GB, free: 45.95 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.6657, allocations: 0 / 0.5595 GB, free: 45.95 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)