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.00142/0.00142, allocations: 112.7 kB / 20.43 MB, free: 1.453 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: 214 kB / 23.74 MB, free: 4.66 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.663/1.663, allocations: 230.5 MB / 257.4 MB, free: 7.984 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 64.09 kB / 377.8 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2425, allocations: 53.41 MB / 431.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01165/0.2541, allocations: 8.008 MB / 439.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006681/0.2608, allocations: 2.594 MB / 441.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009498/0.2618, allocations: 43.81 kB / 441.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003655/0.2654, allocations: 1.468 MB / 443.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003256/0.2687, allocations: 1.015 MB / 444.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007234/0.2694, allocations: 267.4 kB / 444.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004007/0.2734, allocations: 2.161 MB / 446.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002847/0.2763, allocations: 1.345 MB / 448.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001699/0.278, allocations: 0.8406 MB / 448.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002445/0.2804, allocations: 1.296 MB / 450.2 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000593/0.281, allocations: 160 kB / 450.4 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002287/0.2833, allocations: 0.6981 MB / 451.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001618/0.2849, allocations: 1.176 MB / 452.2 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002494/0.2874, allocations: 1.359 MB / 453.6 MB, free: 276 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006747/0.2941, allocations: 4.29 MB / 457.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2942, allocations: 0 / 457.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.2942, allocations: 4 kB / 457.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.873e-05/0.2942, allocations: 3.938 kB / 457.9 MB, free: 11.95 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.005034/0.2993, allocations: 2.931 MB / 460.8 MB, free: 8.973 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.2993, allocations: 8.031 kB / 460.8 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006192/0.2999, allocations: 0.5298 MB / 461.4 MB, free: 8.422 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007067/0.307, allocations: 1.797 MB / 463.2 MB, free: 6.621 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002724/0.3097, allocations: 1.109 MB / 464.3 MB, free: 5.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001734/0.3099, allocations: 151.8 kB / 464.4 MB, free: 5.332 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003556/0.3102, allocations: 211.8 kB / 464.6 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01932/0.3296, allocations: 8.608 MB / 473.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-05/0.3296, allocations: 43.64 kB / 473.3 MB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002644/0.3299, allocations: 103.9 kB / 473.4 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003238/0.3331, allocations: 1.667 MB / 475.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01792/0.3511, allocations: 7.178 MB / 482.2 MB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0401/0.3912, allocations: 30.05 MB / 0.5003 GB, free: 3.98 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02366/0.4148, allocations: 4.542 MB / 0.5047 GB, free: 15.37 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/0.4166, allocations: 1.189 MB / 0.5059 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006629/0.4232, allocations: 3.294 MB / 0.5091 GB, free: 10.84 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.616e-05/0.4233, allocations: 50.83 kB / 0.5091 GB, free: 10.78 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 2.965e-06/0.4233, allocations: 3.938 kB / 0.5091 GB, free: 10.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.04771/0.471, allocations: 9.008 MB / 0.5179 GB, free: 1.754 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.4711, allocations: 187.9 kB / 0.5181 GB, free: 1.527 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004995/0.4761, allocations: 3.039 MB / 0.5211 GB, free: 14.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002254/0.4764, allocations: 41.7 kB / 0.5211 GB, free: 14.42 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001958/0.4783, allocations: 2.523 MB / 0.5236 GB, free: 11.87 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004999/0.4788, allocations: 0.5158 MB / 0.5241 GB, free: 11.35 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001914/0.4807, allocations: 1.096 MB / 0.5252 GB, free: 10.25 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.4809, allocations: 305.1 kB / 0.5255 GB, free: 9.945 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002495/0.4834, allocations: 1.607 MB / 0.527 GB, free: 8.332 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005976/0.4893, allocations: 5.173 MB / 0.5321 GB, free: 1.355 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009207/0.4985, allocations: 7.325 MB / 0.5392 GB, free: 8.246 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-05/0.4986, allocations: 39.94 kB / 0.5393 GB, free: 8.207 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.00957/0.5082, allocations: 6.466 MB / 0.5456 GB, free: 1.734 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.358e-05/0.5082, allocations: 60 kB / 0.5456 GB, free: 1.676 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/0.5083, allocations: 124 kB / 0.5458 GB, free: 1.555 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001609/0.5085, allocations: 171.9 kB / 0.5459 GB, free: 1.387 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2232/0.7318, allocations: 1.456 MB / 0.5473 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009345/0.7327, allocations: 251.4 kB / 0.5476 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004559/0.7373, allocations: 0.7596 MB / 0.5483 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005261/0.7378, allocations: 345 kB / 0.5487 GB, free: 111.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.002891/0.7407, allocations: 1.577 MB / 0.5502 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004637/0.7411, allocations: 263.3 kB / 0.5504 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004515/0.7416, allocations: 319.4 kB / 0.5507 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.021e-05/0.7416, allocations: 22.25 kB / 0.5508 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.7416, allocations: 0.75 kB / 0.5508 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.7416, allocations: 3.703 kB / 0.5508 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006254/0.7479, allocations: 3.353 MB / 0.554 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.7479, allocations: 7.094 kB / 0.5541 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002108/0.75, allocations: 416.5 kB / 0.5545 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-06/0.75, allocations: 3.969 kB / 0.5545 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.378e-05/0.7501, allocations: 34.98 kB / 0.5545 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.354e-06/0.7501, allocations: 10.03 kB / 0.5545 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.7501, allocations: 3.906 kB / 0.5545 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003201/0.7533, allocations: 2.819 MB / 0.5573 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003631/0.7537, allocations: 234.6 kB / 0.5575 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002364/0.7539, allocations: 33.78 kB / 0.5575 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009341/0.7548, allocations: 41.88 kB / 0.5576 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003147/0.7551, allocations: 63.67 kB / 0.5576 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002556/0.7554, allocations: 37.78 kB / 0.5576 GB, free: 108.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001854/0.7572, allocations: 1.839 MB / 0.5594 GB, free: 108.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7572, allocations: 0 / 0.5594 GB, free: 108.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004315/0.7616, allocations: 0.8185 MB / 0.5602 GB, free: 108.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.003361/0.7649, allocations: 3.451 MB / 0.5636 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004557/0.7695, allocations: 3.491 MB / 0.567 GB, free: 104.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.7695, allocations: 0 / 0.567 GB, free: 104.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000872/0.7704, allocations: 0.6819 MB / 0.5677 GB, free: 104.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/0.7721, allocations: 269.3 kB / 0.5679 GB, free: 103.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03581/0.8079, allocations: 34.31 MB / 0.6015 GB, free: 65.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002139/0.8101, allocations: 2.398 MB / 0.6038 GB, free: 62.91 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002727/0.8128, allocations: 1.637 MB / 0.6054 GB, free: 61.27 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001639/0.8144, allocations: 1.214 MB / 0.6066 GB, free: 60.05 MB / 462.1 MB Notification: Performance of SimCode: time 2.294e-06/0.8144, allocations: 0 / 0.6066 GB, free: 60.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08663/0.9011, allocations: 47.93 MB / 0.6534 GB, free: 12.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.85/20.75, allocations: 5.906 kB / 0.6534 GB, free: 12.39 MB / 462.1 MB " [Timeout remaining time 639] (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: 24.204304320039228]