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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00176/0.00176, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.77 kB / 307.1 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07879/0.08002, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.007086/0.08714, allocations: 7.931 MB / 365.5 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003262/0.09041, allocations: 2.57 MB / 368.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002979/0.09072, allocations: 35.94 kB / 368.1 MB, free: 3.418 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0021/0.09283, allocations: 1.44 MB / 369.6 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001326/0.09418, allocations: 0.9879 MB / 370.5 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004117/0.0946, allocations: 263.5 kB / 370.8 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1253/0.2199, allocations: 2.144 MB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001587/0.2216, allocations: 1.549 MB / 374.5 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007648/0.2223, allocations: 0.8255 MB / 375.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001065/0.2234, allocations: 1.184 MB / 376.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002435/0.2237, allocations: 159.6 kB / 376.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001018/0.2247, allocations: 0.6666 MB / 377.3 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007743/0.2255, allocations: 1.151 MB / 378.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007752/0.2263, allocations: 1.36 MB / 379.8 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003137/0.2294, allocations: 4.077 MB / 383.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2294, allocations: 0.9375 kB / 383.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2294, allocations: 0 / 383.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.069e-05/0.2295, allocations: 4 kB / 383.9 MB, free: 7.422 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.003212/0.2327, allocations: 2.925 MB / 386.8 MB, free: 5.676 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.2327, allocations: 10.09 kB / 386.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004385/0.2332, allocations: 0.5246 MB / 387.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005838/0.239, allocations: 1.778 MB / 389.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/0.2404, allocations: 1.149 MB / 390.3 MB, free: 4.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.289e-05/0.2405, allocations: 158.3 kB / 390.5 MB, free: 4.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003004/0.2408, allocations: 206.6 kB / 390.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0132/0.254, allocations: 8.612 MB / 399.3 MB, free: 14.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.343e-05/0.2541, allocations: 40.25 kB / 399.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002392/0.2543, allocations: 99.09 kB / 399.4 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002421/0.2568, allocations: 1.678 MB / 401.1 MB, free: 13.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01389/0.2707, allocations: 7.177 MB / 408.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02437/0.295, allocations: 30.17 MB / 438.4 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02014/0.3152, allocations: 5.065 MB / 443.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/0.3168, allocations: 1.24 MB / 444.7 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003993/0.3208, allocations: 3.826 MB / 448.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.3208, allocations: 50.83 kB / 448.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 2.995e-06/0.3209, allocations: 0 / 448.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04084/0.3617, allocations: 9.283 MB / 457.9 MB, free: 3.512 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.747e-05/0.3618, allocations: 191.9 kB / 458.1 MB, free: 3.281 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003006/0.3648, allocations: 3.03 MB / 461.1 MB, free: 236 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.218e-05/0.3649, allocations: 41.7 kB / 461.2 MB, free: 188 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001289/0.3662, allocations: 2.435 MB / 463.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003266/0.3665, allocations: 0.4916 MB / 464.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/0.3676, allocations: 1.095 MB / 465.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.784e-05/0.3676, allocations: 308.1 kB / 465.5 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001873/0.3695, allocations: 1.599 MB / 467.1 MB, free: 10.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003569/0.3731, allocations: 5.171 MB / 472.3 MB, free: 3.336 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005981/0.3791, allocations: 7.349 MB / 479.6 MB, free: 10.22 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.786e-05/0.3792, allocations: 36 kB / 479.6 MB, free: 10.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007657/0.3868, allocations: 6.441 MB / 486.1 MB, free: 3.742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.716e-05/0.3869, allocations: 56 kB / 486.1 MB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.569e-05/0.387, allocations: 128 kB / 486.3 MB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001191/0.3871, allocations: 168.4 kB / 486.4 MB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003872/0.391, allocations: 1.455 MB / 487.9 MB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001402/0.3911, allocations: 247 kB / 488.1 MB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002483/0.3936, allocations: 0.7568 MB / 488.9 MB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003129/0.3939, allocations: 347.9 kB / 489.2 MB, free: 0.5977 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.001566/0.3955, allocations: 1.576 MB / 490.8 MB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003019/0.3958, allocations: 252.7 kB / 491 MB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003927/0.3962, allocations: 315.3 kB / 491.4 MB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/0.3963, allocations: 16 kB / 491.4 MB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.3963, allocations: 0 / 491.4 MB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.3963, allocations: 11.92 kB / 491.4 MB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004274/0.4006, allocations: 3.395 MB / 494.8 MB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.4006, allocations: 8 kB / 494.8 MB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002034/0.4026, allocations: 407.5 kB / 495.2 MB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.4026, allocations: 7.938 kB / 495.2 MB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.17e-05/0.4027, allocations: 35.97 kB / 495.2 MB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.4027, allocations: 4 kB / 495.2 MB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.4027, allocations: 4.781 kB / 495.2 MB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00264/0.4054, allocations: 2.801 MB / 498 MB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002575/0.4056, allocations: 305.6 kB / 498.3 MB, free: 7.398 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/0.4059, allocations: 27.98 kB / 498.4 MB, free: 7.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007659/0.4067, allocations: 39.95 kB / 498.4 MB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.4068, allocations: 59.86 kB / 498.5 MB, free: 7.273 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.479e-05/0.4068, allocations: 42.62 kB / 498.5 MB, free: 7.234 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001857/0.4087, allocations: 1.833 MB / 0.4886 GB, free: 5.398 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4087, allocations: 0 / 0.4886 GB, free: 5.398 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002734/0.4115, allocations: 0.8182 MB / 0.4894 GB, free: 4.578 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.003021/0.4145, allocations: 3.437 MB / 0.4928 GB, free: 1.105 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004027/0.4185, allocations: 3.807 MB / 0.4965 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4185, allocations: 3.938 kB / 0.4965 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007558/0.4193, allocations: 0.7196 MB / 0.4972 GB, free: 12.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001262/0.4206, allocations: 260.9 kB / 0.4974 GB, free: 12.35 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0312/0.4518, allocations: 36.88 MB / 0.5334 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1055/0.5573, allocations: 2.388 MB / 0.5358 GB, free: 163.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003489/0.5608, allocations: 1.632 MB / 0.5374 GB, free: 163.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001169/0.562, allocations: 1.214 MB / 0.5386 GB, free: 163.7 MB / 462.1 MB Notification: Performance of SimCode: time 6.22e-07/0.562, allocations: 0 / 0.5386 GB, free: 163.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.401/1.963, allocations: 46.52 MB / 0.584 GB, free: 131.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/12.38, allocations: 15.23 kB / 0.584 GB, free: 131.6 MB / 462.1 MB (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 --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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches