Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0008811/0.0008811, allocations: 91.86 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 174.7 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 223.3 MB / 241.6 MB, free: 100 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003266/0.0003267, allocations: 8 kB / 301.5 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1144, allocations: 50.4 MB / 351.9 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2886/0.4031, allocations: 28.08 MB / 380 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01833/0.4214, allocations: 5.896 MB / 385.9 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006824/0.4283, allocations: 113.9 kB / 386 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001204/0.4295, allocations: 300.4 kB / 386.3 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003207/0.4328, allocations: 0.9421 MB / 387.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008744/0.4337, allocations: 237.7 kB / 387.5 MB, free: 7.078 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005441/0.4391, allocations: 3.305 MB / 390.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003244/0.4424, allocations: 2.031 MB / 392.8 MB, free: 5.395 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001404/0.4438, allocations: 0.6595 MB / 393.5 MB, free: 5.078 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001789/0.4456, allocations: 1.216 MB / 394.7 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002496/0.4458, allocations: 86.22 kB / 394.8 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001412/0.4473, allocations: 0.6311 MB / 395.4 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001069/0.4483, allocations: 1.116 MB / 396.5 MB, free: 3.625 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001049/0.4494, allocations: 1.326 MB / 397.9 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004079/0.4535, allocations: 3.998 MB / 401.9 MB, free: 40 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4535, allocations: 0 / 401.9 MB, free: 40 kB / 302.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.4535, allocations: 0 / 401.9 MB, free: 40 kB / 302.1 MB Notification: Performance of Transformations before backend: time 7.486e-05/0.4536, allocations: 0 / 401.9 MB, free: 40 kB / 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.004264/0.4579, allocations: 2.412 MB / 404.3 MB, free: 14.24 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.4579, allocations: 9.656 kB / 404.3 MB, free: 14.24 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006131/0.4586, allocations: 0.5254 MB / 404.8 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006942/0.4655, allocations: 1.823 MB / 406.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002401/0.468, allocations: 1.163 MB / 407.8 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.4681, allocations: 154.8 kB / 407.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003971/0.4685, allocations: 206 kB / 408.1 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02141/0.4899, allocations: 8.617 MB / 416.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002009/0.4902, allocations: 35.66 kB / 416.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008066/0.491, allocations: 107.2 kB / 416.9 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003289/0.4943, allocations: 1.661 MB / 418.6 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02037/0.5147, allocations: 7.195 MB / 425.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04543/0.5602, allocations: 30.19 MB / 456 MB, free: 9.973 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02369/0.5839, allocations: 5.115 MB / 461.1 MB, free: 4.684 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/0.5858, allocations: 1.244 MB / 462.3 MB, free: 3.418 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006754/0.5926, allocations: 3.737 MB / 466 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.5927, allocations: 46.83 kB / 466.1 MB, free: 15.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 3.677e-06/0.5927, allocations: 4 kB / 466.1 MB, free: 15.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04754/0.6403, allocations: 9.386 MB / 475.5 MB, free: 6.012 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.6404, allocations: 191.9 kB / 475.7 MB, free: 5.781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006643/0.6471, allocations: 3.039 MB / 478.7 MB, free: 2.723 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002367/0.6473, allocations: 41.7 kB / 478.8 MB, free: 2.676 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002209/0.6496, allocations: 2.426 MB / 481.2 MB, free: 260 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008615/0.6504, allocations: 0.4928 MB / 481.7 MB, free: 15.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009766/0.6514, allocations: 465.8 kB / 482.1 MB, free: 15.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.6516, allocations: 301.1 kB / 482.4 MB, free: 15.01 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003079/0.6547, allocations: 1.603 MB / 484 MB, free: 13.4 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005842/0.6605, allocations: 5.169 MB / 489.2 MB, free: 6.426 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009683/0.6702, allocations: 7.328 MB / 496.5 MB, free: 13.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001796/0.6704, allocations: 36 kB / 496.6 MB, free: 13.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01435/0.6848, allocations: 6.44 MB / 0.4912 GB, free: 6.836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001956/0.6851, allocations: 60 kB / 0.4913 GB, free: 6.777 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002947/0.6854, allocations: 127.9 kB / 0.4914 GB, free: 6.652 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002485/0.6856, allocations: 168 kB / 0.4915 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005388/0.691, allocations: 1.454 MB / 0.493 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002299/0.6913, allocations: 247.6 kB / 0.4932 GB, free: 4.789 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004887/0.6962, allocations: 0.7606 MB / 0.4939 GB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009068/0.6971, allocations: 340 kB / 0.4943 GB, free: 3.691 MB / 414.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.003451/0.7006, allocations: 1.575 MB / 0.4958 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006566/0.7012, allocations: 244.8 kB / 0.496 GB, free: 1.863 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001845/0.7031, allocations: 0.8369 MB / 0.4969 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.595e-05/0.7031, allocations: 12 kB / 0.4969 GB, free: 1.008 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/0.7032, allocations: 7.938 kB / 0.4969 GB, free: 1 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/0.7032, allocations: 3.984 kB / 0.4969 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008256/0.7114, allocations: 3.389 MB / 0.5002 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/0.7115, allocations: 8 kB / 0.5002 GB, free: 13.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00238/0.7139, allocations: 407.4 kB / 0.5006 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.733e-05/0.7139, allocations: 4 kB / 0.5006 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001665/0.7141, allocations: 43.09 kB / 0.5006 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.324e-05/0.7141, allocations: 7.938 kB / 0.5006 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.7141, allocations: 3.938 kB / 0.5006 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004313/0.7185, allocations: 2.778 MB / 0.5034 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/0.7196, allocations: 313.5 kB / 0.5037 GB, free: 9.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007356/0.7203, allocations: 27.98 kB / 0.5037 GB, free: 9.953 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001532/0.7219, allocations: 44.33 kB / 0.5037 GB, free: 9.91 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.7221, allocations: 55.92 kB / 0.5038 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.7222, allocations: 39.97 kB / 0.5038 GB, free: 9.816 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003822/0.726, allocations: 1.841 MB / 0.5056 GB, free: 7.973 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.726, allocations: 3.938 kB / 0.5056 GB, free: 7.969 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005102/0.7312, allocations: 0.8324 MB / 0.5064 GB, free: 7.137 MB / 430.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.00461/0.7358, allocations: 3.433 MB / 0.5098 GB, free: 3.676 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006864/0.7427, allocations: 3.593 MB / 0.5133 GB, free: 108 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.7427, allocations: 0 / 0.5133 GB, free: 108 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.7437, allocations: 0.7131 MB / 0.514 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003065/0.7468, allocations: 253.3 kB / 0.5142 GB, free: 15.15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3253/1.072, allocations: 38.46 MB / 0.5518 GB, free: 111.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002405/1.075, allocations: 2.39 MB / 0.5541 GB, free: 110.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003889/1.078, allocations: 1.638 MB / 0.5557 GB, free: 110.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001297/1.08, allocations: 1.217 MB / 0.5569 GB, free: 109.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.182e-06/1.08, allocations: 0 / 0.5569 GB, free: 109.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06622/1.146, allocations: 45.43 MB / 0.6013 GB, free: 67.73 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002565/1.146, allocations: 239.4 kB / 0.6015 GB, free: 67.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.341/4.487, allocations: 0 / 0.6015 GB, free: 67.48 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches