Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002142/0.002142, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.611/1.611, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis,fileNamePrefix="Modelica_4_1_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_1_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.001602/0.001602, allocations: 43.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.11, allocations: 53.33 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis): time 0.1936/0.3036, allocations: 9.427 MB / 435.7 MB, free: 6.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004035/0.3076, allocations: 2.446 MB / 438.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001032/0.3087, allocations: 38.97 kB / 438.2 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008039/0.3095, allocations: 344.3 kB / 438.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001307/0.3108, allocations: 0.5081 MB / 439.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.3119, allocations: 0.6524 MB / 439.7 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002257/0.3141, allocations: 2.373 MB / 442.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000991/0.3151, allocations: 0.7434 MB / 442.8 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001127/0.3163, allocations: 0.8795 MB / 443.7 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000932/0.3172, allocations: 0.9098 MB / 444.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004127/0.3176, allocations: 278 kB / 444.9 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005628/0.3182, allocations: 332.4 kB / 445.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003609/0.3185, allocations: 0.5121 MB / 445.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007818/0.3193, allocations: 0.9905 MB / 446.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004027/0.3233, allocations: 3.405 MB / 450.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3233, allocations: 0 / 450.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3233, allocations: 0 / 450.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.269e-05/0.3234, allocations: 0 / 450.1 MB, free: 15.5 MB / 366.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.004803/0.3282, allocations: 1.995 MB / 452.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.3283, allocations: 8.375 kB / 452.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003508/0.3286, allocations: 225.4 kB / 452.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004248/0.329, allocations: 190.2 kB / 452.5 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001588/0.3306, allocations: 0.8581 MB / 453.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003638/0.331, allocations: 236.1 kB / 453.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002552/0.3312, allocations: 159.7 kB / 453.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003538/0.3348, allocations: 1.676 MB / 455.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.216e-05/0.3348, allocations: 15.27 kB / 455.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001644/0.335, allocations: 65.97 kB / 455.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-05/0.335, allocations: 36.78 kB / 455.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003475/0.3385, allocations: 1.525 MB / 457.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/0.3488, allocations: 5.843 MB / 463 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002166/0.351, allocations: 0.8759 MB / 463.8 MB, free: 6.262 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.3521, allocations: 481.5 kB / 464.3 MB, free: 6.012 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.164e-05/0.3521, allocations: 18.55 kB / 464.3 MB, free: 6.004 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001339/0.3535, allocations: 0.6398 MB / 465 MB, free: 5.551 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.865e-06/0.3535, allocations: 3.938 kB / 465 MB, free: 5.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.03673/0.3902, allocations: 8.824 MB / 473.8 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002459/0.3904, allocations: 301.7 kB / 474.1 MB, free: 428 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001766/0.3922, allocations: 0.8045 MB / 474.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002819/0.3925, allocations: 57.7 kB / 474.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007464/0.3932, allocations: 0.68 MB / 475.6 MB, free: 15.13 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005533/0.3938, allocations: 432.3 kB / 476 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005629/0.3944, allocations: 247.5 kB / 476.3 MB, free: 14.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002664/0.3946, allocations: 410.8 kB / 476.7 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002151/0.3968, allocations: 0.7809 MB / 477.5 MB, free: 13.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002477/0.3993, allocations: 1.119 MB / 478.6 MB, free: 12.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004101/0.4034, allocations: 1.599 MB / 480.2 MB, free: 10.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/0.4034, allocations: 4 kB / 480.2 MB, free: 10.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.005511/0.4089, allocations: 2.026 MB / 482.2 MB, free: 8.297 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/0.4089, allocations: 10.19 kB / 482.2 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.4089, allocations: 8 kB / 482.2 MB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005241/0.4094, allocations: 226.1 kB / 482.5 MB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.4112, allocations: 347.5 kB / 482.8 MB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004956/0.4162, allocations: 4.846 MB / 487.6 MB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/0.418, allocations: 163.9 kB / 487.8 MB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.4182, allocations: 55.98 kB / 487.9 MB, free: 2.234 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.0008595/0.419, allocations: 387.2 kB / 488.2 MB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000256/0.4193, allocations: 115.2 kB / 488.3 MB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003383/0.4196, allocations: 130.8 kB / 488.5 MB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.332e-05/0.4197, allocations: 15.98 kB / 488.5 MB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.068e-05/0.4197, allocations: 4 kB / 488.5 MB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.4197, allocations: 4.125 kB / 488.5 MB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0089/0.4286, allocations: 4.342 MB / 492.8 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/0.4286, allocations: 12 kB / 492.8 MB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/0.4298, allocations: 268.2 kB / 493.1 MB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000591/0.4304, allocations: 282.1 kB / 493.4 MB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.4305, allocations: 43.98 kB / 493.4 MB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002145/0.4327, allocations: 2.199 MB / 495.6 MB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.104e-05/0.4327, allocations: 11.94 kB / 495.6 MB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005423/0.4381, allocations: 2.405 MB / 498 MB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007823/0.4389, allocations: 324.3 kB / 498.4 MB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002137/0.4391, allocations: 47.94 kB / 498.4 MB, free: 7.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.4403, allocations: 143.8 kB / 498.5 MB, free: 6.996 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003738/0.4407, allocations: 168.2 kB / 498.7 MB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.597e-05/0.4408, allocations: 43.98 kB / 498.8 MB, free: 6.785 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008687/0.4416, allocations: 0.5381 MB / 499.3 MB, free: 6.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4416, allocations: 0 / 499.3 MB, free: 6.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001525/0.4432, allocations: 343.9 kB / 499.6 MB, free: 5.914 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.007047/0.4502, allocations: 3.257 MB / 0.4911 GB, free: 2.641 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004845/0.455, allocations: 1.879 MB / 0.4929 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.327e-06/0.4551, allocations: 128 / 0.4929 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002528/0.4576, allocations: 1.008 MB / 0.4939 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001599/0.4592, allocations: 205.5 kB / 0.4941 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02611/0.4853, allocations: 12.06 MB / 0.5059 GB, free: 2.883 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.4863, allocations: 1.186 MB / 0.5071 GB, free: 1.664 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008841/0.4872, allocations: 168.4 kB / 0.5072 GB, free: 1.496 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009506/0.4881, allocations: 0.5149 MB / 0.5077 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4881, allocations: 0 / 0.5077 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07911/0.5672, allocations: 30.05 MB / 0.5371 GB, free: 3.184 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.04/14.6, allocations: 19.72 kB / 0.5371 GB, free: 3.168 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_MultiBody_Examples_Systems_RobotR3_OneAxis.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.OneAxis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.497498633005307] 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.76708171700011 14.7871891 14.459782119 Calling exit ...