Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001853/0.001853, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.002008/0.002008, allocations: 216.5 kB / 24.53 MB, free: 4.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 230.5 MB / 258.2 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 63.89 kB / 378.6 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.2175, allocations: 53.41 MB / 432 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009005/0.2265, allocations: 7.999 MB / 440 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004637/0.2311, allocations: 2.597 MB / 442.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007256/0.2319, allocations: 47.75 kB / 442.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002732/0.2346, allocations: 1.464 MB / 444.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002039/0.2366, allocations: 1.019 MB / 445.1 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006058/0.2372, allocations: 267.4 kB / 445.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00255/0.2398, allocations: 2.153 MB / 447.5 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001684/0.2415, allocations: 1.348 MB / 448.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001125/0.2426, allocations: 0.8484 MB / 449.7 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001761/0.2444, allocations: 1.292 MB / 451 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003931/0.2447, allocations: 156 kB / 451.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001129/0.2459, allocations: 0.6981 MB / 451.9 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009967/0.2469, allocations: 1.184 MB / 453 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001163/0.248, allocations: 1.359 MB / 454.4 MB, free: 188 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004144/0.2522, allocations: 4.283 MB / 458.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2522, allocations: 0 / 458.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2522, allocations: 3.938 kB / 458.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.86e-05/0.2522, allocations: 0 / 458.7 MB, free: 11.88 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.004059/0.2563, allocations: 2.938 MB / 461.6 MB, free: 8.891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.2563, allocations: 8.031 kB / 461.6 MB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.68e-05/0.2564, allocations: 72.12 kB / 461.7 MB, free: 8.812 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005374/0.2569, allocations: 0.5182 MB / 462.2 MB, free: 8.281 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006319/0.2633, allocations: 1.808 MB / 464 MB, free: 6.469 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002031/0.2653, allocations: 1.109 MB / 465.1 MB, free: 5.328 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.2654, allocations: 155.8 kB / 465.3 MB, free: 5.176 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000396/0.2658, allocations: 203.8 kB / 465.5 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01729/0.2831, allocations: 8.615 MB / 474.1 MB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-05/0.2832, allocations: 39.7 kB / 474.1 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002685/0.2834, allocations: 107.9 kB / 474.2 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002854/0.2863, allocations: 1.663 MB / 475.9 MB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01646/0.3028, allocations: 7.175 MB / 483.1 MB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03384/0.3366, allocations: 30.05 MB / 0.5011 GB, free: 3.828 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02285/0.3594, allocations: 4.548 MB / 0.5055 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001747/0.3612, allocations: 1.193 MB / 0.5067 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005496/0.3667, allocations: 3.294 MB / 0.5099 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.268e-05/0.3667, allocations: 50.83 kB / 0.51 GB, free: 10.62 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 3.035e-06/0.3667, allocations: 0 / 0.51 GB, free: 10.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.04504/0.4118, allocations: 9.006 MB / 0.5188 GB, free: 1.598 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.4119, allocations: 191.9 kB / 0.519 GB, free: 1.367 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004657/0.4165, allocations: 3.039 MB / 0.5219 GB, free: 14.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001603/0.4167, allocations: 41.7 kB / 0.522 GB, free: 14.26 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001971/0.4187, allocations: 2.531 MB / 0.5244 GB, free: 11.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000648/0.4193, allocations: 0.5119 MB / 0.5249 GB, free: 11.19 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001608/0.4209, allocations: 1.092 MB / 0.526 GB, free: 10.09 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.4211, allocations: 301.1 kB / 0.5263 GB, free: 9.789 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002449/0.4235, allocations: 1.611 MB / 0.5279 GB, free: 8.172 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005521/0.429, allocations: 5.169 MB / 0.5329 GB, free: 1.199 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008418/0.4374, allocations: 7.329 MB / 0.5401 GB, free: 8.086 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001139/0.4376, allocations: 39.94 kB / 0.5401 GB, free: 8.047 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01176/0.4493, allocations: 6.469 MB / 0.5464 GB, free: 1.574 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.4494, allocations: 60.97 kB / 0.5465 GB, free: 1.516 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001741/0.4496, allocations: 128 kB / 0.5466 GB, free: 1.391 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001854/0.4498, allocations: 175.9 kB / 0.5468 GB, free: 1.219 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.19/0.6398, allocations: 1.454 MB / 0.5482 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003382/0.6401, allocations: 248.1 kB / 0.5484 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003927/0.644, allocations: 0.7606 MB / 0.5492 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007023/0.6447, allocations: 344 kB / 0.5495 GB, free: 112.9 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.002073/0.6468, allocations: 1.579 MB / 0.551 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004406/0.6472, allocations: 267.3 kB / 0.5513 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004793/0.6477, allocations: 311.2 kB / 0.5516 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.007e-05/0.6477, allocations: 18.56 kB / 0.5516 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/0.6478, allocations: 0 / 0.5516 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.6478, allocations: 8.281 kB / 0.5516 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004927/0.6527, allocations: 3.361 MB / 0.5549 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.6527, allocations: 0 / 0.5549 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00207/0.6548, allocations: 412.1 kB / 0.5553 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-06/0.6548, allocations: 3.719 kB / 0.5553 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.757e-05/0.6549, allocations: 38.33 kB / 0.5553 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/0.6549, allocations: 3.719 kB / 0.5553 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.6549, allocations: 0 / 0.5553 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002523/0.6574, allocations: 2.82 MB / 0.5581 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003621/0.6578, allocations: 239 kB / 0.5583 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000231/0.658, allocations: 37.62 kB / 0.5584 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008132/0.6588, allocations: 40.05 kB / 0.5584 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.6589, allocations: 66.38 kB / 0.5585 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.645e-05/0.659, allocations: 33.2 kB / 0.5585 GB, free: 109.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001887/0.6609, allocations: 1.842 MB / 0.5603 GB, free: 109.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6609, allocations: 0 / 0.5603 GB, free: 109.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003408/0.6643, allocations: 0.8194 MB / 0.5611 GB, free: 109.1 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.002653/0.6669, allocations: 3.453 MB / 0.5645 GB, free: 107.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003879/0.6708, allocations: 3.488 MB / 0.5679 GB, free: 105.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.6708, allocations: 4 kB / 0.5679 GB, free: 105.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006769/0.6715, allocations: 0.6815 MB / 0.5685 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/0.6729, allocations: 272.1 kB / 0.5688 GB, free: 104.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02896/0.7019, allocations: 34.31 MB / 0.6023 GB, free: 65.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00165/0.7035, allocations: 2.394 MB / 0.6046 GB, free: 62.89 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002776/0.7063, allocations: 1.633 MB / 0.6062 GB, free: 61.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/0.7075, allocations: 1.214 MB / 0.6074 GB, free: 60.04 MB / 462.1 MB Notification: Performance of SimCode: time 1.382e-06/0.7075, allocations: 0 / 0.6074 GB, free: 60.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4957/1.203, allocations: 47.95 MB / 0.6542 GB, free: 12.36 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.57/19.77, allocations: 17.81 kB / 0.6543 GB, free: 12.35 MB / 462.1 MB " [Timeout remaining time 640] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.686527828045655]