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.001903/0.001903, allocations: 112 kB / 20.43 MB, free: 1.457 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.002236/0.002236, allocations: 181.3 kB / 23.72 MB, free: 4.699 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.439/1.439, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.001544/0.001544, allocations: 43.92 kB / 370.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2809, allocations: 52.2 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.01158/0.2924, allocations: 9.341 MB / 432 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005457/0.2979, allocations: 2.302 MB / 434.3 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001729/0.2996, allocations: 39.75 kB / 434.3 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001252/0.3009, allocations: 325 kB / 434.6 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002168/0.303, allocations: 0.5075 MB / 435.2 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001571/0.3046, allocations: 0.6477 MB / 435.8 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003279/0.3079, allocations: 2.352 MB / 438.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001411/0.3093, allocations: 0.7421 MB / 438.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001473/0.3108, allocations: 0.8763 MB / 439.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001255/0.312, allocations: 0.8988 MB / 440.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003631/0.3124, allocations: 276 kB / 440.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005203/0.3129, allocations: 327.9 kB / 441.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004682/0.3134, allocations: 0.4987 MB / 441.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.3145, allocations: 0.9764 MB / 442.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003882/0.3184, allocations: 3.363 MB / 446.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.3184, allocations: 0 / 446.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3184, allocations: 0 / 446.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.32e-05/0.3185, allocations: 4 kB / 446.1 MB, free: 6.98 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.004339/0.3228, allocations: 1.882 MB / 448 MB, free: 5.059 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.3229, allocations: 12.03 kB / 448 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002928/0.3232, allocations: 228 kB / 448.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003213/0.3235, allocations: 195.8 kB / 448.4 MB, free: 4.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.325, allocations: 0.7768 MB / 449.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004183/0.3254, allocations: 450.1 kB / 449.6 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002522/0.3256, allocations: 160 kB / 449.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003296/0.3289, allocations: 1.682 MB / 451.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.028e-05/0.329, allocations: 3.984 kB / 451.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/0.3291, allocations: 64 kB / 451.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-05/0.3292, allocations: 36 kB / 451.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003419/0.3326, allocations: 1.566 MB / 453.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00962/0.3422, allocations: 5.708 MB / 458.8 MB, free: 9.844 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002052/0.3442, allocations: 0.8891 MB / 459.7 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.3453, allocations: 496.2 kB / 460.2 MB, free: 8.453 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.776e-05/0.3454, allocations: 12.98 kB / 460.2 MB, free: 8.438 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001274/0.3467, allocations: 0.6606 MB / 460.9 MB, free: 7.738 MB / 366.1 MB Notification: Performance of pre-optimization done (n=90): time 2.715e-06/0.3467, allocations: 0 / 460.9 MB, free: 7.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.03347/0.3801, allocations: 8.666 MB / 469.6 MB, free: 15.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001743/0.3803, allocations: 299.8 kB / 469.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.3815, allocations: 0.7934 MB / 470.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001356/0.3816, allocations: 53.7 kB / 470.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005996/0.3822, allocations: 0.6761 MB / 471.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004119/0.3826, allocations: 436.3 kB / 471.8 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004739/0.3831, allocations: 243.5 kB / 472 MB, free: 12.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002314/0.3834, allocations: 402.7 kB / 472.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002012/0.3854, allocations: 0.816 MB / 473.2 MB, free: 11.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002221/0.3876, allocations: 1.126 MB / 474.4 MB, free: 9.977 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003613/0.3912, allocations: 1.654 MB / 476 MB, free: 8.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.3912, allocations: 0 / 476 MB, free: 8.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004746/0.3959, allocations: 2.077 MB / 478.1 MB, free: 6.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/0.396, allocations: 11.28 kB / 478.1 MB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.396, allocations: 4 kB / 478.1 MB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004787/0.3965, allocations: 190.4 kB / 478.3 MB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001729/0.3982, allocations: 351.5 kB / 478.6 MB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004389/0.4026, allocations: 4.501 MB / 483.1 MB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00161/0.4042, allocations: 163.9 kB / 483.3 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/0.4044, allocations: 56 kB / 483.4 MB, free: 0.5234 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 (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.0007741/0.4051, allocations: 379.3 kB / 483.7 MB, free: 144 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.4054, allocations: 111.2 kB / 483.8 MB, free: 32 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003142/0.4057, allocations: 138 kB / 484 MB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.4057, allocations: 12 kB / 484 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.4057, allocations: 0 / 484 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.4057, allocations: 3.984 kB / 484 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008535/0.4142, allocations: 4.389 MB / 488.4 MB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/0.4143, allocations: 12 kB / 488.4 MB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/0.4154, allocations: 263.6 kB / 488.6 MB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006461/0.4161, allocations: 369.9 kB / 489 MB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/0.4162, allocations: 35.98 kB / 489 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002025/0.4182, allocations: 2.172 MB / 491.2 MB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.696e-05/0.4182, allocations: 24.06 kB / 491.2 MB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005112/0.4233, allocations: 2.494 MB / 493.7 MB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007386/0.4241, allocations: 251.2 kB / 494 MB, free: 5.414 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002176/0.4243, allocations: 47.92 kB / 494 MB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.4254, allocations: 143.8 kB / 494.2 MB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003646/0.4258, allocations: 168.3 kB / 494.3 MB, free: 5.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.079e-05/0.4258, allocations: 47.98 kB / 494.4 MB, free: 5.016 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008953/0.4267, allocations: 0.5303 MB / 494.9 MB, free: 4.488 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4267, allocations: 0 / 494.9 MB, free: 4.488 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001546/0.4283, allocations: 348 kB / 495.2 MB, free: 4.148 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005732/0.434, allocations: 3.109 MB / 498.4 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004494/0.4385, allocations: 1.917 MB / 0.4885 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.609e-05/0.4385, allocations: 5.812 kB / 0.4886 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002493/0.441, allocations: 1.024 MB / 0.4896 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/0.4425, allocations: 191.2 kB / 0.4897 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02469/0.4672, allocations: 12.22 MB / 0.5017 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009798/0.4682, allocations: 1.186 MB / 0.5028 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000803/0.469, allocations: 164.4 kB / 0.503 GB, free: 15.53 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008601/0.4699, allocations: 0.5149 MB / 0.5035 GB, free: 15.02 MB / 430.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4699, allocations: 0 / 0.5035 GB, free: 15.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08002/0.5499, allocations: 30.69 MB / 0.5335 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.35/15.9, allocations: 2.75 kB / 0.5335 GB, free: 0.5859 MB / 446.1 MB " [Timeout remaining time 644] (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: 18.84867400800067] 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'] 16.271263007001835 16.284073452 15.963192894 Calling exit ...