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.001181/0.001181, allocations: 88.33 kB / 20.67 MB, free: 3.875 MB / 18.57 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.001304/0.001304, allocations: 160.9 kB / 23.95 MB, free: 0.5977 MB / 18.57 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 0.8662/0.8662, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.059e-05/2.24e-05, allocations: 3.266 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006238/0.006261, allocations: 7.042 MB / 331.6 MB, free: 8.824 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004005/0.01027, allocations: 2.446 MB / 334 MB, free: 6.367 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003973/0.01066, allocations: 39.81 kB / 334 MB, free: 6.328 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001561/0.01222, allocations: 1.464 MB / 335.5 MB, free: 4.855 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0012/0.01342, allocations: 1.049 MB / 336.6 MB, free: 3.801 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00036/0.01378, allocations: 275.3 kB / 336.8 MB, free: 3.531 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001333/0.01512, allocations: 2.21 MB / 339 MB, free: 1.316 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009828/0.0161, allocations: 1.352 MB / 340.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007408/0.01684, allocations: 1.227 MB / 341.6 MB, free: 14.71 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008355/0.01768, allocations: 1.2 MB / 342.8 MB, free: 13.51 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.01781, allocations: 160 kB / 343 MB, free: 13.35 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006047/0.01842, allocations: 0.616 MB / 343.6 MB, free: 12.74 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005908/0.01901, allocations: 1.223 MB / 344.8 MB, free: 11.51 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004291/0.01944, allocations: 0.724 MB / 345.5 MB, free: 10.79 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002359/0.02179, allocations: 4.2 MB / 349.7 MB, free: 6.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.0218, allocations: 0 / 349.7 MB, free: 6.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.0218, allocations: 0 / 349.7 MB, free: 6.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.067e-05/0.02182, allocations: 0 / 349.7 MB, free: 6.57 MB / 314.7 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.002352/0.02417, allocations: 2.899 MB / 352.6 MB, free: 3.621 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.02421, allocations: 11.98 kB / 352.6 MB, free: 3.609 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003603/0.02457, allocations: 0.5221 MB / 353.2 MB, free: 3.074 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003512/0.02808, allocations: 1.945 MB / 355.1 MB, free: 1.125 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.02925, allocations: 1.113 MB / 356.2 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.013e-05/0.02932, allocations: 159.7 kB / 356.4 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002278/0.02954, allocations: 207.8 kB / 356.6 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008446/0.03799, allocations: 8.238 MB / 364.8 MB, free: 6.773 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.533e-05/0.03806, allocations: 47.69 kB / 364.9 MB, free: 6.727 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001833/0.03824, allocations: 99.88 kB / 365 MB, free: 6.629 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001407/0.03965, allocations: 1.558 MB / 366.5 MB, free: 5.066 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008724/0.04837, allocations: 6.781 MB / 373.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01798/0.06635, allocations: 28.17 MB / 401.5 MB, free: 1.219 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009172/0.07552, allocations: 4.47 MB / 405.9 MB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007702/0.07629, allocations: 0.8289 MB / 406.8 MB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002846/0.07914, allocations: 2.655 MB / 409.4 MB, free: 9.152 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.07917, allocations: 50.77 kB / 409.5 MB, free: 9.094 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 3.036e-06/0.07917, allocations: 0 / 409.5 MB, free: 9.094 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.01769/0.09686, allocations: 8.488 MB / 418 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/0.09693, allocations: 191.9 kB / 418.2 MB, free: 372 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002821/0.09975, allocations: 3.248 MB / 421.4 MB, free: 13.09 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/0.0998, allocations: 45.64 kB / 421.4 MB, free: 13.04 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009954/0.1008, allocations: 2.5 MB / 423.9 MB, free: 10.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002683/0.1011, allocations: 0.5042 MB / 424.5 MB, free: 10.01 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007947/0.1019, allocations: 1.064 MB / 425.5 MB, free: 8.934 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.71e-05/0.1019, allocations: 305.1 kB / 425.8 MB, free: 8.633 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.1033, allocations: 1.486 MB / 427.3 MB, free: 7.141 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002806/0.1062, allocations: 5.044 MB / 432.3 MB, free: 300 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004533/0.1107, allocations: 7.084 MB / 439.4 MB, free: 7.426 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.27e-05/0.1107, allocations: 40 kB / 439.5 MB, free: 7.387 MB / 410.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.005655/0.1164, allocations: 6.193 MB / 445.7 MB, free: 1.188 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.894e-05/0.1164, allocations: 60 kB / 445.7 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.979e-05/0.1165, allocations: 132.9 kB / 445.9 MB, free: 1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.271e-05/0.1166, allocations: 171.9 kB / 446 MB, free: 0.832 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1486/0.2652, allocations: 1.455 MB / 447.5 MB, free: 111 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002167/0.2654, allocations: 255.1 kB / 447.7 MB, free: 111 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002407/0.2678, allocations: 0.7663 MB / 448.5 MB, free: 111 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000351/0.2682, allocations: 341 kB / 448.8 MB, free: 111 MB / 410.7 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.00156/0.2697, allocations: 1.575 MB / 450.4 MB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/0.27, allocations: 260.5 kB / 450.7 MB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002735/0.2702, allocations: 319.2 kB / 451 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-05/0.2703, allocations: 15.88 kB / 451 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.2703, allocations: 0 / 451 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.2703, allocations: 8.078 kB / 451 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002924/0.2732, allocations: 2.975 MB / 454 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.2732, allocations: 6.406 kB / 454 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.2742, allocations: 411.4 kB / 454.4 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.2742, allocations: 3.5 kB / 454.4 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.533e-05/0.2743, allocations: 29.06 kB / 454.4 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.2743, allocations: 5.625 kB / 454.4 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2743, allocations: 5.562 kB / 454.4 MB, free: 109.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.2759, allocations: 2.502 MB / 456.9 MB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.276, allocations: 237.4 kB / 457.1 MB, free: 108.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001387/0.2762, allocations: 35.22 kB / 457.2 MB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004239/0.2766, allocations: 47.02 kB / 457.2 MB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.759e-05/0.2767, allocations: 55.55 kB / 457.3 MB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.522e-05/0.2767, allocations: 32.45 kB / 457.3 MB, free: 108.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00119/0.2779, allocations: 1.84 MB / 459.2 MB, free: 107.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2779, allocations: 0 / 459.2 MB, free: 107.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001897/0.2798, allocations: 0.8194 MB / 460 MB, free: 107.3 MB / 410.7 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.001704/0.2815, allocations: 3.148 MB / 463.1 MB, free: 104.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002345/0.2838, allocations: 3.235 MB / 466.4 MB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.2838, allocations: 0 / 466.4 MB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000382/0.2842, allocations: 0.5585 MB / 466.9 MB, free: 101.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008915/0.2851, allocations: 262.2 kB / 467.2 MB, free: 101.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01846/0.3036, allocations: 33.07 MB / 0.4885 GB, free: 63.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.3047, allocations: 1.825 MB / 0.4903 GB, free: 61.78 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001717/0.3064, allocations: 1.633 MB / 0.4919 GB, free: 60.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007189/0.3071, allocations: 1.203 MB / 0.4931 GB, free: 58.94 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/0.3071, allocations: 0 / 0.4931 GB, free: 58.94 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04376/0.3509, allocations: 42.73 MB / 0.5348 GB, free: 16.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.553/8.904, allocations: 7.797 kB / 0.5348 GB, free: 16.79 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/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: 10.798966805450618]