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.001071/0.001071, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001137/0.001137, allocations: 198 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3264, allocations: 50.54 MB / 408.8 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01081/0.3373, allocations: 7.942 MB / 416.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005507/0.3428, allocations: 2.559 MB / 419.3 MB, free: 7.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001065/0.3439, allocations: 35.94 kB / 419.3 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003568/0.3475, allocations: 1.444 MB / 420.7 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003129/0.3507, allocations: 0.9762 MB / 421.7 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007847/0.3515, allocations: 263.5 kB / 422 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003545/0.3551, allocations: 2.153 MB / 424.1 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002778/0.3579, allocations: 1.557 MB / 425.7 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001429/0.3593, allocations: 0.8328 MB / 426.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002509/0.3618, allocations: 1.179 MB / 427.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005682/0.3624, allocations: 160 kB / 427.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002148/0.3646, allocations: 0.6669 MB / 428.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00128/0.3659, allocations: 1.157 MB / 429.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00178/0.3677, allocations: 1.355 MB / 431 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004686/0.3724, allocations: 4.269 MB / 435.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3724, allocations: 0 / 435.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3724, allocations: 0 / 435.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.424e-05/0.3724, allocations: 0 / 435.3 MB, free: 6.898 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.004449/0.3769, allocations: 2.933 MB / 438.2 MB, free: 3.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.377, allocations: 8.031 kB / 438.2 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001164/0.3781, allocations: 0.5338 MB / 438.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006443/0.3846, allocations: 1.767 MB / 440.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/0.3865, allocations: 1.165 MB / 441.7 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.3866, allocations: 147.8 kB / 441.8 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009577/0.3876, allocations: 207.8 kB / 442.1 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01798/0.4056, allocations: 8.611 MB / 450.7 MB, free: 6.801 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.656e-05/0.4057, allocations: 43.66 kB / 450.7 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002612/0.406, allocations: 95.89 kB / 450.8 MB, free: 6.664 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002964/0.409, allocations: 1.675 MB / 452.5 MB, free: 4.992 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01713/0.4261, allocations: 7.186 MB / 459.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0365/0.4626, allocations: 30.08 MB / 489.7 MB, free: 14.83 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02426/0.487, allocations: 5.057 MB / 494.8 MB, free: 9.598 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001829/0.4889, allocations: 1.251 MB / 496.1 MB, free: 8.324 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006203/0.4951, allocations: 3.836 MB / 499.9 MB, free: 4.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.4952, allocations: 46.83 kB / 499.9 MB, free: 4.266 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.858e-06/0.4952, allocations: 0 / 499.9 MB, free: 4.266 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04767/0.5429, allocations: 9.279 MB / 0.4973 GB, free: 10.9 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.5431, allocations: 187.9 kB / 0.4975 GB, free: 10.67 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005422/0.5485, allocations: 3.038 MB / 0.5004 GB, free: 7.613 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.5487, allocations: 41.7 kB / 0.5005 GB, free: 7.566 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00155/0.5503, allocations: 2.429 MB / 0.5028 GB, free: 5.098 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000571/0.5509, allocations: 0.4903 MB / 0.5033 GB, free: 4.602 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00119/0.5521, allocations: 1.079 MB / 0.5044 GB, free: 3.512 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.869e-05/0.5522, allocations: 305.1 kB / 0.5047 GB, free: 3.211 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002471/0.5547, allocations: 1.611 MB / 0.5062 GB, free: 1.594 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00472/0.5594, allocations: 5.173 MB / 0.5113 GB, free: 10.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008266/0.5677, allocations: 7.336 MB / 0.5184 GB, free: 1.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.316e-05/0.5678, allocations: 36 kB / 0.5185 GB, free: 1.465 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009462/0.5772, allocations: 6.441 MB / 0.5248 GB, free: 11.02 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.308e-05/0.5773, allocations: 60.22 kB / 0.5248 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001194/0.5775, allocations: 132 kB / 0.525 GB, free: 10.83 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001503/0.5776, allocations: 168 kB / 0.5251 GB, free: 10.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004686/0.5823, allocations: 1.462 MB / 0.5265 GB, free: 9.199 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001718/0.5825, allocations: 251 kB / 0.5268 GB, free: 8.953 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003159/0.5857, allocations: 0.746 MB / 0.5275 GB, free: 8.199 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000362/0.586, allocations: 344 kB / 0.5278 GB, free: 7.863 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.002579/0.5886, allocations: 1.575 MB / 0.5294 GB, free: 6.273 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004061/0.589, allocations: 248.7 kB / 0.5296 GB, free: 6.027 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000487/0.5895, allocations: 315.3 kB / 0.5299 GB, free: 5.719 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.272e-05/0.5896, allocations: 15.94 kB / 0.5299 GB, free: 5.703 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.5896, allocations: 0 / 0.5299 GB, free: 5.703 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.5896, allocations: 7.984 kB / 0.5299 GB, free: 5.695 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005386/0.595, allocations: 3.4 MB / 0.5333 GB, free: 2.238 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.595, allocations: 0 / 0.5333 GB, free: 2.238 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002503/0.5975, allocations: 411.5 kB / 0.5337 GB, free: 1.836 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-06/0.5975, allocations: 4 kB / 0.5337 GB, free: 1.832 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.944e-05/0.5976, allocations: 31.97 kB / 0.5337 GB, free: 1.801 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.5976, allocations: 7.938 kB / 0.5337 GB, free: 1.793 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.5976, allocations: 7.984 kB / 0.5337 GB, free: 1.785 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2475/0.8451, allocations: 2.801 MB / 0.5364 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006438/0.8458, allocations: 301.9 kB / 0.5367 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002965/0.8461, allocations: 27.5 kB / 0.5367 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009821/0.8471, allocations: 44.69 kB / 0.5368 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000371/0.8475, allocations: 55.06 kB / 0.5368 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002696/0.8478, allocations: 40.78 kB / 0.5369 GB, free: 123.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00274/0.8506, allocations: 1.844 MB / 0.5387 GB, free: 123 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.8506, allocations: 0 / 0.5387 GB, free: 123 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003973/0.8545, allocations: 0.8094 MB / 0.5395 GB, free: 122.9 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.003382/0.858, allocations: 3.439 MB / 0.5428 GB, free: 121.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005895/0.8639, allocations: 3.62 MB / 0.5464 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.8639, allocations: 0 / 0.5464 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00072/0.8646, allocations: 0.7216 MB / 0.5471 GB, free: 119.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/0.8666, allocations: 266.2 kB / 0.5473 GB, free: 119.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03549/0.9021, allocations: 34.17 MB / 0.5807 GB, free: 83.71 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001715/0.9039, allocations: 2.386 MB / 0.583 GB, free: 81.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003262/0.9072, allocations: 1.637 MB / 0.5846 GB, free: 79.65 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001626/0.9088, allocations: 1.21 MB / 0.5858 GB, free: 78.44 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.9088, allocations: 0 / 0.5858 GB, free: 78.44 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3384/1.247, allocations: 43.91 MB / 0.6287 GB, free: 34.87 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.1/17.35, allocations: 7.797 kB / 0.6287 GB, free: 34.86 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