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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 104.7 kB / 16.92 MB, free: 5.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 187.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 51.48 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.09541, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.007863/0.1033, allocations: 7.961 MB / 358.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003835/0.1072, allocations: 2.52 MB / 360.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004039/0.1076, allocations: 35.94 kB / 360.7 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002249/0.1098, allocations: 1.429 MB / 362.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001521/0.1114, allocations: 0.9917 MB / 363.1 MB, free: 7.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004707/0.1119, allocations: 263.4 kB / 363.4 MB, free: 7.062 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001915/0.1138, allocations: 2.188 MB / 365.5 MB, free: 4.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001377/0.1152, allocations: 1.556 MB / 367.1 MB, free: 3.293 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007134/0.1159, allocations: 0.8406 MB / 367.9 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001148/0.1171, allocations: 1.179 MB / 369.1 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000235/0.1173, allocations: 163.9 kB / 369.3 MB, free: 1.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009773/0.1183, allocations: 0.667 MB / 370 MB, free: 448 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1282/0.2466, allocations: 1.162 MB / 371.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001793/0.2484, allocations: 1.376 MB / 372.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003843/0.2522, allocations: 4.119 MB / 376.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2523, allocations: 0 / 376.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2523, allocations: 3.891 kB / 376.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.692e-05/0.2523, allocations: 0 / 376.6 MB, free: 10.82 MB / 302.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.003651/0.256, allocations: 2.95 MB / 379.6 MB, free: 9.469 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.256, allocations: 8.875 kB / 379.6 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005184/0.2566, allocations: 0.525 MB / 380.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005971/0.2625, allocations: 1.782 MB / 381.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001489/0.264, allocations: 1.156 MB / 383 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.603e-05/0.2641, allocations: 155.5 kB / 383.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00033/0.2645, allocations: 204.2 kB / 383.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01405/0.2785, allocations: 8.605 MB / 392 MB, free: 4.805 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.239e-05/0.2786, allocations: 38.22 kB / 392 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002419/0.2789, allocations: 103.8 kB / 392.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002231/0.2811, allocations: 1.667 MB / 393.8 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01307/0.2942, allocations: 7.177 MB / 401 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02813/0.3223, allocations: 30.17 MB / 431.1 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02076/0.3431, allocations: 5.04 MB / 436.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/0.3445, allocations: 1.242 MB / 437.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004499/0.349, allocations: 3.752 MB / 441.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.3491, allocations: 45.7 kB / 441.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=111): time 2.715e-06/0.3491, allocations: 0 / 441.2 MB, free: 6.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=111): time 0.04322/0.3923, allocations: 9.259 MB / 450.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.3925, allocations: 195.9 kB / 450.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005819/0.3983, allocations: 3.039 MB / 453.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003116/0.3986, allocations: 41.89 kB / 453.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002379/0.401, allocations: 2.418 MB / 456.2 MB, free: 7.633 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007643/0.4018, allocations: 0.498 MB / 456.7 MB, free: 7.141 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002582/0.4044, allocations: 1.091 MB / 457.8 MB, free: 6.039 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.4046, allocations: 305.1 kB / 458.1 MB, free: 5.738 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002879/0.4074, allocations: 1.599 MB / 459.7 MB, free: 4.133 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005509/0.413, allocations: 5.173 MB / 464.8 MB, free: 13.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009893/0.4229, allocations: 7.323 MB / 472.1 MB, free: 4.496 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001656/0.4231, allocations: 36 kB / 472.2 MB, free: 4.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01319/0.4363, allocations: 6.434 MB / 478.6 MB, free: 14.03 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001319/0.4365, allocations: 60.38 kB / 478.7 MB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002017/0.4367, allocations: 131.9 kB / 478.8 MB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002094/0.4369, allocations: 168 kB / 479 MB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00508/0.442, allocations: 1.454 MB / 480.4 MB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002146/0.4422, allocations: 251 kB / 480.7 MB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004336/0.4466, allocations: 0.7462 MB / 481.4 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007953/0.4474, allocations: 348 kB / 481.8 MB, free: 10.88 MB / 398.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.003695/0.4511, allocations: 1.574 MB / 483.3 MB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006444/0.4518, allocations: 256.7 kB / 483.6 MB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.4537, allocations: 0.833 MB / 484.4 MB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.558e-05/0.4537, allocations: 12 kB / 484.4 MB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.4537, allocations: 0 / 484.4 MB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.802e-05/0.4538, allocations: 15.92 kB / 484.4 MB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007482/0.4612, allocations: 3.376 MB / 487.8 MB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.4613, allocations: 4 kB / 487.8 MB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002266/0.4636, allocations: 407.5 kB / 488.2 MB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-05/0.4636, allocations: 7.938 kB / 488.2 MB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/0.4637, allocations: 43.09 kB / 488.3 MB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.446e-06/0.4637, allocations: 4 kB / 488.3 MB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.4637, allocations: 7.938 kB / 488.3 MB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003324/0.4671, allocations: 2.78 MB / 491.1 MB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005652/0.4677, allocations: 309.6 kB / 491.4 MB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003873/0.468, allocations: 31.98 kB / 491.4 MB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009906/0.469, allocations: 35.95 kB / 491.4 MB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.4692, allocations: 55.92 kB / 491.5 MB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.873e-05/0.4693, allocations: 31.98 kB / 491.5 MB, free: 1.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003065/0.4723, allocations: 1.841 MB / 493.4 MB, free: 15.17 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4723, allocations: 0 / 493.4 MB, free: 15.17 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003746/0.4761, allocations: 0.8329 MB / 494.2 MB, free: 14.34 MB / 414.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.003439/0.4795, allocations: 3.434 MB / 497.6 MB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005171/0.4847, allocations: 3.8 MB / 0.4897 GB, free: 7.102 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4848, allocations: 256 / 0.4897 GB, free: 7.102 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008344/0.4856, allocations: 0.718 MB / 0.4904 GB, free: 6.383 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001614/0.4872, allocations: 260 kB / 0.4906 GB, free: 6.133 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1958/0.683, allocations: 36.89 MB / 0.5266 GB, free: 151.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00273/0.6858, allocations: 2.391 MB / 0.529 GB, free: 150.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005996/0.6918, allocations: 1.632 MB / 0.5306 GB, free: 150.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002132/0.694, allocations: 1.217 MB / 0.5318 GB, free: 150.2 MB / 446.1 MB Notification: Performance of SimCode: time 9.71e-07/0.694, allocations: 3.344 kB / 0.5318 GB, free: 150.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08415/0.7782, allocations: 46.66 MB / 0.5773 GB, free: 114.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.1/10.88, allocations: 7.766 kB / 0.5773 GB, free: 114.3 MB / 446.1 MB (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 --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) 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) Reference file matches