Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_trunk_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/ModelicaServices trunk/package.mo): time 0.001366/0.001366, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001757/0.001757, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.2419, allocations: 50.54 MB / 408.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01086/0.2529, allocations: 9.378 MB / 418.1 MB, free: 8.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004973/0.2579, allocations: 2.442 MB / 420.6 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001505/0.2594, allocations: 31.88 kB / 420.6 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001365/0.2608, allocations: 344.9 kB / 421 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002064/0.2629, allocations: 0.5114 MB / 421.5 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001747/0.2647, allocations: 0.6516 MB / 422.1 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003186/0.2679, allocations: 2.368 MB / 424.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001988/0.2699, allocations: 1.111 MB / 425.6 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00149/0.2714, allocations: 0.8686 MB / 426.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.2727, allocations: 0.8987 MB / 427.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005832/0.2733, allocations: 280 kB / 427.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007913/0.2741, allocations: 335.9 kB / 428 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006252/0.2748, allocations: 0.5026 MB / 428.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001454/0.2763, allocations: 0.9881 MB / 429.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003958/0.2802, allocations: 3.402 MB / 432.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.2803, allocations: 0 / 432.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2803, allocations: 3.938 kB / 432.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.667e-05/0.2804, allocations: 0 / 432.9 MB, free: 9.348 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.004826/0.2852, allocations: 1.988 MB / 434.8 MB, free: 7.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.2853, allocations: 12.03 kB / 434.9 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005458/0.2858, allocations: 232 kB / 435.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005125/0.2863, allocations: 187.8 kB / 435.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001673/0.288, allocations: 0.858 MB / 436.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003116/0.2884, allocations: 240.5 kB / 436.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003334/0.2887, allocations: 156 kB / 436.5 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003599/0.2923, allocations: 1.675 MB / 438.2 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.373e-05/0.2924, allocations: 11.95 kB / 438.2 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001752/0.2926, allocations: 60 kB / 438.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.957e-05/0.2926, allocations: 36 kB / 438.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003864/0.2965, allocations: 1.531 MB / 439.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0105/0.307, allocations: 5.843 MB / 445.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002164/0.3092, allocations: 0.9279 MB / 446.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.3103, allocations: 0.5122 MB / 447.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.63e-05/0.3104, allocations: 16.97 kB / 447.1 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001261/0.3117, allocations: 0.6411 MB / 447.8 MB, free: 9.992 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 4.709e-06/0.3117, allocations: 3.984 kB / 447.8 MB, free: 9.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03538/0.3471, allocations: 8.825 MB / 456.6 MB, free: 1.035 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/0.3473, allocations: 299.7 kB / 456.9 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001336/0.3486, allocations: 0.8052 MB / 457.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001846/0.3488, allocations: 57.7 kB / 457.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005996/0.3494, allocations: 0.6761 MB / 458.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004549/0.3499, allocations: 444.3 kB / 458.9 MB, free: 14.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005739/0.3505, allocations: 243.5 kB / 459.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.3507, allocations: 406.7 kB / 459.5 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001984/0.3527, allocations: 0.7887 MB / 460.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002273/0.355, allocations: 1.115 MB / 461.4 MB, free: 12.01 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003752/0.3587, allocations: 1.603 MB / 463 MB, free: 10.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-06/0.3588, allocations: 0 / 463 MB, free: 10.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00497/0.3637, allocations: 2.038 MB / 465 MB, free: 8.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.3638, allocations: 8 kB / 465 MB, free: 8.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.3638, allocations: 8 kB / 465.1 MB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005226/0.3644, allocations: 214.4 kB / 465.3 MB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/0.3661, allocations: 355.5 kB / 465.6 MB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004324/0.3705, allocations: 4.846 MB / 470.5 MB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.3722, allocations: 167.9 kB / 470.6 MB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002355/0.3725, allocations: 44 kB / 470.7 MB, free: 2.203 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 12 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,axis.gear.bearingFriction.mode,$PRE.axis.gear.bearingFriction.mode,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.startBackward,$PRE.axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.startForward,$PRE.axis.gear.bearingFriction.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 166 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009749/0.3735, allocations: 399.1 kB / 471.1 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003374/0.3738, allocations: 111.3 kB / 471.2 MB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003127/0.3741, allocations: 138.1 kB / 471.3 MB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.3742, allocations: 12 kB / 471.3 MB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.3742, allocations: 0 / 471.3 MB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/0.3742, allocations: 3.984 kB / 471.3 MB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008353/0.3826, allocations: 4.353 MB / 475.7 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.583e-05/0.3826, allocations: 12.97 kB / 475.7 MB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/0.3838, allocations: 263.6 kB / 475.9 MB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005713/0.3844, allocations: 289.4 kB / 476.2 MB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001306/0.3845, allocations: 36 kB / 476.3 MB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002003/0.3866, allocations: 2.202 MB / 478.5 MB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-05/0.3866, allocations: 15.94 kB / 478.5 MB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005119/0.3917, allocations: 2.393 MB / 480.9 MB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007442/0.3925, allocations: 324.3 kB / 481.2 MB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003434/0.3928, allocations: 51.92 kB / 481.2 MB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.3941, allocations: 143.9 kB / 481.4 MB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003294/0.3944, allocations: 164.2 kB / 481.5 MB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.96e-05/0.3945, allocations: 47.92 kB / 481.6 MB, free: 6.742 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008687/0.3954, allocations: 0.542 MB / 482.1 MB, free: 6.203 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3954, allocations: 3.938 kB / 482.1 MB, free: 6.199 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001453/0.3969, allocations: 344 kB / 482.5 MB, free: 5.863 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 7 (axis.gear.spring.phi_rel,axis.gear.spring.w_rel,axis.motor.La.i,axis.motor.C.v,axis.motor.Jmotor.w,axis.controller.PI.x,axis.initializeFlange.phi_flange) * Number of discrete variables: 8 (pathPlanning.terminateSimulation.condition,$whenCondition1,axis.gear.bearingFriction.startForward,axis.gear.bearingFriction.startBackward,axis.gear.bearingFriction.locked,axis.gear.bearingFriction.mode,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 (112): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006085/0.403, allocations: 3.249 MB / 485.7 MB, free: 2.582 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004362/0.4073, allocations: 2.004 MB / 487.7 MB, free: 0.5312 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.4074, allocations: 0 / 487.7 MB, free: 0.5312 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002313/0.4097, allocations: 1.036 MB / 488.8 MB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/0.4113, allocations: 201.5 kB / 488.9 MB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02364/0.435, allocations: 12.07 MB / 0.4893 GB, free: 2.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001088/0.4361, allocations: 1.182 MB / 0.4904 GB, free: 1.445 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008978/0.437, allocations: 180.4 kB / 0.4906 GB, free: 1.266 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009118/0.438, allocations: 0.5188 MB / 0.4911 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of SimCode: time 7.92e-07/0.438, allocations: 0 / 0.4911 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.555/1.993, allocations: 29.84 MB / 0.5202 GB, free: 3.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.45/16.44, allocations: 6.688 kB / 0.5203 GB, free: 3.176 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis_res.csv --start-time 0 --stop-time 1.6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00064 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)