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.001389/0.001389, allocations: 121.4 kB / 18.51 MB, free: 4.539 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.001535/0.001535, allocations: 213.6 kB / 21.46 MB, free: 1.59 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.471/1.471, allocations: 230.5 MB / 254.8 MB, free: 15.08 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.001957/0.001957, allocations: 71.83 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1068, allocations: 53.32 MB / 427 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2086/0.3154, allocations: 7.981 MB / 435 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004689/0.3201, allocations: 2.571 MB / 437.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009129/0.321, allocations: 43.34 kB / 437.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002767/0.3238, allocations: 1.46 MB / 439.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002291/0.3261, allocations: 1.007 MB / 440.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006897/0.3268, allocations: 269.5 kB / 440.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002952/0.3297, allocations: 2.156 MB / 442.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001871/0.3316, allocations: 1.339 MB / 443.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001315/0.3329, allocations: 0.8422 MB / 444.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001644/0.3346, allocations: 1.298 MB / 446 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000352/0.3349, allocations: 160.2 kB / 446.1 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00141/0.3363, allocations: 0.6955 MB / 446.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001076/0.3374, allocations: 1.176 MB / 448 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001112/0.3385, allocations: 1.355 MB / 449.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005799/0.3443, allocations: 4.287 MB / 453.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.3443, allocations: 0 / 453.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3443, allocations: 1.375 kB / 453.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001231/0.3444, allocations: 0 / 453.6 MB, free: 15.14 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.006626/0.3511, allocations: 3.015 MB / 456.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.3511, allocations: 10.28 kB / 456.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009122/0.352, allocations: 0.5277 MB / 457.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007472/0.3595, allocations: 1.792 MB / 459 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004406/0.3639, allocations: 1.174 MB / 460.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.3641, allocations: 150.9 kB / 460.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006917/0.3648, allocations: 204.9 kB / 460.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02249/0.3873, allocations: 8.612 MB / 469.1 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001228/0.3874, allocations: 44.14 kB / 469.2 MB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003251/0.3877, allocations: 102.2 kB / 469.3 MB, free: 5.316 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00313/0.3909, allocations: 1.673 MB / 470.9 MB, free: 4.012 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01933/0.4102, allocations: 7.175 MB / 478.1 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04116/0.4513, allocations: 30.14 MB / 0.4963 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02307/0.4744, allocations: 4.989 MB / 0.5012 GB, free: 8.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001839/0.4763, allocations: 1.193 MB / 0.5024 GB, free: 7.445 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006417/0.4827, allocations: 3.847 MB / 0.5061 GB, free: 3.434 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.951e-05/0.4827, allocations: 46.83 kB / 0.5062 GB, free: 3.379 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 5.269e-06/0.4827, allocations: 3.938 kB / 0.5062 GB, free: 3.375 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04749/0.5302, allocations: 9.297 MB / 0.5153 GB, free: 9.992 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.5304, allocations: 191.9 kB / 0.5154 GB, free: 9.762 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006956/0.5373, allocations: 3.035 MB / 0.5184 GB, free: 6.707 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002692/0.5376, allocations: 45.64 kB / 0.5185 GB, free: 6.656 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002585/0.5402, allocations: 2.527 MB / 0.5209 GB, free: 4.102 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008758/0.541, allocations: 0.5119 MB / 0.5214 GB, free: 3.586 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002534/0.5436, allocations: 1.1 MB / 0.5225 GB, free: 2.477 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.5437, allocations: 301.1 kB / 0.5228 GB, free: 2.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002967/0.5467, allocations: 1.607 MB / 0.5243 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005942/0.5526, allocations: 5.17 MB / 0.5294 GB, free: 9.594 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009538/0.5622, allocations: 7.33 MB / 0.5366 GB, free: 492 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001426/0.5623, allocations: 39.94 kB / 0.5366 GB, free: 452 kB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0143/0.5766, allocations: 6.467 MB / 0.5429 GB, free: 9.973 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00018/0.5768, allocations: 56 kB / 0.543 GB, free: 9.918 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002661/0.577, allocations: 128.9 kB / 0.5431 GB, free: 9.793 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002523/0.5773, allocations: 168 kB / 0.5432 GB, free: 9.629 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00585/0.5831, allocations: 1.462 MB / 0.5447 GB, free: 8.164 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003077/0.5835, allocations: 251 kB / 0.5449 GB, free: 7.918 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004508/0.588, allocations: 0.7678 MB / 0.5457 GB, free: 7.145 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001001/0.589, allocations: 340 kB / 0.546 GB, free: 6.812 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.003658/0.5926, allocations: 1.574 MB / 0.5475 GB, free: 5.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007031/0.5933, allocations: 271.1 kB / 0.5478 GB, free: 4.965 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009434/0.5943, allocations: 311.3 kB / 0.5481 GB, free: 4.66 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.433e-05/0.5943, allocations: 16 kB / 0.5481 GB, free: 4.645 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.706e-05/0.5943, allocations: 3.938 kB / 0.5481 GB, free: 4.641 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.5943, allocations: 7.984 kB / 0.5481 GB, free: 4.633 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0083/0.6026, allocations: 3.392 MB / 0.5514 GB, free: 1.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.739e-05/0.6027, allocations: 7.938 kB / 0.5514 GB, free: 1.172 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002551/0.6052, allocations: 408.4 kB / 0.5518 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.667e-05/0.6052, allocations: 4 kB / 0.5518 GB, free: 0.7695 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001706/0.6054, allocations: 39.97 kB / 0.5519 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.037e-05/0.6054, allocations: 4 kB / 0.5519 GB, free: 0.7266 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.6054, allocations: 11.92 kB / 0.5519 GB, free: 0.7148 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004003/0.6094, allocations: 2.813 MB / 0.5546 GB, free: 13.89 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008124/0.6102, allocations: 319 kB / 0.5549 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005858/0.6108, allocations: 30.36 kB / 0.555 GB, free: 13.53 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001276/0.6121, allocations: 47.88 kB / 0.555 GB, free: 13.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.6122, allocations: 55.92 kB / 0.5551 GB, free: 13.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.6123, allocations: 35.98 kB / 0.5551 GB, free: 13.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004194/0.6165, allocations: 1.844 MB / 0.5569 GB, free: 11.54 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6165, allocations: 0 / 0.5569 GB, free: 11.54 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005376/0.6219, allocations: 0.8149 MB / 0.5577 GB, free: 10.73 MB / 478.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.004943/0.6269, allocations: 3.456 MB / 0.5611 GB, free: 7.234 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006606/0.6335, allocations: 3.482 MB / 0.5645 GB, free: 3.777 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.6335, allocations: 5.688 kB / 0.5645 GB, free: 3.773 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.6346, allocations: 0.6805 MB / 0.5651 GB, free: 3.094 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002529/0.6372, allocations: 267.3 kB / 0.5654 GB, free: 2.848 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05987/0.697, allocations: 34.31 MB / 0.5989 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003751/0.7008, allocations: 2.383 MB / 0.6012 GB, free: 8.785 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003968/0.7047, allocations: 1.637 MB / 0.6028 GB, free: 7.141 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00207/0.7068, allocations: 1.21 MB / 0.604 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of SimCode: time 1.152e-06/0.7068, allocations: 0 / 0.604 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3184/1.025, allocations: 43.61 MB / 0.6466 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.4/17.42, allocations: 16.25 kB / 0.6466 GB, free: 179.8 MB / 0.5294 GB " [Timeout remaining time 642] (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: 20.04802881926298] 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.522074902895838 17.533586648 17.186689623 Calling exit ...