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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 174.7 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 221.3 MB / 235.5 MB, free: 2.93 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.001117/0.001118, allocations: 95.8 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.35e-05/3.361e-05, allocations: 8 kB / 343.9 MB, free: 4.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1161, allocations: 50.41 MB / 394.4 MB, free: 1.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.365/0.4811, allocations: 96.47 MB / 490.8 MB, free: 6.965 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003158/0.4815, allocations: 87.94 kB / 490.9 MB, free: 6.879 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09742/0.5789, allocations: 38.98 MB / 0.5175 GB, free: 15.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.579, allocations: 0 / 0.5175 GB, free: 15.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001179/0.5791, allocations: 36 kB / 0.5175 GB, free: 15.76 MB / 410.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.004385/0.5835, allocations: 1.523 MB / 0.519 GB, free: 14.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.842e-05/0.5836, allocations: 8.031 kB / 0.519 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004871/0.5841, allocations: 227.7 kB / 0.5192 GB, free: 13.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006219/0.5848, allocations: 177.9 kB / 0.5194 GB, free: 13.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001825/0.5866, allocations: 0.7906 MB / 0.5201 GB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004341/0.587, allocations: 236.1 kB / 0.5204 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003601/0.5874, allocations: 159.9 kB / 0.5205 GB, free: 12.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003539/0.591, allocations: 1.573 MB / 0.5221 GB, free: 10.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.814e-05/0.591, allocations: 7.906 kB / 0.5221 GB, free: 10.92 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001437/0.5912, allocations: 60 kB / 0.5221 GB, free: 10.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.008e-05/0.5912, allocations: 36 kB / 0.5222 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003397/0.5946, allocations: 1.379 MB / 0.5235 GB, free: 9.441 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01491/0.6096, allocations: 6.027 MB / 0.5294 GB, free: 3.188 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002237/0.6119, allocations: 0.8439 MB / 0.5302 GB, free: 2.316 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001129/0.6131, allocations: 484.6 kB / 0.5307 GB, free: 1.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/0.6132, allocations: 8.781 kB / 0.5307 GB, free: 1.832 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001408/0.6146, allocations: 0.6063 MB / 0.5313 GB, free: 1.184 MB / 410.7 MB Notification: Performance of pre-optimization done (n=92): time 4.779e-06/0.6146, allocations: 0 / 0.5313 GB, free: 1.184 MB / 410.7 MB Notification: Performance of matching and sorting (n=123): time 0.01509/0.6297, allocations: 5.565 MB / 0.5367 GB, free: 11.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001836/0.63, allocations: 299.7 kB / 0.537 GB, free: 11.16 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/0.6311, allocations: 0.6833 MB / 0.5377 GB, free: 10.47 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001271/0.6312, allocations: 53.7 kB / 0.5377 GB, free: 10.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006338/0.6319, allocations: 0.6508 MB / 0.5384 GB, free: 9.746 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004123/0.6323, allocations: 425.9 kB / 0.5388 GB, free: 9.324 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.946e-05/0.6324, allocations: 24 kB / 0.5388 GB, free: 9.301 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002183/0.6326, allocations: 410.7 kB / 0.5392 GB, free: 8.891 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.6338, allocations: 0.6445 MB / 0.5398 GB, free: 8.246 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/0.6352, allocations: 0.9549 MB / 0.5407 GB, free: 7.184 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.6363, allocations: 0.6257 MB / 0.5414 GB, free: 6.555 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.6363, allocations: 4 kB / 0.5414 GB, free: 6.551 MB / 426.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003228/0.6395, allocations: 1.737 MB / 0.5431 GB, free: 4.797 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/0.6396, allocations: 9.406 kB / 0.5431 GB, free: 4.789 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.789e-05/0.6396, allocations: 8 kB / 0.5431 GB, free: 4.781 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004471/0.6401, allocations: 182.4 kB / 0.5432 GB, free: 4.594 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001668/0.6417, allocations: 371.7 kB / 0.5436 GB, free: 4.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2644/0.9061, allocations: 4.437 MB / 0.5479 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001941/0.9081, allocations: 207.9 kB / 0.5481 GB, free: 113.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001852/0.9083, allocations: 54.34 kB / 0.5482 GB, free: 113.1 MB / 426.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.0003638/0.9087, allocations: 191.6 kB / 0.5484 GB, free: 113 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002133/0.9089, allocations: 107.6 kB / 0.5485 GB, free: 113 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002964/0.9119, allocations: 1.494 MB / 0.5499 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/0.9119, allocations: 16.5 kB / 0.5499 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.9119, allocations: 3.875 kB / 0.5499 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/0.912, allocations: 10.64 kB / 0.55 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008469/0.9204, allocations: 4.245 MB / 0.5541 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.598e-05/0.9205, allocations: 8.688 kB / 0.5541 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001337/0.9219, allocations: 287.4 kB / 0.5544 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006744/0.9226, allocations: 327 kB / 0.5547 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/0.9227, allocations: 38.06 kB / 0.5547 GB, free: 112.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/0.9242, allocations: 2.087 MB / 0.5568 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-05/0.9242, allocations: 16.84 kB / 0.5568 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003421/0.9276, allocations: 2.56 MB / 0.5593 GB, free: 109.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005838/0.9282, allocations: 330.5 kB / 0.5596 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/0.9284, allocations: 45.77 kB / 0.5596 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.9294, allocations: 161.4 kB / 0.5598 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003966/0.9298, allocations: 187.1 kB / 0.56 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.927e-05/0.93, allocations: 48.61 kB / 0.56 GB, free: 109.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007358/0.9307, allocations: 0.5174 MB / 0.5605 GB, free: 109 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9307, allocations: 0 / 0.5605 GB, free: 109 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00134/0.9321, allocations: 354.2 kB / 0.5609 GB, free: 109 MB / 426.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.003973/0.936, allocations: 5.873 MB / 0.5666 GB, free: 104.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002902/0.939, allocations: 1.767 MB / 0.5683 GB, free: 104.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.939, allocations: 2.719 kB / 0.5683 GB, free: 104.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001679/0.9407, allocations: 0.9205 MB / 0.5692 GB, free: 104.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.9417, allocations: 168.5 kB / 0.5694 GB, free: 104 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007108/0.9488, allocations: 2.693 MB / 0.572 GB, free: 102.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.95, allocations: 1.213 MB / 0.5732 GB, free: 101.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001075/0.9511, allocations: 161.5 kB / 0.5734 GB, free: 101.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008976/0.952, allocations: 0.5203 MB / 0.5739 GB, free: 101.4 MB / 426.7 MB Notification: Performance of SimCode: time 2.134e-06/0.952, allocations: 2.734 kB / 0.5739 GB, free: 101.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0494/1.001, allocations: 27.36 MB / 0.6006 GB, free: 99.23 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001481/1.002, allocations: 195.2 kB / 0.6008 GB, free: 99 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.777/3.778, allocations: 3.781 kB / 0.6008 GB, free: 99 MB / 426.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)