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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 107.5 kB / 20.44 MB, free: 1.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 184.1 kB / 23.7 MB, free: 4.441 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 43.92 kB / 370.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2267, allocations: 52.17 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01078/0.2375, allocations: 8.102 MB / 430.7 MB, free: 6.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004947/0.2424, allocations: 2.259 MB / 432.9 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001177/0.2436, allocations: 31.88 kB / 433 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009857/0.2446, allocations: 325 kB / 433.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001619/0.2462, allocations: 0.4997 MB / 433.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.2476, allocations: 0.6517 MB / 434.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002998/0.2506, allocations: 2.349 MB / 436.8 MB, free: 156 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001297/0.2519, allocations: 0.706 MB / 437.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001177/0.2531, allocations: 0.8374 MB / 438.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.2542, allocations: 0.7816 MB / 439.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003932/0.2546, allocations: 276 kB / 439.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006221/0.2552, allocations: 339.9 kB / 439.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004802/0.2557, allocations: 0.5026 MB / 440.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009036/0.2566, allocations: 0.8015 MB / 441 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003559/0.2602, allocations: 3.387 MB / 444.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2602, allocations: 0 / 444.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2602, allocations: 0 / 444.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.377e-05/0.2603, allocations: 0 / 444.4 MB, free: 8.461 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: 389 * Number of variables: 389 Notification: Performance of Generate backend data structure: time 0.00415/0.2644, allocations: 1.905 MB / 446.3 MB, free: 6.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.2644, allocations: 8.031 kB / 446.3 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000292/0.2647, allocations: 224 kB / 446.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004042/0.2651, allocations: 195.8 kB / 446.7 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.2666, allocations: 0.7744 MB / 447.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004168/0.267, allocations: 450.1 kB / 447.9 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000255/0.2673, allocations: 159.9 kB / 448.1 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003443/0.2707, allocations: 1.895 MB / 450 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.116e-05/0.2707, allocations: 4 kB / 450 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001446/0.2709, allocations: 60 kB / 450.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.421e-05/0.2709, allocations: 36 kB / 450.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003594/0.2745, allocations: 1.562 MB / 451.7 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0101/0.2846, allocations: 5.189 MB / 456.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002271/0.2869, allocations: 0.9062 MB / 457.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/0.288, allocations: 0.5062 MB / 458.3 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.097e-05/0.2881, allocations: 9 kB / 458.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001502/0.2896, allocations: 0.8703 MB / 459.1 MB, free: 9.176 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 3.116e-06/0.2896, allocations: 0 / 459.1 MB, free: 9.176 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03452/0.3241, allocations: 8.695 MB / 467.8 MB, free: 444 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001801/0.3243, allocations: 295.7 kB / 468.1 MB, free: 76 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.3256, allocations: 0.8245 MB / 468.9 MB, free: 15.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001613/0.3257, allocations: 57.69 kB / 469 MB, free: 15.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006721/0.3264, allocations: 0.6761 MB / 469.7 MB, free: 14.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004372/0.3268, allocations: 428.3 kB / 470.1 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004861/0.3273, allocations: 251.6 kB / 470.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002434/0.3276, allocations: 414.7 kB / 470.7 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00208/0.3296, allocations: 0.8082 MB / 471.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002473/0.3321, allocations: 1.343 MB / 472.9 MB, free: 11.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003887/0.336, allocations: 1.658 MB / 474.6 MB, free: 9.336 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.336, allocations: 4 kB / 474.6 MB, free: 9.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005129/0.3411, allocations: 2.084 MB / 476.6 MB, free: 7.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/0.3412, allocations: 8 kB / 476.6 MB, free: 7.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.3412, allocations: 4 kB / 476.7 MB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004443/0.3416, allocations: 186.5 kB / 476.8 MB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001677/0.3433, allocations: 359.4 kB / 477.2 MB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004383/0.3477, allocations: 4.466 MB / 481.7 MB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/0.3493, allocations: 168 kB / 481.8 MB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/0.3494, allocations: 56 kB / 481.9 MB, free: 1.652 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: 13 (axis.gear.bearingFriction.free,pathPlanning.terminateSimulation.condition,pathPlanning.pathToAxis1.moving[1],pathPlanning.path.noWphase,pathPlanning.path.motion_ref,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.0007806/0.3502, allocations: 385.3 kB / 482.2 MB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002213/0.3504, allocations: 111.3 kB / 482.4 MB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002892/0.3507, allocations: 134 kB / 482.5 MB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.3507, allocations: 12 kB / 482.5 MB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.3507, allocations: 4 kB / 482.5 MB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.3508, allocations: 3.984 kB / 482.5 MB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008621/0.3594, allocations: 4.078 MB / 486.6 MB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-05/0.3594, allocations: 8 kB / 486.6 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.3606, allocations: 259.6 kB / 486.8 MB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006242/0.3612, allocations: 369.7 kB / 487.2 MB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/0.3613, allocations: 39.98 kB / 487.2 MB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001971/0.3633, allocations: 2.168 MB / 489.4 MB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.165e-05/0.3633, allocations: 16.06 kB / 489.4 MB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005328/0.3686, allocations: 2.514 MB / 491.9 MB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007715/0.3694, allocations: 255.1 kB / 492.2 MB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002017/0.3696, allocations: 59.92 kB / 492.2 MB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.3707, allocations: 135.9 kB / 492.4 MB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003822/0.371, allocations: 176.3 kB / 492.6 MB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.19e-05/0.3711, allocations: 51.97 kB / 492.6 MB, free: 6.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008921/0.372, allocations: 0.542 MB / 493.1 MB, free: 5.891 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.372, allocations: 3.938 kB / 493.2 MB, free: 5.887 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001311/0.3733, allocations: 344 kB / 493.5 MB, free: 5.551 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: 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 111 * 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.005802/0.3791, allocations: 3.139 MB / 496.6 MB, free: 2.258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0045/0.3836, allocations: 1.937 MB / 498.6 MB, free: 284 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/0.3837, allocations: 7.938 kB / 498.6 MB, free: 276 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002458/0.3861, allocations: 1.04 MB / 499.6 MB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00152/0.3876, allocations: 190.8 kB / 499.8 MB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02487/0.4125, allocations: 12.34 MB / 0.5001 GB, free: 2.121 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007455/0.4133, allocations: 0.5941 MB / 0.5007 GB, free: 1.496 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009094/0.4142, allocations: 168.4 kB / 0.5009 GB, free: 1.328 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008741/0.415, allocations: 0.5149 MB / 0.5014 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of SimCode: time 1.032e-06/0.415, allocations: 0 / 0.5014 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07676/0.4918, allocations: 30.84 MB / 0.5315 GB, free: 2.348 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.17/14.66, allocations: 0 / 0.5315 GB, free: 2.348 MB / 446.1 MB " [Timeout remaining time 645] (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.000340136 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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.475704323966056] Failed to read output from testmodel.py, exit status != 0: ['time', 'axis.controller.PI.x', 'axis.gear.spring.phi_rel', 'axis.gear.spring.w_rel', 'axis.initializeFlange.phi_flange', 'axis.initializeFlange.w_flange', 'axis.motor.C.v', 'axis.motor.La.i', 'axis.gear.bearingFriction.mode', 'axis.gear.bearingFriction.startBackward', 'axis.gear.bearingFriction.startForward'] 14.800453175324947 14.992293505 14.729574104 Calling exit ...