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.001817/0.001817, allocations: 113.3 kB / 20.22 MB, free: 1.793 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.002305/0.002305, allocations: 212.5 kB / 23.48 MB, free: 5.227 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.473/1.473, allocations: 230.4 MB / 257 MB, free: 8.262 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.00189/0.00189, allocations: 67.89 kB / 377.1 MB, free: 3.574 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3048, allocations: 53.32 MB / 430.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009697/0.3145, allocations: 7.988 MB / 438.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005412/0.3199, allocations: 2.594 MB / 441 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000884/0.3208, allocations: 39.88 kB / 441 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002918/0.3237, allocations: 1.46 MB / 442.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002684/0.3264, allocations: 1.015 MB / 443.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007662/0.3271, allocations: 267.4 kB / 443.8 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00323/0.3304, allocations: 2.153 MB / 445.9 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001573/0.3319, allocations: 1.2 MB / 447.1 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001182/0.3331, allocations: 0.8328 MB / 447.9 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001735/0.3349, allocations: 1.304 MB / 449.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003369/0.3352, allocations: 160 kB / 449.4 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001363/0.3366, allocations: 0.6903 MB / 450.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001143/0.3377, allocations: 1.18 MB / 451.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001469/0.3392, allocations: 1.366 MB / 452.6 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005485/0.3447, allocations: 4.28 MB / 456.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.3447, allocations: 0 / 456.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.3447, allocations: 0 / 456.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.014e-05/0.3448, allocations: 0 / 456.9 MB, free: 12.57 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.005424/0.3502, allocations: 3.014 MB / 459.9 MB, free: 9.484 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.3502, allocations: 12.03 kB / 459.9 MB, free: 9.473 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006729/0.3509, allocations: 0.5182 MB / 460.5 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006687/0.3576, allocations: 1.8 MB / 462.3 MB, free: 7.137 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003933/0.3615, allocations: 1.166 MB / 463.4 MB, free: 5.926 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.3617, allocations: 155.8 kB / 463.6 MB, free: 5.773 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005149/0.3622, allocations: 199.8 kB / 463.8 MB, free: 5.578 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01976/0.3819, allocations: 8.611 MB / 472.4 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.985e-05/0.382, allocations: 47.64 kB / 472.4 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002861/0.3823, allocations: 103.9 kB / 472.5 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002888/0.3852, allocations: 1.667 MB / 474.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01824/0.4035, allocations: 7.182 MB / 481.4 MB, free: 3.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03741/0.4409, allocations: 30.13 MB / 0.4995 GB, free: 4.355 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02216/0.463, allocations: 4.99 MB / 0.5044 GB, free: 15.19 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001833/0.4649, allocations: 1.196 MB / 0.5056 GB, free: 13.98 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006256/0.4711, allocations: 3.849 MB / 0.5093 GB, free: 9.961 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.492e-05/0.4712, allocations: 50.81 kB / 0.5094 GB, free: 9.902 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 3.246e-06/0.4712, allocations: 0 / 0.5094 GB, free: 9.902 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.04478/0.5159, allocations: 9.299 MB / 0.5184 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/0.5161, allocations: 191.9 kB / 0.5186 GB, free: 292 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006127/0.5222, allocations: 3.035 MB / 0.5216 GB, free: 13.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002095/0.5224, allocations: 41.7 kB / 0.5216 GB, free: 13.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002196/0.5246, allocations: 2.531 MB / 0.5241 GB, free: 10.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006877/0.5253, allocations: 0.508 MB / 0.5246 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001473/0.5268, allocations: 1.1 MB / 0.5257 GB, free: 9.004 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.5269, allocations: 305.1 kB / 0.526 GB, free: 8.703 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002426/0.5294, allocations: 1.612 MB / 0.5275 GB, free: 7.086 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005516/0.5349, allocations: 5.169 MB / 0.5326 GB, free: 116 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00927/0.5441, allocations: 7.329 MB / 0.5397 GB, free: 7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001029/0.5442, allocations: 40 kB / 0.5398 GB, free: 6.961 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01101/0.5553, allocations: 6.453 MB / 0.5461 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.034e-05/0.5553, allocations: 63.91 kB / 0.5462 GB, free: 456 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001266/0.5555, allocations: 128 kB / 0.5463 GB, free: 328 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000174/0.5556, allocations: 167.9 kB / 0.5464 GB, free: 160 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2184/0.774, allocations: 1.456 MB / 0.5479 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002615/0.7743, allocations: 247.1 kB / 0.5481 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003944/0.7782, allocations: 0.7688 MB / 0.5488 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007219/0.779, allocations: 345.9 kB / 0.5492 GB, free: 113.4 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.002125/0.7811, allocations: 1.577 MB / 0.5507 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004947/0.7816, allocations: 261.7 kB / 0.551 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005054/0.7821, allocations: 316.4 kB / 0.5513 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-05/0.7821, allocations: 15.3 kB / 0.5513 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.7821, allocations: 1.25 kB / 0.5513 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.7821, allocations: 9.312 kB / 0.5513 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005574/0.7877, allocations: 3.402 MB / 0.5546 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.782e-06/0.7877, allocations: 5.062 kB / 0.5546 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002116/0.7898, allocations: 410.3 kB / 0.555 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.164e-05/0.7898, allocations: 4.906 kB / 0.555 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.448e-05/0.7899, allocations: 41.66 kB / 0.555 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.675e-06/0.7899, allocations: 4.5 kB / 0.5551 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.7899, allocations: 4.844 kB / 0.5551 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002625/0.7926, allocations: 2.81 MB / 0.5578 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004421/0.793, allocations: 318.5 kB / 0.5581 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002161/0.7932, allocations: 32.19 kB / 0.5581 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008043/0.794, allocations: 42.89 kB / 0.5582 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.7941, allocations: 61.97 kB / 0.5582 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.556e-05/0.7942, allocations: 38.16 kB / 0.5583 GB, free: 110.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001948/0.7961, allocations: 1.838 MB / 0.5601 GB, free: 109.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7961, allocations: 0 / 0.5601 GB, free: 109.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00374/0.7999, allocations: 0.8307 MB / 0.5609 GB, free: 109.3 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.002794/0.8027, allocations: 3.44 MB / 0.5642 GB, free: 107.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004419/0.8071, allocations: 3.486 MB / 0.5676 GB, free: 104.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.8071, allocations: 0 / 0.5676 GB, free: 104.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006994/0.8078, allocations: 0.6859 MB / 0.5683 GB, free: 103.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001632/0.8094, allocations: 263.1 kB / 0.5686 GB, free: 103.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03377/0.8432, allocations: 34.31 MB / 0.6021 GB, free: 64.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001653/0.8449, allocations: 2.39 MB / 0.6044 GB, free: 62.21 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00278/0.8476, allocations: 1.629 MB / 0.606 GB, free: 60.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001095/0.8487, allocations: 1.214 MB / 0.6072 GB, free: 59.36 MB / 462.1 MB Notification: Performance of SimCode: time 1.392e-06/0.8487, allocations: 0 / 0.6072 GB, free: 59.36 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07814/0.9269, allocations: 43.8 MB / 0.65 GB, free: 15.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.67/16.6, allocations: 3.094 kB / 0.65 GB, free: 15.91 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 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.02210930804722] 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]'] 16.697687783045694 16.707722271 16.360590917 Calling exit ...