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.001399/0.001399, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.00141/0.00141, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.444/1.444, allocations: 230.5 MB / 254.7 MB, free: 15.01 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.001953/0.001953, allocations: 71.83 kB / 373.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09721/0.09916, allocations: 53.32 MB / 426.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2118/0.311, allocations: 7.974 MB / 434.9 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004852/0.3158, allocations: 2.575 MB / 437.4 MB, free: 6.215 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001277/0.3171, allocations: 39.94 kB / 437.5 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002872/0.32, allocations: 1.455 MB / 438.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002769/0.3228, allocations: 1.011 MB / 440 MB, free: 5.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007426/0.3235, allocations: 269.3 kB / 440.2 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00305/0.3266, allocations: 2.156 MB / 442.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001971/0.3285, allocations: 1.336 MB / 443.7 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00172/0.3302, allocations: 0.8357 MB / 444.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002283/0.3325, allocations: 1.295 MB / 445.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000593/0.3331, allocations: 159.1 kB / 446 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001679/0.3348, allocations: 0.6869 MB / 446.7 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001375/0.3362, allocations: 1.181 MB / 447.9 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001836/0.338, allocations: 1.355 MB / 449.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006077/0.3441, allocations: 4.292 MB / 453.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.3441, allocations: 0 / 453.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.045e-06/0.3441, allocations: 0 / 453.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000194/0.3443, allocations: 1.375 kB / 453.5 MB, free: 15.37 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.009085/0.3534, allocations: 3.007 MB / 456.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.494e-05/0.3534, allocations: 9.281 kB / 456.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00208/0.3555, allocations: 0.5284 MB / 457.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007477/0.363, allocations: 1.8 MB / 458.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003693/0.3667, allocations: 1.164 MB / 460 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001609/0.3669, allocations: 150.5 kB / 460.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008628/0.3677, allocations: 206 kB / 460.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02115/0.3889, allocations: 8.616 MB / 469 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001205/0.389, allocations: 36.95 kB / 469 MB, free: 5.621 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000403/0.3894, allocations: 104.4 kB / 469.1 MB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003083/0.3925, allocations: 1.672 MB / 470.8 MB, free: 4.266 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01953/0.412, allocations: 7.178 MB / 478 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.042/0.454, allocations: 30.14 MB / 0.4962 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02297/0.477, allocations: 4.985 MB / 0.5011 GB, free: 8.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001925/0.4789, allocations: 1.198 MB / 0.5022 GB, free: 7.691 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006906/0.4858, allocations: 3.837 MB / 0.506 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.179e-05/0.4859, allocations: 47.33 kB / 0.506 GB, free: 3.637 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 5.52e-06/0.4859, allocations: 4 kB / 0.506 GB, free: 3.633 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04613/0.532, allocations: 9.29 MB / 0.5151 GB, free: 10.26 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/0.5321, allocations: 203.8 kB / 0.5153 GB, free: 10.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00605/0.5382, allocations: 3.035 MB / 0.5183 GB, free: 6.961 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002276/0.5384, allocations: 37.7 kB / 0.5183 GB, free: 6.918 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002373/0.5408, allocations: 2.539 MB / 0.5208 GB, free: 4.352 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000905/0.5417, allocations: 0.5119 MB / 0.5213 GB, free: 3.836 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002018/0.5437, allocations: 1.092 MB / 0.5224 GB, free: 2.734 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.5439, allocations: 309.1 kB / 0.5226 GB, free: 2.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002985/0.5468, allocations: 1.599 MB / 0.5242 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006351/0.5532, allocations: 5.169 MB / 0.5293 GB, free: 9.852 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009248/0.5624, allocations: 7.336 MB / 0.5364 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001174/0.5626, allocations: 40.75 kB / 0.5365 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01345/0.576, allocations: 6.46 MB / 0.5428 GB, free: 10.23 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.828e-05/0.5761, allocations: 63.94 kB / 0.5428 GB, free: 10.17 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001703/0.5763, allocations: 128 kB / 0.543 GB, free: 10.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001787/0.5764, allocations: 166.2 kB / 0.5431 GB, free: 9.883 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00528/0.5817, allocations: 1.458 MB / 0.5445 GB, free: 8.422 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002588/0.582, allocations: 251.7 kB / 0.5448 GB, free: 8.176 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004224/0.5862, allocations: 0.7716 MB / 0.5455 GB, free: 7.402 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009144/0.5871, allocations: 344 kB / 0.5459 GB, free: 7.066 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.003464/0.5906, allocations: 1.573 MB / 0.5474 GB, free: 5.48 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006154/0.5912, allocations: 266.2 kB / 0.5476 GB, free: 5.219 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008676/0.5921, allocations: 319.2 kB / 0.5479 GB, free: 4.906 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-05/0.5921, allocations: 15.94 kB / 0.548 GB, free: 4.891 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/0.5921, allocations: 4 kB / 0.548 GB, free: 4.887 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.5921, allocations: 3.984 kB / 0.548 GB, free: 4.883 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007832/0.6, allocations: 3.4 MB / 0.5513 GB, free: 1.422 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.439e-05/0.6, allocations: 4 kB / 0.5513 GB, free: 1.418 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002405/0.6024, allocations: 411.5 kB / 0.5517 GB, free: 1.016 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.88e-05/0.6024, allocations: 4 kB / 0.5517 GB, free: 1.012 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001638/0.6026, allocations: 35.97 kB / 0.5517 GB, free: 0.9766 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-05/0.6026, allocations: 4 kB / 0.5517 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.6026, allocations: 0 / 0.5517 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003824/0.6064, allocations: 2.821 MB / 0.5545 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008065/0.6072, allocations: 315.1 kB / 0.5548 GB, free: 13.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003251/0.6075, allocations: 27.98 kB / 0.5548 GB, free: 13.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009688/0.6085, allocations: 43.95 kB / 0.5549 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.6087, allocations: 56.23 kB / 0.5549 GB, free: 13.67 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-05/0.6087, allocations: 49.14 kB / 0.555 GB, free: 13.63 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003515/0.6123, allocations: 1.836 MB / 0.5567 GB, free: 11.79 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6123, allocations: 0 / 0.5567 GB, free: 11.79 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004565/0.6168, allocations: 0.8227 MB / 0.5576 GB, free: 10.96 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.004367/0.6212, allocations: 3.456 MB / 0.5609 GB, free: 7.473 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006308/0.6275, allocations: 3.479 MB / 0.5643 GB, free: 4.023 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/0.6275, allocations: 0 / 0.5643 GB, free: 4.023 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.6287, allocations: 0.6897 MB / 0.565 GB, free: 3.336 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/0.6308, allocations: 257.6 kB / 0.5652 GB, free: 3.094 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06042/0.6912, allocations: 34.3 MB / 0.5987 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004289/0.6955, allocations: 2.388 MB / 0.6011 GB, free: 9.031 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004519/0.7, allocations: 1.637 MB / 0.6027 GB, free: 7.387 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002498/0.7025, allocations: 1.21 MB / 0.6039 GB, free: 6.176 MB / 0.5137 GB Notification: Performance of SimCode: time 1.563e-06/0.7025, allocations: 0 / 0.6039 GB, free: 6.176 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.305/1.007, allocations: 43.61 MB / 0.6464 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.65/16.65, allocations: 9.828 kB / 0.6465 GB, free: 180.2 MB / 0.5294 GB " [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.034521320369095] 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.752711767796427 16.763387265 16.416642346 Calling exit ...