Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_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_1_0-beta_om_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.001764/0.001764, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001956/0.001955, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.454/1.454, allocations: 227.7 MB / 247 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 69.7 kB / 307.3 MB, free: 396 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09575/0.09774, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01234/0.1101, allocations: 9.383 MB / 367.3 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005137/0.1153, allocations: 2.438 MB / 369.7 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0012/0.1166, allocations: 35.88 kB / 369.7 MB, free: 1.914 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009004/0.1175, allocations: 336.9 kB / 370.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001372/0.1189, allocations: 0.4997 MB / 370.6 MB, free: 1.078 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.1201, allocations: 0.6437 MB / 371.2 MB, free: 444 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1511/0.2712, allocations: 2.354 MB / 373.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001711/0.273, allocations: 1.119 MB / 374.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00123/0.2742, allocations: 0.8596 MB / 375.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009354/0.2752, allocations: 0.8929 MB / 376.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003173/0.2755, allocations: 278.3 kB / 376.7 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004769/0.276, allocations: 333.1 kB / 377 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003413/0.2763, allocations: 0.5059 MB / 377.5 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007529/0.2771, allocations: 0.9823 MB / 378.5 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002868/0.28, allocations: 3.363 MB / 381.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.28, allocations: 1.156 kB / 381.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.28, allocations: 0.625 kB / 381.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.933e-05/0.2801, allocations: 0 / 381.9 MB, free: 8.09 MB / 302.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.003439/0.2835, allocations: 1.952 MB / 383.8 MB, free: 6.898 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.2836, allocations: 8.5 kB / 383.9 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002262/0.2838, allocations: 231.3 kB / 384.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002846/0.2841, allocations: 184.9 kB / 384.3 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009963/0.2851, allocations: 0.8492 MB / 385.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002362/0.2853, allocations: 231.6 kB / 385.3 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002145/0.2856, allocations: 163.5 kB / 385.5 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002715/0.2883, allocations: 1.671 MB / 387.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.553e-05/0.2883, allocations: 3.281 kB / 387.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/0.2885, allocations: 63.3 kB / 387.2 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.864e-05/0.2885, allocations: 40.97 kB / 387.3 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003061/0.2916, allocations: 1.529 MB / 388.8 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007795/0.2994, allocations: 5.894 MB / 394.7 MB, free: 56 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002126/0.3016, allocations: 0.9273 MB / 395.6 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001048/0.3026, allocations: 0.5049 MB / 396.1 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.924e-05/0.3027, allocations: 18.62 kB / 396.1 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001298/0.304, allocations: 0.6384 MB / 396.8 MB, free: 14.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 2.615e-06/0.3041, allocations: 0 / 396.8 MB, free: 14.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.0355/0.3396, allocations: 8.794 MB / 405.6 MB, free: 8.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002031/0.3398, allocations: 303.7 kB / 405.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001398/0.3412, allocations: 0.8013 MB / 406.7 MB, free: 7.395 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001506/0.3414, allocations: 53.7 kB / 406.7 MB, free: 7.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006559/0.342, allocations: 0.6606 MB / 407.4 MB, free: 6.668 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004428/0.3425, allocations: 417 kB / 407.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005225/0.343, allocations: 255.5 kB / 408 MB, free: 6.008 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002358/0.3433, allocations: 402.7 kB / 408.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002019/0.3453, allocations: 0.7854 MB / 409.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002364/0.3477, allocations: 1.11 MB / 410.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00391/0.3516, allocations: 1.608 MB / 411.9 MB, free: 1.926 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.3516, allocations: 0 / 411.9 MB, free: 1.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005199/0.3568, allocations: 2.026 MB / 414 MB, free: 15.92 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.3569, allocations: 8.094 kB / 414 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/0.3569, allocations: 12 kB / 414 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005304/0.3575, allocations: 217.6 kB / 414.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001842/0.3593, allocations: 360.8 kB / 414.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004744/0.3641, allocations: 4.834 MB / 419.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001983/0.3661, allocations: 167.9 kB / 419.5 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001863/0.3663, allocations: 48 kB / 419.6 MB, free: 9.902 MB / 334.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.0008584/0.3672, allocations: 395.6 kB / 420 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002466/0.3674, allocations: 106.7 kB / 420.1 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002488/0.3677, allocations: 134.1 kB / 420.2 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.297e-05/0.3677, allocations: 12 kB / 420.2 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3677, allocations: 0 / 420.2 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.681e-05/0.3677, allocations: 11.97 kB / 420.2 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008621/0.3764, allocations: 4.351 MB / 424.6 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-05/0.3764, allocations: 15.94 kB / 424.6 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.3777, allocations: 257.9 kB / 424.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005594/0.3783, allocations: 280.9 kB / 425.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.886e-05/0.3784, allocations: 39.98 kB / 425.2 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002134/0.3806, allocations: 2.196 MB / 427.4 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.398e-06/0.3806, allocations: 15.19 kB / 427.4 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005429/0.386, allocations: 2.397 MB / 429.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007749/0.3868, allocations: 319.7 kB / 430.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002455/0.3871, allocations: 48 kB / 430.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/0.3883, allocations: 143.8 kB / 430.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003786/0.3887, allocations: 167 kB / 430.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.379e-05/0.3888, allocations: 47.98 kB / 430.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008517/0.3896, allocations: 0.5342 MB / 431 MB, free: 14.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3896, allocations: 0 / 431 MB, free: 14.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001343/0.391, allocations: 344 kB / 431.4 MB, free: 13.77 MB / 350.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.006675/0.3977, allocations: 3.256 MB / 434.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005174/0.4029, allocations: 2.059 MB / 436.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.194e-05/0.4029, allocations: 4 kB / 436.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/0.4052, allocations: 1.024 MB / 437.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.4066, allocations: 211.2 kB / 437.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02495/0.4316, allocations: 12.58 MB / 450.5 MB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009794/0.4326, allocations: 1.182 MB / 451.7 MB, free: 8.727 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001012/0.4337, allocations: 176.4 kB / 451.8 MB, free: 8.551 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000871/0.4345, allocations: 0.5149 MB / 452.4 MB, free: 8.035 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4345, allocations: 0 / 452.4 MB, free: 8.035 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07616/0.5107, allocations: 29.37 MB / 481.7 MB, free: 11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.13, allocations: 19.45 kB / 481.7 MB, free: 10.98 MB / 398.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)