Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_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.001578/0.001578, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.001587/0.001587, allocations: 187 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 59.91 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0938/0.09563, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1853/0.281, allocations: 7.957 MB / 382.6 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004352/0.2854, allocations: 2.554 MB / 385.2 MB, free: 7.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007325/0.2862, allocations: 35.47 kB / 385.2 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002627/0.2888, allocations: 1.428 MB / 386.6 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002337/0.2912, allocations: 0.9896 MB / 387.6 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006618/0.2918, allocations: 261.2 kB / 387.9 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002828/0.2947, allocations: 2.187 MB / 390.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001852/0.2966, allocations: 1.552 MB / 391.6 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001252/0.2978, allocations: 0.8381 MB / 392.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001599/0.2994, allocations: 1.184 MB / 393.6 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003801/0.2998, allocations: 158.9 kB / 393.8 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.3013, allocations: 0.658 MB / 394.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001239/0.3026, allocations: 1.153 MB / 395.6 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.3038, allocations: 1.381 MB / 397 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004529/0.3083, allocations: 4.33 MB / 401.3 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3084, allocations: 1.031 kB / 401.3 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3084, allocations: 0 / 401.3 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001184/0.3085, allocations: 0 / 401.3 MB, free: 0.5312 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.005958/0.3145, allocations: 3.044 MB / 404.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.939e-05/0.3146, allocations: 10.34 kB / 404.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009539/0.3155, allocations: 0.5238 MB / 404.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00701/0.3225, allocations: 1.796 MB / 406.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002499/0.3251, allocations: 1.162 MB / 407.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.3252, allocations: 151.5 kB / 408 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004344/0.3257, allocations: 205.3 kB / 408.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01906/0.3447, allocations: 8.603 MB / 416.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001149/0.3449, allocations: 47.62 kB / 416.9 MB, free: 4.867 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003532/0.3453, allocations: 103.9 kB / 417 MB, free: 4.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003092/0.3484, allocations: 1.667 MB / 418.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01856/0.3669, allocations: 7.164 MB / 425.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03706/0.404, allocations: 30.15 MB / 455.9 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02297/0.4271, allocations: 5.049 MB / 461 MB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001878/0.429, allocations: 1.24 MB / 462.2 MB, free: 6.422 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00657/0.4356, allocations: 3.75 MB / 466 MB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.859e-05/0.4357, allocations: 55.2 kB / 466 MB, free: 2.461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.278e-06/0.4357, allocations: 0 / 466 MB, free: 2.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04744/0.4831, allocations: 9.285 MB / 475.3 MB, free: 9.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.4833, allocations: 195.9 kB / 475.5 MB, free: 8.855 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005588/0.4889, allocations: 3.04 MB / 478.5 MB, free: 5.797 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002098/0.4891, allocations: 41.7 kB / 478.6 MB, free: 5.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002179/0.4913, allocations: 2.531 MB / 481.1 MB, free: 3.191 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007695/0.4921, allocations: 0.5158 MB / 481.6 MB, free: 2.672 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001914/0.494, allocations: 1.096 MB / 482.7 MB, free: 1.566 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.4942, allocations: 301.1 kB / 483 MB, free: 1.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002625/0.4968, allocations: 1.603 MB / 484.6 MB, free: 15.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005601/0.5024, allocations: 5.169 MB / 489.8 MB, free: 8.684 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00917/0.5116, allocations: 7.327 MB / 497.1 MB, free: 15.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001307/0.5118, allocations: 36 kB / 497.2 MB, free: 15.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01271/0.5245, allocations: 6.456 MB / 0.4918 GB, free: 9.074 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000189/0.5248, allocations: 60 kB / 0.4919 GB, free: 9.016 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002238/0.525, allocations: 132.1 kB / 0.492 GB, free: 8.887 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002118/0.5252, allocations: 168 kB / 0.4921 GB, free: 8.723 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005287/0.5305, allocations: 1.454 MB / 0.4936 GB, free: 7.266 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002921/0.5309, allocations: 251 kB / 0.4938 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004313/0.5352, allocations: 0.7678 MB / 0.4946 GB, free: 6.246 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000931/0.5361, allocations: 344 kB / 0.4949 GB, free: 5.91 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.003244/0.5394, allocations: 1.582 MB / 0.4964 GB, free: 4.316 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006055/0.54, allocations: 258.3 kB / 0.4967 GB, free: 4.062 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/0.5417, allocations: 0.8289 MB / 0.4975 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.952e-05/0.5417, allocations: 12 kB / 0.4975 GB, free: 3.211 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.5417, allocations: 7.938 kB / 0.4975 GB, free: 3.203 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.5417, allocations: 3.984 kB / 0.4975 GB, free: 3.199 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00655/0.5483, allocations: 3.392 MB / 0.5008 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/0.5483, allocations: 3.938 kB / 0.5008 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002352/0.5507, allocations: 411.5 kB / 0.5012 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.209e-05/0.5507, allocations: 7.938 kB / 0.5012 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.5508, allocations: 31.97 kB / 0.5013 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.195e-06/0.5509, allocations: 4 kB / 0.5013 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5509, allocations: 4 kB / 0.5013 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00357/0.5544, allocations: 2.802 MB / 0.504 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007089/0.5552, allocations: 319 kB / 0.5043 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003151/0.5555, allocations: 31.92 kB / 0.5043 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000935/0.5564, allocations: 35.97 kB / 0.5044 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.5566, allocations: 59.91 kB / 0.5044 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.501e-05/0.5567, allocations: 31.98 kB / 0.5045 GB, free: 11.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002997/0.5597, allocations: 1.845 MB / 0.5063 GB, free: 10.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5597, allocations: 0 / 0.5063 GB, free: 10.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004181/0.5639, allocations: 0.8266 MB / 0.5071 GB, free: 9.301 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.004039/0.568, allocations: 3.454 MB / 0.5104 GB, free: 5.816 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00591/0.5739, allocations: 3.616 MB / 0.514 GB, free: 2.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.5739, allocations: 0 / 0.514 GB, free: 2.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009569/0.5749, allocations: 0.7103 MB / 0.5147 GB, free: 1.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.5766, allocations: 276.9 kB / 0.5149 GB, free: 1.254 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04754/0.6242, allocations: 34.3 MB / 0.5484 GB, free: 9.578 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002697/0.6269, allocations: 2.391 MB / 0.5508 GB, free: 7.156 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00367/0.6306, allocations: 1.629 MB / 0.5523 GB, free: 5.52 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0018/0.6324, allocations: 1.218 MB / 0.5535 GB, free: 4.301 MB / 494.1 MB Notification: Performance of SimCode: time 8.51e-07/0.6324, allocations: 0 / 0.5535 GB, free: 4.301 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2657/0.8982, allocations: 43.38 MB / 0.5959 GB, free: 152 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.55/16.45, allocations: 4 kB / 0.5959 GB, free: 152 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches