Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001341/0.001341, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002174/0.002174, allocations: 211.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.469/1.469, allocations: 230.6 MB / 258.3 MB, free: 8.012 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-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.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.002042/0.002042, allocations: 72.75 kB / 378.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2659, allocations: 53.36 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.0102/0.2761, allocations: 8.007 MB / 439.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005773/0.2819, allocations: 2.602 MB / 442.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00116/0.283, allocations: 43.81 kB / 442.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003214/0.2862, allocations: 1.46 MB / 444 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002811/0.289, allocations: 1.015 MB / 445 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008849/0.2899, allocations: 267.4 kB / 445.3 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003579/0.2935, allocations: 2.156 MB / 447.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002162/0.2957, allocations: 1.349 MB / 448.8 MB, free: 5.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001571/0.2972, allocations: 0.8484 MB / 449.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002112/0.2994, allocations: 1.296 MB / 451 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004438/0.2998, allocations: 160 kB / 451.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001385/0.3012, allocations: 0.6981 MB / 451.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001225/0.3024, allocations: 1.176 MB / 453 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001768/0.3042, allocations: 1.359 MB / 454.3 MB, free: 352 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005997/0.3102, allocations: 4.29 MB / 458.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.3102, allocations: 0 / 458.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3102, allocations: 0 / 458.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001373/0.3103, allocations: 0 / 458.6 MB, free: 12.04 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.006172/0.3165, allocations: 2.931 MB / 461.6 MB, free: 9.059 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.3165, allocations: 12.03 kB / 461.6 MB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008402/0.3174, allocations: 0.5299 MB / 462.1 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006776/0.3242, allocations: 1.793 MB / 463.9 MB, free: 6.707 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002489/0.3266, allocations: 1.105 MB / 465 MB, free: 5.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.3268, allocations: 159.8 kB / 465.2 MB, free: 5.414 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00052/0.3273, allocations: 203.8 kB / 465.4 MB, free: 5.215 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01954/0.3468, allocations: 8.611 MB / 474 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.286e-05/0.3469, allocations: 39.7 kB / 474 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002931/0.3472, allocations: 103.9 kB / 474.1 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003005/0.3502, allocations: 1.667 MB / 475.8 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01895/0.3692, allocations: 7.179 MB / 483 MB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03928/0.4085, allocations: 30.05 MB / 0.501 GB, free: 4.062 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02322/0.4317, allocations: 4.55 MB / 0.5054 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001808/0.4335, allocations: 1.189 MB / 0.5066 GB, free: 14.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005631/0.4391, allocations: 3.294 MB / 0.5098 GB, free: 10.91 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.615e-05/0.4392, allocations: 58.81 kB / 0.5099 GB, free: 10.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 3.146e-06/0.4392, allocations: 0 / 0.5099 GB, free: 10.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.04763/0.4868, allocations: 9.001 MB / 0.5187 GB, free: 1.832 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/0.4869, allocations: 199.9 kB / 0.5188 GB, free: 1.594 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005056/0.492, allocations: 3.036 MB / 0.5218 GB, free: 14.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000235/0.4922, allocations: 41.7 kB / 0.5218 GB, free: 14.49 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002689/0.4949, allocations: 2.523 MB / 0.5243 GB, free: 11.94 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000923/0.4959, allocations: 0.5119 MB / 0.5248 GB, free: 11.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001814/0.4977, allocations: 1.097 MB / 0.5259 GB, free: 10.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.4978, allocations: 301.1 kB / 0.5262 GB, free: 10.02 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002967/0.5008, allocations: 1.611 MB / 0.5277 GB, free: 8.406 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0059/0.5067, allocations: 5.173 MB / 0.5328 GB, free: 1.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009409/0.5161, allocations: 7.329 MB / 0.54 GB, free: 8.312 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001249/0.5162, allocations: 36 kB / 0.54 GB, free: 8.277 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01157/0.5278, allocations: 6.469 MB / 0.5463 GB, free: 1.809 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.075e-05/0.5279, allocations: 60 kB / 0.5464 GB, free: 1.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001589/0.528, allocations: 132 kB / 0.5465 GB, free: 1.621 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001717/0.5282, allocations: 167.9 kB / 0.5466 GB, free: 1.457 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2162/0.7444, allocations: 1.457 MB / 0.5481 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004867/0.7449, allocations: 248.6 kB / 0.5483 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004674/0.7495, allocations: 0.7584 MB / 0.549 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001188/0.7507, allocations: 344 kB / 0.5494 GB, free: 112 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (681): * Single equations (assignments): 678 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003117/0.7538, allocations: 1.572 MB / 0.5509 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007743/0.7546, allocations: 263.5 kB / 0.5512 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007383/0.7554, allocations: 314.1 kB / 0.5515 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.696e-05/0.7554, allocations: 22.02 kB / 0.5515 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/0.7554, allocations: 5.906 kB / 0.5515 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.7554, allocations: 5.156 kB / 0.5515 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006658/0.7621, allocations: 3.36 MB / 0.5548 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/0.7621, allocations: 3.891 kB / 0.5548 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00235/0.7644, allocations: 416.7 kB / 0.5552 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.066e-05/0.7644, allocations: 3.906 kB / 0.5552 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-05/0.7645, allocations: 34.92 kB / 0.5552 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.434e-06/0.7645, allocations: 3.906 kB / 0.5552 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.7646, allocations: 3.75 kB / 0.5552 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002978/0.7675, allocations: 2.819 MB / 0.558 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005757/0.7681, allocations: 234.3 kB / 0.5582 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002708/0.7684, allocations: 31.22 kB / 0.5582 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009083/0.7693, allocations: 42.42 kB / 0.5583 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.7694, allocations: 65.36 kB / 0.5583 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.922e-05/0.7695, allocations: 31.7 kB / 0.5584 GB, free: 109 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002279/0.7718, allocations: 1.84 MB / 0.5602 GB, free: 108.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.7718, allocations: 0 / 0.5602 GB, free: 108.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004705/0.7765, allocations: 0.8261 MB / 0.561 GB, free: 108.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003427/0.7799, allocations: 3.455 MB / 0.5643 GB, free: 106.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004761/0.7846, allocations: 3.484 MB / 0.5677 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/0.7847, allocations: 0 / 0.5677 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008048/0.7855, allocations: 0.6879 MB / 0.5684 GB, free: 104.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001949/0.7874, allocations: 260.4 kB / 0.5687 GB, free: 104 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03624/0.8236, allocations: 34.31 MB / 0.6022 GB, free: 65.55 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001984/0.8256, allocations: 2.394 MB / 0.6045 GB, free: 63.13 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003209/0.8288, allocations: 1.629 MB / 0.6061 GB, free: 61.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/0.8304, allocations: 1.214 MB / 0.6073 GB, free: 60.28 MB / 462.1 MB Notification: Performance of SimCode: time 1.523e-06/0.8304, allocations: 0 / 0.6073 GB, free: 60.28 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07995/0.9103, allocations: 47.83 MB / 0.654 GB, free: 12.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.25/17.16, allocations: 6.656 kB / 0.654 GB, free: 12.8 MB / 462.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039984 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.6856210520491] Failed to read output from testmodel.py, exit status != 0: ['time', 'body1.r_0[1]', 'body1.r_0[2]', 'body1.r_0[3]', 'body1.v_0[1]', 'body1.v_0[2]', 'body1.v_0[3]', 'body2.r_0[1]', 'body2.r_0[2]', 'body2.r_0[3]', 'body2.v_0[1]', 'body2.v_0[2]', 'body2.v_0[3]', 'body3.r_0[1]', 'body3.r_0[2]', 'body3.r_0[3]', 'body3.v_0[1]', 'body3.v_0[2]', 'body3.v_0[3]', 'body4.r_0[1]', 'body4.r_0[2]', 'body4.r_0[3]', 'body4.v_0[1]', 'body4.v_0[2]', 'body4.v_0[3]'] 17.263094182126224 17.273033748 16.959764734 Calling exit ...