Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.517/1.517, allocations: 230.6 MB / 254.1 MB, free: 15.11 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_1_0_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_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 55.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1148, allocations: 53.33 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2137/0.3285, allocations: 7.973 MB / 434.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006054/0.3346, allocations: 2.57 MB / 436.9 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001098/0.3357, allocations: 44.19 kB / 436.9 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002988/0.3387, allocations: 1.454 MB / 438.4 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002357/0.341, allocations: 1.018 MB / 439.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006548/0.3417, allocations: 268.8 kB / 439.6 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002655/0.3443, allocations: 2.152 MB / 441.8 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002008/0.3463, allocations: 1.333 MB / 443.1 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00107/0.3474, allocations: 0.8498 MB / 444 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001783/0.3492, allocations: 1.3 MB / 445.3 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003316/0.3495, allocations: 159.7 kB / 445.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001241/0.3508, allocations: 0.6907 MB / 446.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001163/0.3519, allocations: 1.168 MB / 447.3 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001271/0.3532, allocations: 1.364 MB / 448.7 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005036/0.3582, allocations: 4.287 MB / 452.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3582, allocations: 4 kB / 452.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3582, allocations: 0 / 452.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.589e-05/0.3583, allocations: 1.375 kB / 453 MB, free: 15.26 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.005444/0.3638, allocations: 3.007 MB / 456 MB, free: 13.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.3638, allocations: 13.97 kB / 456 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006616/0.3645, allocations: 0.5282 MB / 456.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007078/0.3716, allocations: 1.789 MB / 458.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002508/0.3741, allocations: 1.169 MB / 459.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001319/0.3742, allocations: 158.4 kB / 459.6 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003884/0.3746, allocations: 206.1 kB / 459.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01982/0.3944, allocations: 8.605 MB / 468.4 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.891e-05/0.3945, allocations: 47.75 kB / 468.5 MB, free: 5.508 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002946/0.3948, allocations: 106.2 kB / 468.6 MB, free: 5.438 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003071/0.3979, allocations: 1.67 MB / 470.2 MB, free: 4.137 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01876/0.4166, allocations: 7.181 MB / 477.4 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04465/0.4613, allocations: 30.14 MB / 0.4957 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02288/0.4842, allocations: 4.991 MB / 0.5005 GB, free: 8.766 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00195/0.4861, allocations: 1.187 MB / 0.5017 GB, free: 7.559 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006197/0.4923, allocations: 3.851 MB / 0.5055 GB, free: 3.551 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.399e-05/0.4924, allocations: 50.83 kB / 0.5055 GB, free: 3.492 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 4.899e-06/0.4924, allocations: 0 / 0.5055 GB, free: 3.492 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04594/0.5383, allocations: 9.299 MB / 0.5146 GB, free: 10.11 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.5384, allocations: 187.9 kB / 0.5148 GB, free: 9.879 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005441/0.5439, allocations: 3.039 MB / 0.5177 GB, free: 6.82 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002249/0.5441, allocations: 37.7 kB / 0.5178 GB, free: 6.777 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00229/0.5464, allocations: 2.527 MB / 0.5202 GB, free: 4.223 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007292/0.5471, allocations: 0.5158 MB / 0.5207 GB, free: 3.703 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001513/0.5486, allocations: 1.1 MB / 0.5218 GB, free: 2.594 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.5488, allocations: 305.1 kB / 0.5221 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002491/0.5513, allocations: 1.607 MB / 0.5237 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005783/0.5571, allocations: 5.169 MB / 0.5287 GB, free: 9.707 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/0.5674, allocations: 7.328 MB / 0.5359 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001054/0.5675, allocations: 36 kB / 0.5359 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01317/0.5806, allocations: 6.466 MB / 0.5422 GB, free: 10.09 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/0.5808, allocations: 60 kB / 0.5423 GB, free: 10.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002113/0.581, allocations: 132 kB / 0.5424 GB, free: 9.906 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002225/0.5812, allocations: 168 kB / 0.5426 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005538/0.5867, allocations: 1.46 MB / 0.544 GB, free: 8.281 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002873/0.587, allocations: 247 kB / 0.5442 GB, free: 8.039 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004289/0.5913, allocations: 0.7683 MB / 0.545 GB, free: 7.266 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008603/0.5922, allocations: 344 kB / 0.5453 GB, free: 6.93 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.0036/0.5958, allocations: 1.571 MB / 0.5468 GB, free: 5.348 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006198/0.5964, allocations: 268.4 kB / 0.5471 GB, free: 5.086 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/0.5975, allocations: 314 kB / 0.5474 GB, free: 4.781 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.051e-05/0.5975, allocations: 20 kB / 0.5474 GB, free: 4.762 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.5975, allocations: 3.938 kB / 0.5474 GB, free: 4.758 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.705e-05/0.5975, allocations: 7.969 kB / 0.5474 GB, free: 4.75 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008364/0.6059, allocations: 3.388 MB / 0.5507 GB, free: 1.301 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.6059, allocations: 0 / 0.5507 GB, free: 1.301 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002479/0.6084, allocations: 415.4 kB / 0.5511 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.73e-05/0.6084, allocations: 4 kB / 0.5511 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001528/0.6086, allocations: 43.97 kB / 0.5512 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-05/0.6086, allocations: 4 kB / 0.5512 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.6086, allocations: 3.938 kB / 0.5512 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00396/0.6125, allocations: 2.823 MB / 0.5539 GB, free: 14 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006536/0.6132, allocations: 319 kB / 0.5543 GB, free: 13.67 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005145/0.6137, allocations: 27.98 kB / 0.5543 GB, free: 13.64 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/0.6149, allocations: 39.95 kB / 0.5543 GB, free: 13.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.615, allocations: 55.91 kB / 0.5544 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.395e-05/0.6151, allocations: 39.92 kB / 0.5544 GB, free: 13.51 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003776/0.6189, allocations: 1.84 MB / 0.5562 GB, free: 11.67 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6189, allocations: 4 kB / 0.5562 GB, free: 11.66 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004634/0.6235, allocations: 0.8149 MB / 0.557 GB, free: 10.85 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.004569/0.6281, allocations: 3.458 MB / 0.5604 GB, free: 7.352 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00626/0.6343, allocations: 3.484 MB / 0.5638 GB, free: 3.895 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/0.6344, allocations: 4 kB / 0.5638 GB, free: 3.891 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.6354, allocations: 0.679 MB / 0.5645 GB, free: 3.211 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002088/0.6375, allocations: 266.1 kB / 0.5647 GB, free: 2.961 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05806/0.6956, allocations: 34.32 MB / 0.5982 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00535/0.7009, allocations: 2.383 MB / 0.6005 GB, free: 8.887 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004189/0.7051, allocations: 1.625 MB / 0.6021 GB, free: 7.254 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002172/0.7073, allocations: 1.218 MB / 0.6033 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of SimCode: time 1.443e-06/0.7073, allocations: 0 / 0.6033 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3006/1.008, allocations: 43.59 MB / 0.6459 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.63/17.64, allocations: 2.078 kB / 0.6459 GB, free: 180.1 MB / 0.5294 GB " [Timeout remaining time 642] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 20.687560280086473]