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.001261/0.001261, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001476/0.001476, allocations: 213.5 kB / 24.52 MB, free: 3.91 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.482/1.482, allocations: 230.5 MB / 258.2 MB, free: 7.789 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.001815/0.001815, allocations: 59.91 kB / 378.5 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2803, allocations: 53.4 MB / 431.9 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009743/0.2901, allocations: 6.973 MB / 438.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00616/0.2962, allocations: 2.431 MB / 441.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001229/0.2975, allocations: 43.81 kB / 441.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002862/0.3003, allocations: 1.405 MB / 442.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00247/0.3028, allocations: 1.023 MB / 443.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006572/0.3034, allocations: 263.5 kB / 444 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002899/0.3063, allocations: 2.161 MB / 446.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001599/0.3079, allocations: 1.346 MB / 447.6 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001042/0.309, allocations: 0.8407 MB / 448.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001634/0.3106, allocations: 1.3 MB / 449.7 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002959/0.3109, allocations: 160 kB / 449.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.312, allocations: 0.585 MB / 450.4 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001052/0.3131, allocations: 1.184 MB / 451.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.3142, allocations: 0.9739 MB / 452.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004563/0.3187, allocations: 4.298 MB / 456.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3187, allocations: 0 / 456.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3187, allocations: 0 / 456.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.897e-05/0.3188, allocations: 0 / 456.9 MB, free: 13.34 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.004789/0.3236, allocations: 2.938 MB / 459.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3236, allocations: 8.031 kB / 459.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.715e-05/0.3237, allocations: 72.12 kB / 459.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005921/0.3243, allocations: 0.526 MB / 460.4 MB, free: 9.738 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006637/0.331, allocations: 1.793 MB / 462.2 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002583/0.3335, allocations: 1.117 MB / 463.3 MB, free: 6.793 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.3337, allocations: 147.8 kB / 463.5 MB, free: 6.648 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004104/0.3341, allocations: 203.8 kB / 463.7 MB, free: 6.449 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01982/0.3539, allocations: 8.64 MB / 472.3 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000102/0.354, allocations: 43.64 kB / 472.4 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002873/0.3543, allocations: 103.9 kB / 472.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002904/0.3572, allocations: 1.675 MB / 474.1 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01963/0.3768, allocations: 7.183 MB / 481.3 MB, free: 4.195 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03677/0.4136, allocations: 29.12 MB / 0.4985 GB, free: 6.184 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02264/0.4362, allocations: 4.53 MB / 0.5029 GB, free: 1.586 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00179/0.438, allocations: 1.193 MB / 0.5041 GB, free: 380 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005619/0.4437, allocations: 3.11 MB / 0.5071 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/0.4437, allocations: 42.89 kB / 0.5072 GB, free: 13.18 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 4.92e-06/0.4437, allocations: 4 kB / 0.5072 GB, free: 13.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.04675/0.4905, allocations: 9.013 MB / 0.516 GB, free: 4.152 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.4906, allocations: 187.9 kB / 0.5161 GB, free: 3.926 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005221/0.4958, allocations: 3.039 MB / 0.5191 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003227/0.4961, allocations: 41.7 kB / 0.5191 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002352/0.4985, allocations: 2.52 MB / 0.5216 GB, free: 14.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009554/0.4994, allocations: 0.5197 MB / 0.5221 GB, free: 13.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00166/0.5011, allocations: 1.096 MB / 0.5232 GB, free: 12.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.5012, allocations: 301.1 kB / 0.5235 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002734/0.504, allocations: 1.611 MB / 0.525 GB, free: 10.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005968/0.5099, allocations: 5.169 MB / 0.5301 GB, free: 3.754 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009374/0.5193, allocations: 7.332 MB / 0.5373 GB, free: 10.64 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001129/0.5194, allocations: 36 kB / 0.5373 GB, free: 10.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0122/0.5316, allocations: 6.47 MB / 0.5436 GB, free: 4.129 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.978e-05/0.5317, allocations: 62.34 kB / 0.5437 GB, free: 4.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/0.5318, allocations: 131.8 kB / 0.5438 GB, free: 3.945 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001684/0.532, allocations: 168 kB / 0.544 GB, free: 3.781 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004818/0.5368, allocations: 1.454 MB / 0.5454 GB, free: 2.324 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002153/0.5371, allocations: 255 kB / 0.5456 GB, free: 2.074 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003774/0.5408, allocations: 0.7643 MB / 0.5464 GB, free: 1.305 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005931/0.5414, allocations: 340 kB / 0.5467 GB, free: 0.9727 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.2225/0.7639, allocations: 1.577 MB / 0.5482 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006009/0.7645, allocations: 265.3 kB / 0.5485 GB, free: 113.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008097/0.7653, allocations: 316.8 kB / 0.5488 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.012e-05/0.7654, allocations: 14.89 kB / 0.5488 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-05/0.7654, allocations: 2.516 kB / 0.5488 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.7654, allocations: 5.828 kB / 0.5488 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005881/0.7713, allocations: 3.225 MB / 0.552 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.7713, allocations: 2.766 kB / 0.552 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002343/0.7736, allocations: 412.5 kB / 0.5523 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.691e-05/0.7736, allocations: 4.781 kB / 0.5524 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/0.7738, allocations: 36.69 kB / 0.5524 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.896e-06/0.7738, allocations: 6.062 kB / 0.5524 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.7738, allocations: 1.375 kB / 0.5524 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003281/0.7771, allocations: 2.818 MB / 0.5551 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005134/0.7776, allocations: 245 kB / 0.5554 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002512/0.7778, allocations: 27.81 kB / 0.5554 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008716/0.7787, allocations: 45.84 kB / 0.5554 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.7788, allocations: 57.14 kB / 0.5555 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.158e-05/0.7789, allocations: 38.16 kB / 0.5555 GB, free: 111.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002183/0.7811, allocations: 1.841 MB / 0.5573 GB, free: 111 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7811, allocations: 0 / 0.5573 GB, free: 111 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003632/0.7847, allocations: 0.8201 MB / 0.5581 GB, free: 110.8 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.00283/0.7875, allocations: 3.454 MB / 0.5615 GB, free: 109 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004176/0.7917, allocations: 3.492 MB / 0.5649 GB, free: 106.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.7917, allocations: 0 / 0.5649 GB, free: 106.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007433/0.7925, allocations: 0.6816 MB / 0.5656 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001662/0.7941, allocations: 265.9 kB / 0.5658 GB, free: 106 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02979/0.8239, allocations: 34.29 MB / 0.5993 GB, free: 67.44 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001549/0.8255, allocations: 1.827 MB / 0.6011 GB, free: 65.58 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002671/0.8281, allocations: 1.634 MB / 0.6027 GB, free: 63.94 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/0.8292, allocations: 1.214 MB / 0.6039 GB, free: 62.73 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.8292, allocations: 4 kB / 0.6039 GB, free: 62.72 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5754/1.405, allocations: 45.04 MB / 0.6479 GB, free: 18.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.5/19.91, allocations: 7.672 kB / 0.6479 GB, free: 18.25 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.718618076993152]