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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001559/0.001559, allocations: 183.9 kB / 8.479 MB, free: 1.844 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.339/1.339, allocations: 205.2 MB / 214.1 MB, free: 13.9 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.0011/0.0011, allocations: 90.02 kB / 262.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1297/0.1309, allocations: 52.99 MB / 315.1 MB, free: 8.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.3308, allocations: 47.56 MB / 362.6 MB, free: 45.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.4417, allocations: 92.95 MB / 455.6 MB, free: 8.895 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.442, allocations: 79.95 kB / 455.7 MB, free: 8.816 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.09851/0.5405, allocations: 39.41 MB / 495.1 MB, free: 1.359 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.5406, allocations: 12 kB / 495.1 MB, free: 1.348 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006355/0.5412, allocations: 181.9 kB / 495.3 MB, free: 1.168 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001584/0.5428, allocations: 0.7944 MB / 496.1 MB, free: 340 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002904/0.5431, allocations: 192.1 kB / 496.3 MB, free: 128 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003022/0.5434, allocations: 95.91 kB / 496.4 MB, free: 32 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003186/0.5466, allocations: 1.303 MB / 497.7 MB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003986/0.5506, allocations: 1.352 MB / 499 MB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.005e-05/0.5507, allocations: 3.906 kB / 499 MB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000164/0.5509, allocations: 0 / 499 MB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.536e-05/0.551, allocations: 40 kB / 499 MB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01202/0.563, allocations: 5.81 MB / 0.493 GB, free: 7.277 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.5642, allocations: 0.5798 MB / 0.4936 GB, free: 6.684 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007606/0.565, allocations: 444.7 kB / 0.494 GB, free: 6.246 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.814e-05/0.5651, allocations: 16.72 kB / 0.494 GB, free: 6.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001131/0.5662, allocations: 0.5658 MB / 0.4946 GB, free: 5.621 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 4.558e-06/0.5662, allocations: 7.938 kB / 0.4946 GB, free: 5.613 MB / 394.7 MB Notification: Performance of matching and sorting (n=123): time 0.01557/0.5818, allocations: 5.344 MB / 0.4998 GB, free: 172 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1465/0.7284, allocations: 299.7 kB / 0.5001 GB, free: 146.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008829/0.7293, allocations: 0.6092 MB / 0.5007 GB, free: 146.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003145/0.7296, allocations: 36.81 kB / 0.5007 GB, free: 146.7 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004443/0.7301, allocations: 0.572 MB / 0.5013 GB, free: 146.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002892/0.7304, allocations: 399.4 kB / 0.5017 GB, free: 146.4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.581e-05/0.7305, allocations: 0 / 0.5017 GB, free: 146.4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.7306, allocations: 407.6 kB / 0.5021 GB, free: 146.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009471/0.7315, allocations: 0.6193 MB / 0.5027 GB, free: 146.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/0.7326, allocations: 0.9237 MB / 0.5036 GB, free: 145.8 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.7336, allocations: 0.6067 MB / 0.5042 GB, free: 145.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.7337, allocations: 0 / 0.5042 GB, free: 145.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.002638/0.7363, allocations: 1.632 MB / 0.5057 GB, free: 145.6 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.7364, allocations: 6.188 kB / 0.5058 GB, free: 145.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.531e-05/0.7364, allocations: 7.281 kB / 0.5058 GB, free: 145.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000379/0.7368, allocations: 177.1 kB / 0.5059 GB, free: 145.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/0.7386, allocations: 380.5 kB / 0.5063 GB, free: 145.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002513/0.7411, allocations: 3.999 MB / 0.5102 GB, free: 142 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/0.7428, allocations: 186.5 kB / 0.5104 GB, free: 142 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/0.7429, allocations: 58.77 kB / 0.5104 GB, free: 142 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.000342/0.7433, allocations: 141.3 kB / 0.5106 GB, free: 141.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/0.7435, allocations: 99.94 kB / 0.5107 GB, free: 141.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002434/0.7459, allocations: 1.402 MB / 0.512 GB, free: 141.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.7459, allocations: 11.56 kB / 0.512 GB, free: 141.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.7459, allocations: 0 / 0.512 GB, free: 141.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.746, allocations: 10.41 kB / 0.5121 GB, free: 141.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006451/0.7524, allocations: 3.966 MB / 0.5159 GB, free: 141 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.175e-05/0.7525, allocations: 11.09 kB / 0.5159 GB, free: 141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.7537, allocations: 290.4 kB / 0.5162 GB, free: 141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005104/0.7542, allocations: 314.1 kB / 0.5165 GB, free: 141 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.326e-05/0.7543, allocations: 22.69 kB / 0.5165 GB, free: 141 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001391/0.7557, allocations: 2.058 MB / 0.5185 GB, free: 139.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.999e-06/0.7558, allocations: 21.97 kB / 0.5186 GB, free: 139.3 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003226/0.759, allocations: 2.481 MB / 0.521 GB, free: 138.1 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004181/0.7632, allocations: 3.472 MB / 0.5244 GB, free: 136.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005655/0.7638, allocations: 319.9 kB / 0.5247 GB, free: 136.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/0.764, allocations: 31.52 kB / 0.5247 GB, free: 136.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.7651, allocations: 147.6 kB / 0.5249 GB, free: 136.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003298/0.7654, allocations: 169.3 kB / 0.525 GB, free: 136.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.625e-05/0.7656, allocations: 46.23 kB / 0.5251 GB, free: 136.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0006158/0.7662, allocations: 460.5 kB / 0.5255 GB, free: 135.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001966/0.7681, allocations: 314.6 kB / 0.5258 GB, free: 135.8 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.0003364/0.7685, allocations: 162 kB / 0.526 GB, free: 135.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002414/0.7709, allocations: 1.658 MB / 0.5276 GB, free: 134.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.7709, allocations: 0 / 0.5276 GB, free: 134.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001497/0.7724, allocations: 0.8708 MB / 0.5284 GB, free: 134.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008544/0.7733, allocations: 130.2 kB / 0.5285 GB, free: 134.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004837/0.7782, allocations: 2.404 MB / 0.5309 GB, free: 133 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001124/0.7793, allocations: 1.298 MB / 0.5322 GB, free: 132.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.473e-06/0.7793, allocations: 0 / 0.5322 GB, free: 132.2 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis_fmu --startTime=0 --stopTime=1.6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_oneAxis.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.oneAxis.pipe 2>&1)