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.001567/0.001567, 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.001924/0.001924, allocations: 213.2 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.456/1.456, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.001955/0.001955, allocations: 64.77 kB / 378.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2701, allocations: 53.37 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01064/0.2807, allocations: 7.996 MB / 439.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006217/0.2869, allocations: 2.598 MB / 442.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00143/0.2883, allocations: 43.81 kB / 442.6 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003439/0.2918, allocations: 1.46 MB / 444 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003115/0.2949, allocations: 1.019 MB / 445 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009399/0.2958, allocations: 267.4 kB / 445.3 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003688/0.2995, allocations: 2.157 MB / 447.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002279/0.3018, allocations: 1.35 MB / 448.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001564/0.3034, allocations: 0.8484 MB / 449.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002279/0.3057, allocations: 1.3 MB / 451 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006341/0.3063, allocations: 160 kB / 451.1 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001785/0.3081, allocations: 0.6903 MB / 451.8 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001507/0.3096, allocations: 1.18 MB / 453 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002223/0.3118, allocations: 1.362 MB / 454.3 MB, free: 384 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005844/0.3176, allocations: 4.286 MB / 458.6 MB, free: 12.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.3177, allocations: 0 / 458.6 MB, free: 12.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3177, allocations: 0 / 458.6 MB, free: 12.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001495/0.3178, allocations: 0 / 458.6 MB, free: 12.07 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.006411/0.3242, allocations: 2.934 MB / 461.6 MB, free: 9.086 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.3243, allocations: 12.03 kB / 461.6 MB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001164/0.3254, allocations: 0.5221 MB / 462.1 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006952/0.3324, allocations: 1.797 MB / 463.9 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002635/0.335, allocations: 1.109 MB / 465 MB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/0.3352, allocations: 159.8 kB / 465.2 MB, free: 5.441 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007379/0.3359, allocations: 203.8 kB / 465.4 MB, free: 5.242 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02242/0.3584, allocations: 8.608 MB / 474 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002044/0.3586, allocations: 43.64 kB / 474 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007995/0.3594, allocations: 103.9 kB / 474.1 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0034/0.3628, allocations: 1.663 MB / 475.8 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01961/0.3824, allocations: 7.187 MB / 483 MB, free: 3.035 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04171/0.4241, allocations: 30.05 MB / 0.501 GB, free: 4.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02271/0.4468, allocations: 4.548 MB / 0.5054 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001912/0.4487, allocations: 1.189 MB / 0.5066 GB, free: 14.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006364/0.4551, allocations: 3.294 MB / 0.5098 GB, free: 10.94 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.296e-05/0.4551, allocations: 58.77 kB / 0.5099 GB, free: 10.88 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 5.65e-06/0.4551, allocations: 0 / 0.5099 GB, free: 10.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.04689/0.502, allocations: 8.998 MB / 0.5187 GB, free: 1.863 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.5022, allocations: 195.9 kB / 0.5188 GB, free: 1.629 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006609/0.5088, allocations: 3.032 MB / 0.5218 GB, free: 14.58 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002307/0.509, allocations: 41.7 kB / 0.5218 GB, free: 14.53 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002436/0.5114, allocations: 2.531 MB / 0.5243 GB, free: 11.97 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008041/0.5122, allocations: 0.5119 MB / 0.5248 GB, free: 11.46 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002372/0.5146, allocations: 1.089 MB / 0.5259 GB, free: 10.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.5148, allocations: 301.1 kB / 0.5262 GB, free: 10.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002936/0.5177, allocations: 1.615 MB / 0.5277 GB, free: 8.441 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005973/0.5237, allocations: 5.173 MB / 0.5328 GB, free: 1.465 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009377/0.5331, allocations: 7.334 MB / 0.54 GB, free: 8.344 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001387/0.5332, allocations: 36 kB / 0.54 GB, free: 8.309 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01262/0.5458, allocations: 6.477 MB / 0.5463 GB, free: 1.832 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001672/0.546, allocations: 60 kB / 0.5464 GB, free: 1.773 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002249/0.5462, allocations: 128 kB / 0.5465 GB, free: 1.648 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002255/0.5464, allocations: 167.9 kB / 0.5467 GB, free: 1.484 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005303/0.5517, allocations: 1.458 MB / 0.5481 GB, free: 24 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2377/0.7894, allocations: 245 kB / 0.5483 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005014/0.7944, allocations: 0.7603 MB / 0.5491 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001285/0.7957, allocations: 345.2 kB / 0.5494 GB, free: 112.1 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.003536/0.7992, allocations: 1.57 MB / 0.5509 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008214/0.8, allocations: 263.7 kB / 0.5512 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007377/0.8008, allocations: 316.7 kB / 0.5515 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.942e-05/0.8008, allocations: 19.84 kB / 0.5515 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.8008, allocations: 3.938 kB / 0.5515 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.554e-05/0.8008, allocations: 5.531 kB / 0.5515 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007212/0.808, allocations: 3.358 MB / 0.5548 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.507e-05/0.8081, allocations: 1.375 kB / 0.5548 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002253/0.8103, allocations: 415.4 kB / 0.5552 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.795e-05/0.8103, allocations: 3.938 kB / 0.5552 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001543/0.8105, allocations: 42.55 kB / 0.5552 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.086e-05/0.8105, allocations: 5.125 kB / 0.5552 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.8105, allocations: 0 / 0.5552 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003405/0.8139, allocations: 2.822 MB / 0.558 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007816/0.8147, allocations: 235.4 kB / 0.5582 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004833/0.8152, allocations: 30.95 kB / 0.5582 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.8163, allocations: 39.91 kB / 0.5583 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.8165, allocations: 66.06 kB / 0.5583 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.6e-05/0.8165, allocations: 34.39 kB / 0.5584 GB, free: 109.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002851/0.8194, allocations: 1.839 MB / 0.5602 GB, free: 108.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 6e-08/0.8194, allocations: 0 / 0.5602 GB, free: 108.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00461/0.824, allocations: 0.8227 MB / 0.561 GB, free: 108.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.003622/0.8276, allocations: 3.46 MB / 0.5643 GB, free: 106.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005125/0.8327, allocations: 3.488 MB / 0.5677 GB, free: 104.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/0.8327, allocations: 6 kB / 0.5678 GB, free: 104.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007957/0.8335, allocations: 0.6831 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.002211/0.8358, allocations: 259.8 kB / 0.5687 GB, free: 104.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04617/0.8819, allocations: 34.3 MB / 0.6022 GB, free: 65.65 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002776/0.8847, allocations: 2.398 MB / 0.6045 GB, free: 63.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003376/0.8881, allocations: 1.633 MB / 0.6061 GB, free: 61.59 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001556/0.8896, allocations: 1.21 MB / 0.6073 GB, free: 60.38 MB / 462.1 MB Notification: Performance of SimCode: time 1.663e-06/0.8896, allocations: 0 / 0.6073 GB, free: 60.38 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08695/0.9766, allocations: 47.84 MB / 0.654 GB, free: 12.89 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.14/18.12, allocations: 8.062 kB / 0.654 GB, free: 12.88 MB / 462.1 MB " [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 & /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: 20.520004398189485] 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]'] 18.226298484951258 18.250282404 17.92642832 Calling exit ...