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.001262/0.001262, allocations: 105.7 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 209.7 kB / 18.14 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 70.66 kB / 306.4 MB, free: 0.9453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08664/0.08781, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1598/0.2476, allocations: 28.76 MB / 385.7 MB, free: 5.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.2579, allocations: 5.923 MB / 391.6 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003779/0.2617, allocations: 114.4 kB / 391.7 MB, free: 1.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002413/0.2641, allocations: 1.409 MB / 393.1 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001875/0.266, allocations: 0.9237 MB / 394 MB, free: 368 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005073/0.2665, allocations: 238.5 kB / 394.3 MB, free: 236 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002992/0.2695, allocations: 3.272 MB / 397.5 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001604/0.2712, allocations: 1.533 MB / 399.1 MB, free: 14.28 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007478/0.2719, allocations: 0.7213 MB / 399.8 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001366/0.2733, allocations: 1.295 MB / 401.1 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002148/0.2735, allocations: 113.7 kB / 401.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00109/0.2746, allocations: 0.6552 MB / 401.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008052/0.2754, allocations: 1.128 MB / 403 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009986/0.2764, allocations: 1.334 MB / 404.3 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003187/0.2796, allocations: 4.051 MB / 408.4 MB, free: 8.203 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2797, allocations: 4 kB / 408.4 MB, free: 8.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2797, allocations: 4 kB / 408.4 MB, free: 8.195 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.701e-05/0.2797, allocations: 0 / 408.4 MB, free: 8.195 MB / 318.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.003649/0.2834, allocations: 2.922 MB / 411.3 MB, free: 5.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.2834, allocations: 8.031 kB / 411.3 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000524/0.284, allocations: 0.5337 MB / 411.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006296/0.2903, allocations: 1.776 MB / 413.6 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00158/0.2919, allocations: 1.15 MB / 414.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.292, allocations: 163.8 kB / 414.9 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003125/0.2923, allocations: 203.8 kB / 415.1 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01596/0.3083, allocations: 8.608 MB / 423.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-05/0.3084, allocations: 43.59 kB / 423.8 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002587/0.3086, allocations: 103.9 kB / 423.9 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002591/0.3112, allocations: 1.659 MB / 425.5 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01592/0.3272, allocations: 7.189 MB / 432.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03084/0.358, allocations: 30.18 MB / 462.9 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02219/0.3802, allocations: 5.052 MB / 467.9 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00148/0.3817, allocations: 1.243 MB / 469.2 MB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004688/0.3864, allocations: 3.836 MB / 473 MB, free: 5.539 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.3865, allocations: 42.89 kB / 473.1 MB, free: 5.488 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 3.306e-06/0.3865, allocations: 3.938 kB / 473.1 MB, free: 5.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04468/0.4312, allocations: 9.286 MB / 482.4 MB, free: 12.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.473e-05/0.4313, allocations: 195.9 kB / 482.5 MB, free: 11.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004092/0.4354, allocations: 3.027 MB / 485.6 MB, free: 8.828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.189e-05/0.4355, allocations: 41.7 kB / 485.6 MB, free: 8.781 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001545/0.437, allocations: 2.418 MB / 488 MB, free: 6.324 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004327/0.4375, allocations: 0.498 MB / 488.5 MB, free: 5.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001302/0.4388, allocations: 1.083 MB / 489.6 MB, free: 4.727 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.863e-05/0.4389, allocations: 301.1 kB / 489.9 MB, free: 4.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002307/0.4412, allocations: 1.611 MB / 491.5 MB, free: 2.812 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004232/0.4454, allocations: 5.169 MB / 496.7 MB, free: 11.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007012/0.4525, allocations: 7.337 MB / 0.4922 GB, free: 2.723 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.229e-05/0.4526, allocations: 43.94 kB / 0.4922 GB, free: 2.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009083/0.4616, allocations: 6.44 MB / 0.4985 GB, free: 12.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.74e-05/0.4617, allocations: 63.94 kB / 0.4986 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001317/0.4619, allocations: 128 kB / 0.4987 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001409/0.462, allocations: 164.8 kB / 0.4989 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004618/0.4667, allocations: 1.462 MB / 0.5003 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002236/0.4669, allocations: 251 kB / 0.5005 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003543/0.4704, allocations: 0.7421 MB / 0.5013 GB, free: 9.426 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005575/0.471, allocations: 349.5 kB / 0.5016 GB, free: 9.086 MB / 430.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.002565/0.4736, allocations: 1.58 MB / 0.5031 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005139/0.4741, allocations: 248.8 kB / 0.5034 GB, free: 7.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005791/0.4747, allocations: 315.3 kB / 0.5037 GB, free: 6.941 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.577e-05/0.4747, allocations: 12 kB / 0.5037 GB, free: 6.93 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.678e-05/0.4748, allocations: 7.938 kB / 0.5037 GB, free: 6.922 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.4748, allocations: 7.922 kB / 0.5037 GB, free: 6.914 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005849/0.4806, allocations: 3.399 MB / 0.507 GB, free: 3.453 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.4807, allocations: 0 / 0.507 GB, free: 3.453 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002322/0.483, allocations: 415.4 kB / 0.5074 GB, free: 3.047 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.483, allocations: 4 kB / 0.5074 GB, free: 3.043 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-05/0.4831, allocations: 35.97 kB / 0.5075 GB, free: 3.008 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.566e-06/0.4831, allocations: 4 kB / 0.5075 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4831, allocations: 0 / 0.5075 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003179/0.4863, allocations: 2.795 MB / 0.5102 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004779/0.4868, allocations: 305.8 kB / 0.5105 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003002/0.4871, allocations: 32.36 kB / 0.5105 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008684/0.488, allocations: 43.95 kB / 0.5106 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.4881, allocations: 63.86 kB / 0.5106 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.232e-05/0.4882, allocations: 35.97 kB / 0.5107 GB, free: 15.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002272/0.4905, allocations: 1.836 MB / 0.5125 GB, free: 13.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4905, allocations: 4 kB / 0.5125 GB, free: 13.85 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003152/0.4937, allocations: 0.8143 MB / 0.5132 GB, free: 13.04 MB / 446.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.00338/0.497, allocations: 3.444 MB / 0.5166 GB, free: 9.559 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004547/0.5016, allocations: 3.609 MB / 0.5201 GB, free: 5.973 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5016, allocations: 0 / 0.5201 GB, free: 5.973 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008406/0.5025, allocations: 0.7234 MB / 0.5208 GB, free: 5.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/0.5038, allocations: 257.4 kB / 0.5211 GB, free: 5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1889/0.6928, allocations: 38.08 MB / 0.5583 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001742/0.6945, allocations: 2.392 MB / 0.5606 GB, free: 101 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003177/0.6977, allocations: 1.639 MB / 0.5622 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/0.6989, allocations: 1.215 MB / 0.5634 GB, free: 99.66 MB / 446.1 MB Notification: Performance of SimCode: time 4.61e-07/0.6989, allocations: 1.641 kB / 0.5634 GB, free: 99.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04857/0.7474, allocations: 45.62 MB / 0.608 GB, free: 55.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001297/0.7476, allocations: 236.3 kB / 0.6082 GB, free: 54.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.09/3.838, allocations: 4 kB / 0.6082 GB, free: 54.84 MB / 446.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