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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009819/0.0009819, allocations: 172.8 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007832/0.0007831, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.806e-05/2.81e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1022, allocations: 47.57 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3301/0.4324, allocations: 93.69 MB / 463.8 MB, free: 15.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003608/0.4328, allocations: 85.44 kB / 463.9 MB, free: 15.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08804/0.5209, allocations: 38.17 MB / 0.4903 GB, free: 10.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.5209, allocations: 0 / 0.4903 GB, free: 10.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001083/0.521, allocations: 36.2 kB / 0.4903 GB, free: 10.74 MB / 378.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.003934/0.525, allocations: 1.511 MB / 0.4918 GB, free: 9.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.5251, allocations: 8.031 kB / 0.4918 GB, free: 9.172 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005542/0.5256, allocations: 227.8 kB / 0.492 GB, free: 8.938 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006107/0.5262, allocations: 185.9 kB / 0.4922 GB, free: 8.754 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.5278, allocations: 0.7944 MB / 0.493 GB, free: 7.914 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002924/0.5282, allocations: 236.1 kB / 0.4932 GB, free: 7.664 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003343/0.5285, allocations: 163.9 kB / 0.4934 GB, free: 7.504 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003375/0.5319, allocations: 1.565 MB / 0.4949 GB, free: 5.906 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.36e-05/0.532, allocations: 7.906 kB / 0.4949 GB, free: 5.898 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001684/0.5321, allocations: 60 kB / 0.495 GB, free: 5.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.329e-05/0.5322, allocations: 40 kB / 0.495 GB, free: 5.801 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002611/0.5348, allocations: 1.379 MB / 0.4963 GB, free: 4.418 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009285/0.5441, allocations: 6.042 MB / 0.5022 GB, free: 14.15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.5455, allocations: 0.84 MB / 0.5031 GB, free: 13.28 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007335/0.5463, allocations: 476.7 kB / 0.5035 GB, free: 12.81 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.14e-05/0.5464, allocations: 16.77 kB / 0.5035 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009412/0.5473, allocations: 0.5947 MB / 0.5041 GB, free: 12.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 3.507e-06/0.5474, allocations: 4 kB / 0.5041 GB, free: 12.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=123): time 0.01237/0.5597, allocations: 5.572 MB / 0.5096 GB, free: 6.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.5599, allocations: 303.7 kB / 0.5099 GB, free: 6.117 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/0.561, allocations: 0.6835 MB / 0.5105 GB, free: 5.426 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.5611, allocations: 53.7 kB / 0.5106 GB, free: 5.367 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005858/0.5617, allocations: 0.6508 MB / 0.5112 GB, free: 4.703 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003655/0.5621, allocations: 421.9 kB / 0.5116 GB, free: 4.285 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.149e-05/0.5622, allocations: 28 kB / 0.5116 GB, free: 4.258 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002155/0.5624, allocations: 406.7 kB / 0.512 GB, free: 3.852 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.5635, allocations: 0.6406 MB / 0.5126 GB, free: 3.211 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001333/0.5648, allocations: 0.9627 MB / 0.5136 GB, free: 2.141 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.5659, allocations: 0.632 MB / 0.5142 GB, free: 1.512 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.5659, allocations: 4 kB / 0.5142 GB, free: 1.508 MB / 394.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003106/0.569, allocations: 1.745 MB / 0.5159 GB, free: 15.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.5691, allocations: 11.98 kB / 0.5159 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/0.5691, allocations: 4 kB / 0.5159 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000434/0.5696, allocations: 178.5 kB / 0.5161 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.5712, allocations: 371.4 kB / 0.5165 GB, free: 15.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003727/0.5749, allocations: 4.455 MB / 0.5208 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001672/0.5766, allocations: 203.9 kB / 0.521 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001322/0.5768, allocations: 56 kB / 0.5211 GB, free: 10.07 MB / 410.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 () * 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.0003435/0.5771, allocations: 192 kB / 0.5212 GB, free: 9.875 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.5773, allocations: 106.7 kB / 0.5213 GB, free: 9.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002692/0.58, allocations: 1.498 MB / 0.5228 GB, free: 8.254 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.58, allocations: 15.98 kB / 0.5228 GB, free: 8.238 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.5801, allocations: 4 kB / 0.5228 GB, free: 8.234 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.5801, allocations: 3.984 kB / 0.5228 GB, free: 8.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006977/0.5871, allocations: 4.249 MB / 0.527 GB, free: 3.797 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.5871, allocations: 8 kB / 0.527 GB, free: 3.789 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/0.5882, allocations: 279.8 kB / 0.5272 GB, free: 3.516 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005407/0.5888, allocations: 325.5 kB / 0.5276 GB, free: 3.191 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.748e-05/0.5889, allocations: 43.92 kB / 0.5276 GB, free: 3.148 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001567/0.5905, allocations: 2.087 MB / 0.5296 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.838e-06/0.5905, allocations: 16.03 kB / 0.5297 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2237/0.8142, allocations: 2.56 MB / 0.5322 GB, free: 112.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006776/0.8149, allocations: 324.3 kB / 0.5325 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.8151, allocations: 45.62 kB / 0.5325 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.8162, allocations: 160.9 kB / 0.5327 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003746/0.8166, allocations: 190.8 kB / 0.5328 GB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.771e-05/0.8167, allocations: 48.06 kB / 0.5329 GB, free: 112.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008144/0.8175, allocations: 0.5144 MB / 0.5334 GB, free: 112.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8175, allocations: 0.9375 kB / 0.5334 GB, free: 112.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001368/0.8189, allocations: 351.7 kB / 0.5337 GB, free: 112.3 MB / 410.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.003942/0.8228, allocations: 5.864 MB / 0.5395 GB, free: 108.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002819/0.8257, allocations: 1.767 MB / 0.5412 GB, free: 107.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/0.8257, allocations: 2.281 kB / 0.5412 GB, free: 107.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001603/0.8273, allocations: 0.9167 MB / 0.5421 GB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.8284, allocations: 171.6 kB / 0.5422 GB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005689/0.8341, allocations: 2.696 MB / 0.5449 GB, free: 106.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009216/0.835, allocations: 1.214 MB / 0.5461 GB, free: 105.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009636/0.836, allocations: 161 kB / 0.5462 GB, free: 105.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007795/0.8368, allocations: 0.523 MB / 0.5467 GB, free: 105.9 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/0.8368, allocations: 0 / 0.5467 GB, free: 105.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04787/0.8847, allocations: 27.35 MB / 0.5734 GB, free: 103.9 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/0.8849, allocations: 207 kB / 0.5736 GB, free: 103.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/3.537, allocations: 0 / 0.5736 GB, free: 103.7 MB / 410.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)