Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 192.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 225.6 MB / 253.3 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 47.92 kB / 371.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.2069, allocations: 52.17 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009296/0.2162, allocations: 8.034 MB / 431.5 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004739/0.2209, allocations: 2.555 MB / 434 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006038/0.2215, allocations: 39.88 kB / 434 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002604/0.2242, allocations: 1.444 MB / 435.5 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001906/0.2261, allocations: 1.035 MB / 436.5 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005411/0.2266, allocations: 263.4 kB / 436.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002503/0.2291, allocations: 2.185 MB / 439 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001541/0.2306, allocations: 1.353 MB / 440.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009416/0.2316, allocations: 0.8639 MB / 441.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001682/0.2333, allocations: 1.296 MB / 442.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002803/0.2335, allocations: 160 kB / 442.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001175/0.2347, allocations: 0.6981 MB / 443.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001087/0.2358, allocations: 1.184 MB / 444.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001337/0.2371, allocations: 1.378 MB / 445.9 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00524/0.2424, allocations: 4.333 MB / 450.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.2424, allocations: 0 / 450.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2424, allocations: 0 / 450.2 MB, free: 3.688 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001044/0.2425, allocations: 0 / 450.2 MB, free: 3.688 MB / 350.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.005056/0.2476, allocations: 2.961 MB / 453.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.652e-05/0.2476, allocations: 12.03 kB / 453.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.188e-05/0.2477, allocations: 68.12 kB / 453.3 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006703/0.2484, allocations: 0.5299 MB / 453.8 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006833/0.2552, allocations: 1.797 MB / 455.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/0.2575, allocations: 1.108 MB / 456.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/0.2577, allocations: 151.8 kB / 456.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000402/0.2581, allocations: 199.8 kB / 457 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01822/0.2763, allocations: 8.592 MB / 465.6 MB, free: 3.578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-05/0.2764, allocations: 51.64 kB / 465.7 MB, free: 3.527 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002841/0.2767, allocations: 103.9 kB / 465.8 MB, free: 3.426 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002901/0.2796, allocations: 1.663 MB / 467.5 MB, free: 1.758 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01745/0.297, allocations: 7.168 MB / 474.6 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03546/0.3325, allocations: 30.07 MB / 0.4929 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02214/0.3546, allocations: 4.519 MB / 0.4973 GB, free: 7.039 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/0.3564, allocations: 1.193 MB / 0.4984 GB, free: 5.824 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005308/0.3617, allocations: 3.282 MB / 0.5016 GB, free: 2.516 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.184e-05/0.3617, allocations: 54.81 kB / 0.5017 GB, free: 2.453 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 2.445e-06/0.3617, allocations: 0 / 0.5017 GB, free: 2.453 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04558/0.4073, allocations: 8.982 MB / 0.5105 GB, free: 9.461 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/0.4074, allocations: 187.9 kB / 0.5106 GB, free: 9.234 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004161/0.4116, allocations: 3.044 MB / 0.5136 GB, free: 6.172 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.4117, allocations: 41.69 kB / 0.5137 GB, free: 6.125 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00184/0.4135, allocations: 2.532 MB / 0.5161 GB, free: 3.566 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005065/0.414, allocations: 0.5158 MB / 0.5166 GB, free: 3.047 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001318/0.4153, allocations: 1.096 MB / 0.5177 GB, free: 1.941 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.4155, allocations: 305.1 kB / 0.518 GB, free: 1.641 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002252/0.4177, allocations: 1.596 MB / 0.5196 GB, free: 40 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00527/0.423, allocations: 5.169 MB / 0.5246 GB, free: 9.066 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008027/0.431, allocations: 7.323 MB / 0.5318 GB, free: 15.96 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.696e-05/0.4311, allocations: 40 kB / 0.5318 GB, free: 15.92 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009348/0.4404, allocations: 6.448 MB / 0.5381 GB, free: 9.469 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.393e-05/0.4405, allocations: 63.94 kB / 0.5382 GB, free: 9.406 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001179/0.4406, allocations: 128 kB / 0.5383 GB, free: 9.281 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001631/0.4408, allocations: 168 kB / 0.5384 GB, free: 9.117 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00452/0.4453, allocations: 1.458 MB / 0.5399 GB, free: 7.656 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002043/0.4455, allocations: 251 kB / 0.5401 GB, free: 7.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003033/0.4486, allocations: 0.7681 MB / 0.5408 GB, free: 6.637 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004257/0.449, allocations: 352 kB / 0.5412 GB, free: 6.293 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.002261/0.4512, allocations: 1.567 MB / 0.5427 GB, free: 4.715 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004965/0.4517, allocations: 262.2 kB / 0.543 GB, free: 4.457 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001362/0.4531, allocations: 0.8327 MB / 0.5438 GB, free: 3.613 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.61e-05/0.4531, allocations: 12.38 kB / 0.5438 GB, free: 3.602 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.477e-06/0.4531, allocations: 8 kB / 0.5438 GB, free: 3.594 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.4531, allocations: 3.984 kB / 0.5438 GB, free: 3.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005758/0.4589, allocations: 3.364 MB / 0.5471 GB, free: 172 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.4589, allocations: 7.938 kB / 0.5471 GB, free: 164 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1741/0.633, allocations: 407.8 kB / 0.5475 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.428e-05/0.633, allocations: 4.438 kB / 0.5475 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001485/0.6332, allocations: 35.84 kB / 0.5475 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.217e-06/0.6332, allocations: 6.469 kB / 0.5475 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.6332, allocations: 5.125 kB / 0.5475 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003186/0.6364, allocations: 2.797 MB / 0.5503 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000667/0.6371, allocations: 238.8 kB / 0.5505 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002883/0.6373, allocations: 28.27 kB / 0.5505 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008773/0.6382, allocations: 41.12 kB / 0.5506 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.6383, allocations: 62.17 kB / 0.5506 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-05/0.6384, allocations: 37.55 kB / 0.5507 GB, free: 121.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002108/0.6405, allocations: 1.847 MB / 0.5525 GB, free: 120.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6405, allocations: 0 / 0.5525 GB, free: 120.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003106/0.6436, allocations: 0.8347 MB / 0.5533 GB, free: 120.5 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.002571/0.6462, allocations: 3.442 MB / 0.5566 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003654/0.6499, allocations: 3.482 MB / 0.56 GB, free: 117.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.6499, allocations: 0 / 0.56 GB, free: 117.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006077/0.6505, allocations: 0.6797 MB / 0.5607 GB, free: 117.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.6518, allocations: 273.3 kB / 0.561 GB, free: 117.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02627/0.678, allocations: 34.29 MB / 0.5944 GB, free: 79.61 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001497/0.6795, allocations: 2.384 MB / 0.5968 GB, free: 77.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002542/0.6821, allocations: 1.637 MB / 0.5984 GB, free: 75.55 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001007/0.6831, allocations: 1.214 MB / 0.5996 GB, free: 74.34 MB / 462.1 MB Notification: Performance of SimCode: time 9.61e-07/0.6831, allocations: 3.938 kB / 0.5996 GB, free: 74.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5412/1.224, allocations: 48.09 MB / 0.6465 GB, free: 26.62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.86/20.08, allocations: 4.062 kB / 0.6465 GB, free: 26.61 MB / 462.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.144745972007513]