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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002114/0.002114, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.306/2.306, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002088, allocations: 47.2 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1479, allocations: 49.44 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01361/0.1615, allocations: 9.266 MB / 359.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006523/0.1681, allocations: 2.298 MB / 361.7 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002689/0.1709, allocations: 31.88 kB / 361.8 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00254/0.1735, allocations: 329 kB / 362.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004367/0.1779, allocations: 495.7 kB / 362.6 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00236/0.1803, allocations: 0.6569 MB / 363.2 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00452/0.1849, allocations: 2.325 MB / 365.6 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002647/0.1875, allocations: 1.123 MB / 366.7 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001768/0.1893, allocations: 0.8451 MB / 367.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001731/0.1911, allocations: 0.8871 MB / 368.4 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009286/0.192, allocations: 276 kB / 368.7 MB, free: 1.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001329/0.1934, allocations: 323.9 kB / 369 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00096/0.1944, allocations: 0.4948 MB / 369.5 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2974/0.4918, allocations: 0.9764 MB / 370.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006976/0.4988, allocations: 3.301 MB / 373.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.4989, allocations: 0 / 373.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.4989, allocations: 0 / 373.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001413/0.4991, allocations: 0 / 373.8 MB, free: 14.03 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.007933/0.507, allocations: 1.915 MB / 375.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.523e-05/0.5071, allocations: 17.12 kB / 375.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006016/0.5077, allocations: 225.6 kB / 375.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007132/0.5084, allocations: 182.7 kB / 376.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/0.5106, allocations: 0.8315 MB / 376.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004397/0.5111, allocations: 232.6 kB / 377.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003981/0.5115, allocations: 165.4 kB / 377.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005731/0.5172, allocations: 1.681 MB / 379 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.615e-05/0.5174, allocations: 10.81 kB / 379 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002515/0.5176, allocations: 61 kB / 379.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.836e-05/0.5177, allocations: 39.81 kB / 379.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005872/0.5236, allocations: 1.563 MB / 380.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01662/0.5403, allocations: 5.885 MB / 386.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003499/0.5438, allocations: 0.9455 MB / 387.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001558/0.5454, allocations: 0.5237 MB / 388 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.186e-05/0.5455, allocations: 12.62 kB / 388 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002108/0.5477, allocations: 0.6624 MB / 388.7 MB, free: 7.016 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 7.164e-06/0.5477, allocations: 0 / 388.7 MB, free: 7.016 MB / 302.1 MB Notification: Performance of matching and sorting (n=120): time 0.0376/0.5853, allocations: 8.917 MB / 397.6 MB, free: 2.254 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.5855, allocations: 312.9 kB / 397.9 MB, free: 1.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001592/0.5871, allocations: 0.7877 MB / 398.7 MB, free: 1.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000193/0.5873, allocations: 52.42 kB / 398.8 MB, free: 1.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006206/0.5879, allocations: 0.656 MB / 399.4 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004127/0.5883, allocations: 410.9 kB / 399.8 MB, free: 468 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006227/0.589, allocations: 240.6 kB / 400.1 MB, free: 324 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002935/0.5893, allocations: 414.9 kB / 400.5 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003081/0.5924, allocations: 0.8089 MB / 401.3 MB, free: 15.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003741/0.5961, allocations: 1.133 MB / 402.4 MB, free: 13.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005547/0.6017, allocations: 1.655 MB / 404.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.626e-05/0.6018, allocations: 4 kB / 404.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.008674/0.6105, allocations: 2.073 MB / 406.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.73e-05/0.6106, allocations: 8 kB / 406.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.194e-05/0.6106, allocations: 8 kB / 406.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007664/0.6114, allocations: 192.2 kB / 406.3 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002671/0.6141, allocations: 355.1 kB / 406.7 MB, free: 9.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006516/0.6206, allocations: 4.8 MB / 411.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003543/0.6242, allocations: 166.5 kB / 411.6 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006557/0.625, allocations: 52 kB / 411.7 MB, free: 4.25 MB / 318.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 (168): * Single equations (assignments): 165 * 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.002555/0.6276, allocations: 390.4 kB / 412.1 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007617/0.6284, allocations: 106.7 kB / 412.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006446/0.629, allocations: 134 kB / 412.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.569e-05/0.6291, allocations: 12 kB / 412.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.945e-05/0.6291, allocations: 0 / 412.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.484e-05/0.6292, allocations: 7.969 kB / 412.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01794/0.6471, allocations: 4.419 MB / 416.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.052e-05/0.6472, allocations: 8 kB / 416.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00234/0.6496, allocations: 261.2 kB / 417 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001166/0.6508, allocations: 372.5 kB / 417.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002144/0.651, allocations: 35.98 kB / 417.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003361/0.6544, allocations: 2.276 MB / 419.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.247e-05/0.6545, allocations: 17.31 kB / 419.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009787/0.6643, allocations: 2.49 MB / 422.2 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001375/0.6657, allocations: 330.4 kB / 422.5 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006508/0.6664, allocations: 44 kB / 422.6 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002458/0.6689, allocations: 146.5 kB / 422.7 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007043/0.6696, allocations: 165 kB / 422.9 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002417/0.6699, allocations: 44 kB / 422.9 MB, free: 8.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001825/0.6717, allocations: 0.5303 MB / 423.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.6718, allocations: 0 / 423.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.004029/0.6758, allocations: 348 kB / 423.8 MB, free: 7.805 MB / 334.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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01127/0.6871, allocations: 3.122 MB / 426.9 MB, free: 4.551 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00809/0.6953, allocations: 2.087 MB / 429 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.911e-05/0.6954, allocations: 5.812 kB / 429 MB, free: 2.469 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00289/0.6983, allocations: 1.05 MB / 430 MB, free: 1.453 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002389/0.7007, allocations: 186.1 kB / 430.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04298/0.7437, allocations: 12.71 MB / 442.9 MB, free: 3.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002196/0.746, allocations: 1.178 MB / 444.1 MB, free: 2.758 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002719/0.7488, allocations: 164.4 kB / 444.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001788/0.7506, allocations: 0.511 MB / 444.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of SimCode: time 2.585e-06/0.7506, allocations: 0 / 444.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1001/0.8508, allocations: 28.95 MB / 473.7 MB, free: 5.449 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.79/20.64, allocations: 14.55 kB / 473.7 MB, free: 5.441 MB / 382.1 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1)