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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001202/0.001202, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.284/1.284, allocations: 194.5 MB / 211.6 MB, free: 3.047 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.001523/0.001523, allocations: 120.5 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003037/0.0003038, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08517/0.08549, allocations: 44.49 MB / 355.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2796/0.3651, allocations: 89 MB / 444.1 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.3655, allocations: 92.34 kB / 444.2 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08701/0.4525, allocations: 38.01 MB / 482.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.4525, allocations: 4 kB / 482.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000158/0.4527, allocations: 36.2 kB / 482.2 MB, free: 13.07 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.005025/0.4577, allocations: 1.623 MB / 483.8 MB, free: 11.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.4578, allocations: 8.031 kB / 483.8 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007925/0.4586, allocations: 185.9 kB / 484 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00177/0.4604, allocations: 0.7868 MB / 484.8 MB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003234/0.4607, allocations: 240.1 kB / 485 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004066/0.4611, allocations: 159.9 kB / 485.2 MB, free: 9.961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003723/0.4649, allocations: 1.655 MB / 486.9 MB, free: 8.277 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.549e-05/0.4649, allocations: 11.89 kB / 486.9 MB, free: 8.266 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000159/0.4651, allocations: 71.95 kB / 486.9 MB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.066e-05/0.4652, allocations: 36 kB / 487 MB, free: 8.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003162/0.4683, allocations: 1.542 MB / 488.5 MB, free: 6.613 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009223/0.4776, allocations: 6.043 MB / 494.6 MB, free: 356 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001867/0.4795, allocations: 0.9412 MB / 495.5 MB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.128e-05/0.4795, allocations: 9 kB / 495.5 MB, free: 15.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001245/0.4808, allocations: 0.6723 MB / 496.2 MB, free: 14.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 2.565e-06/0.4808, allocations: 0 / 496.2 MB, free: 14.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.0326/0.5134, allocations: 9.868 MB / 0.4942 GB, free: 4.656 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001719/0.5136, allocations: 295.7 kB / 0.4945 GB, free: 4.301 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.5147, allocations: 0.6911 MB / 0.4951 GB, free: 3.605 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.5148, allocations: 53.7 kB / 0.4952 GB, free: 3.547 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006004/0.5155, allocations: 0.6586 MB / 0.4958 GB, free: 2.875 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003579/0.5158, allocations: 418.1 kB / 0.4962 GB, free: 2.461 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.899e-05/0.5159, allocations: 28 kB / 0.4963 GB, free: 2.434 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.5161, allocations: 406.7 kB / 0.4966 GB, free: 2.027 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001813/0.518, allocations: 0.8277 MB / 0.4975 GB, free: 1.199 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002089/0.5201, allocations: 1.139 MB / 0.4986 GB, free: 15.95 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001693/0.5218, allocations: 0.8106 MB / 0.4994 GB, free: 15.14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.5218, allocations: 7.953 kB / 0.4994 GB, free: 15.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004172/0.526, allocations: 2.111 MB / 0.5014 GB, free: 13 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.526, allocations: 15.94 kB / 0.5014 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/0.526, allocations: 8 kB / 0.5015 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003953/0.5264, allocations: 174.5 kB / 0.5016 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/0.528, allocations: 375.4 kB / 0.502 GB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00364/0.5316, allocations: 4.478 MB / 0.5064 GB, free: 7.551 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/0.5332, allocations: 203.8 kB / 0.5065 GB, free: 7.352 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.5334, allocations: 55.98 kB / 0.5066 GB, free: 7.297 MB / 394.7 MB 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 () * Number of clocked 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.0009198/0.5343, allocations: 391.7 kB / 0.507 GB, free: 6.902 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/0.5345, allocations: 102.8 kB / 0.5071 GB, free: 6.801 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00391/0.5384, allocations: 1.846 MB / 0.5089 GB, free: 4.934 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.5384, allocations: 12 kB / 0.5089 GB, free: 4.922 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.5384, allocations: 0 / 0.5089 GB, free: 4.922 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.5385, allocations: 3.984 kB / 0.5089 GB, free: 4.918 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008044/0.5465, allocations: 4.522 MB / 0.5133 GB, free: 216 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.751e-05/0.5466, allocations: 8 kB / 0.5133 GB, free: 208 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1808/0.7273, allocations: 278.4 kB / 0.5136 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007565/0.7281, allocations: 323.1 kB / 0.5139 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002853/0.7284, allocations: 39.55 kB / 0.5139 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/0.73, allocations: 2.101 MB / 0.516 GB, free: 105.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.241e-05/0.7301, allocations: 19.33 kB / 0.516 GB, free: 105.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005059/0.7351, allocations: 2.985 MB / 0.5189 GB, free: 104.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006778/0.7358, allocations: 321 kB / 0.5192 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002808/0.7361, allocations: 47.36 kB / 0.5193 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.7372, allocations: 164.2 kB / 0.5194 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003061/0.7375, allocations: 186.9 kB / 0.5196 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.156e-05/0.7376, allocations: 48.11 kB / 0.5196 GB, free: 104 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00076/0.7384, allocations: 0.5233 MB / 0.5202 GB, free: 103.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7384, allocations: 0 / 0.5202 GB, free: 103.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001424/0.7399, allocations: 351.3 kB / 0.5205 GB, free: 103.9 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.spring.phi_rel,axis.gear.spring.w_rel,axis.gear.bearingFriction.phi,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) * Number of clocked states: 0 () * 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.0003275/0.7402, allocations: 197.7 kB / 0.5207 GB, free: 103.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003653/0.7439, allocations: 2.097 MB / 0.5227 GB, free: 103.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.7439, allocations: 5.094 kB / 0.5227 GB, free: 103.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.7458, allocations: 1.076 MB / 0.5238 GB, free: 103.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009972/0.7468, allocations: 178.8 kB / 0.5239 GB, free: 103.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005714/0.7525, allocations: 3.736 MB / 0.5276 GB, free: 101.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008303/0.7533, allocations: 1.209 MB / 0.5288 GB, free: 100.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009271/0.7543, allocations: 158.3 kB / 0.5289 GB, free: 100.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/0.7547, allocations: 79.86 kB / 0.529 GB, free: 100.6 MB / 394.7 MB Notification: Performance of SimCode: time 3.8e-07/0.7547, allocations: 0 / 0.529 GB, free: 100.6 MB / 394.7 MB Notification: Performance of Templates: time 0.03071/0.7854, allocations: 17.12 MB / 0.5457 GB, free: 99.78 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)