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.001199/0.001199, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001234/0.001234, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 63.91 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09931/0.1006, allocations: 50.52 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01016/0.1108, allocations: 7.93 MB / 365.5 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006912/0.1178, allocations: 2.574 MB / 368.1 MB, free: 3.426 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.1189, allocations: 35.94 kB / 368.1 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003152/0.1221, allocations: 1.436 MB / 369.6 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002533/0.1247, allocations: 0.9879 MB / 370.5 MB, free: 0.957 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007869/0.1255, allocations: 263.4 kB / 370.8 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.187/0.3125, allocations: 2.148 MB / 372.9 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002792/0.3153, allocations: 1.549 MB / 374.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001579/0.3169, allocations: 0.8319 MB / 375.3 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00203/0.319, allocations: 1.182 MB / 376.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006206/0.3196, allocations: 160.2 kB / 376.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001705/0.3214, allocations: 0.6659 MB / 377.3 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00152/0.3229, allocations: 1.147 MB / 378.5 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001852/0.3248, allocations: 1.361 MB / 379.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005118/0.3299, allocations: 4.079 MB / 383.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.3299, allocations: 1.312 kB / 383.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3299, allocations: 1.031 kB / 383.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001696/0.3301, allocations: 4 kB / 383.9 MB, free: 7.156 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.005869/0.336, allocations: 2.922 MB / 386.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.336, allocations: 9.562 kB / 386.9 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007286/0.3368, allocations: 0.5286 MB / 387.4 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007367/0.3441, allocations: 1.772 MB / 389.2 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002681/0.3469, allocations: 1.154 MB / 390.3 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.3471, allocations: 154.6 kB / 390.5 MB, free: 3.809 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009518/0.348, allocations: 207.3 kB / 390.7 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0173/0.3653, allocations: 8.611 MB / 399.3 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-05/0.3655, allocations: 44.97 kB / 399.3 MB, free: 14.74 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000283/0.3658, allocations: 99.23 kB / 399.4 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002813/0.3686, allocations: 1.672 MB / 401.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01794/0.3865, allocations: 7.178 MB / 408.3 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03115/0.4177, allocations: 30.18 MB / 438.4 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02308/0.4408, allocations: 5.061 MB / 443.5 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001601/0.4425, allocations: 1.241 MB / 444.7 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005217/0.4477, allocations: 3.838 MB / 448.6 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.4478, allocations: 46.83 kB / 448.6 MB, free: 12.69 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 3.116e-06/0.4478, allocations: 0 / 448.6 MB, free: 12.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04678/0.4946, allocations: 9.282 MB / 457.9 MB, free: 3.316 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.66e-05/0.4947, allocations: 191.9 kB / 458.1 MB, free: 3.086 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005304/0.5, allocations: 3.03 MB / 461.1 MB, free: 36 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002008/0.5002, allocations: 41.98 kB / 461.2 MB, free: 15.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001874/0.5021, allocations: 2.427 MB / 463.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008462/0.503, allocations: 0.4906 MB / 464.1 MB, free: 13.08 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002088/0.5051, allocations: 1.091 MB / 465.2 MB, free: 11.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.363e-05/0.5052, allocations: 301.1 kB / 465.5 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002381/0.5076, allocations: 1.603 MB / 467.1 MB, free: 10.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004188/0.5118, allocations: 5.17 MB / 472.2 MB, free: 3.109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007363/0.5192, allocations: 7.351 MB / 479.6 MB, free: 9.992 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-05/0.5193, allocations: 36 kB / 479.6 MB, free: 9.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0105/0.5298, allocations: 6.443 MB / 486.1 MB, free: 3.516 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.242e-05/0.5299, allocations: 60 kB / 486.1 MB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001427/0.5301, allocations: 128 kB / 486.3 MB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001585/0.5302, allocations: 168 kB / 486.4 MB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004869/0.5351, allocations: 1.455 MB / 487.9 MB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001767/0.5353, allocations: 255 kB / 488.1 MB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004272/0.5396, allocations: 0.7498 MB / 488.9 MB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007609/0.5404, allocations: 344 kB / 489.2 MB, free: 376 kB / 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.002811/0.5432, allocations: 1.572 MB / 490.8 MB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005204/0.5437, allocations: 248.7 kB / 491 MB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005154/0.5442, allocations: 319.3 kB / 491.3 MB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.718e-05/0.5443, allocations: 12 kB / 491.4 MB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/0.5443, allocations: 4 kB / 491.4 MB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.5443, allocations: 7.922 kB / 491.4 MB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006141/0.5505, allocations: 3.399 MB / 494.8 MB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.5505, allocations: 0 / 494.8 MB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002353/0.5529, allocations: 411.9 kB / 495.2 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-05/0.5529, allocations: 7.938 kB / 495.2 MB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.553, allocations: 35.97 kB / 495.2 MB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.116e-06/0.553, allocations: 7.938 kB / 495.2 MB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.553, allocations: 3.938 kB / 495.2 MB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003289/0.5563, allocations: 2.798 MB / 498 MB, free: 7.492 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005067/0.5568, allocations: 305.6 kB / 498.3 MB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002603/0.5571, allocations: 31.98 kB / 498.3 MB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000878/0.558, allocations: 39 kB / 498.4 MB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.5581, allocations: 59.92 kB / 498.4 MB, free: 7.047 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.841e-05/0.5582, allocations: 35.97 kB / 498.5 MB, free: 7.012 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002518/0.5607, allocations: 1.836 MB / 0.4886 GB, free: 5.172 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5608, allocations: 0 / 0.4886 GB, free: 5.172 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003896/0.5647, allocations: 0.8182 MB / 0.4894 GB, free: 4.352 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.003824/0.5685, allocations: 3.445 MB / 0.4928 GB, free: 0.875 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006014/0.5745, allocations: 3.799 MB / 0.4965 GB, free: 13.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.759e-06/0.5746, allocations: 1.688 kB / 0.4965 GB, free: 13.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.5756, allocations: 0.7233 MB / 0.4972 GB, free: 12.38 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/0.5781, allocations: 264.5 kB / 0.4974 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0489/0.627, allocations: 36.88 MB / 0.5334 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1553/0.7823, allocations: 2.379 MB / 0.5358 GB, free: 163.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004512/0.7869, allocations: 1.64 MB / 0.5374 GB, free: 163.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001668/0.7886, allocations: 1.212 MB / 0.5386 GB, free: 163.6 MB / 462.1 MB Notification: Performance of SimCode: time 8.42e-07/0.7886, allocations: 0 / 0.5386 GB, free: 163.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07594/0.8645, allocations: 46.53 MB / 0.584 GB, free: 131.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.676/9.54, allocations: 7.672 kB / 0.584 GB, free: 131.4 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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