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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001917/0.001917, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002158/0.002158, allocations: 214.8 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001755/0.001755, allocations: 55.92 kB / 347.2 MB, free: 9.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2566, allocations: 49.15 MB / 396.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.007418/0.2641, allocations: 7.043 MB / 403.4 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005121/0.2692, allocations: 2.442 MB / 405.8 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000819/0.27, allocations: 43.28 kB / 405.9 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003004/0.273, allocations: 1.393 MB / 407.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00348/0.2765, allocations: 1.025 MB / 408.3 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009927/0.2775, allocations: 261.5 kB / 408.6 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004023/0.2815, allocations: 2.186 MB / 410.7 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001967/0.2835, allocations: 1.349 MB / 412.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001915/0.2854, allocations: 0.8538 MB / 412.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00198/0.2874, allocations: 1.247 MB / 414.2 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004369/0.2878, allocations: 163.8 kB / 414.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001597/0.2894, allocations: 0.5632 MB / 414.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001514/0.2909, allocations: 1.189 MB / 416.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00157/0.2925, allocations: 0.9946 MB / 417.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006917/0.2994, allocations: 4.338 MB / 421.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.2994, allocations: 0 / 421.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.2994, allocations: 0 / 421.4 MB, free: 9.848 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001752/0.2996, allocations: 0 / 421.4 MB, free: 9.848 MB / 334.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.007611/0.3072, allocations: 2.961 MB / 424.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.3072, allocations: 19.92 kB / 424.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007674/0.308, allocations: 0.5221 MB / 424.9 MB, free: 6.398 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006616/0.3146, allocations: 1.797 MB / 426.7 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002718/0.3173, allocations: 1.113 MB / 427.8 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.3175, allocations: 155.8 kB / 428 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003768/0.3179, allocations: 203.8 kB / 428.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01738/0.3352, allocations: 8.621 MB / 436.8 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.97e-05/0.3353, allocations: 43.64 kB / 436.9 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002572/0.3356, allocations: 107.9 kB / 437 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00289/0.3385, allocations: 1.659 MB / 438.6 MB, free: 8.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01691/0.3554, allocations: 7.166 MB / 445.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03431/0.3897, allocations: 29.14 MB / 474.9 MB, free: 2.863 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02123/0.4109, allocations: 4.503 MB / 479.4 MB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001569/0.4125, allocations: 1.197 MB / 480.6 MB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005631/0.4181, allocations: 3.111 MB / 483.7 MB, free: 9.934 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/0.4182, allocations: 42.89 kB / 483.8 MB, free: 9.883 MB / 398.1 MB Notification: Performance of pre-optimization done (n=111): time 4.378e-06/0.4182, allocations: 0 / 483.8 MB, free: 9.883 MB / 398.1 MB Notification: Performance of matching and sorting (n=111): time 0.04301/0.4612, allocations: 8.976 MB / 492.8 MB, free: 0.8906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.4613, allocations: 191.9 kB / 492.9 MB, free: 0.6602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004274/0.4656, allocations: 3.253 MB / 496.2 MB, free: 13.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.826e-05/0.4656, allocations: 37.7 kB / 496.2 MB, free: 13.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001792/0.4674, allocations: 2.531 MB / 498.8 MB, free: 10.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004742/0.4679, allocations: 0.5158 MB / 499.3 MB, free: 10.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001347/0.4693, allocations: 1.092 MB / 0.4886 GB, free: 9.164 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.4694, allocations: 301.1 kB / 0.4889 GB, free: 8.867 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002258/0.4716, allocations: 1.603 MB / 0.4905 GB, free: 7.258 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005091/0.4767, allocations: 5.173 MB / 0.4956 GB, free: 288 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008144/0.4849, allocations: 7.336 MB / 0.5027 GB, free: 7.156 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.07e-05/0.4849, allocations: 40 kB / 0.5028 GB, free: 7.117 MB / 430.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009503/0.4944, allocations: 6.447 MB / 0.509 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.838e-05/0.4945, allocations: 60 kB / 0.5091 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/0.4946, allocations: 128 kB / 0.5092 GB, free: 492 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001647/0.4948, allocations: 171.9 kB / 0.5094 GB, free: 320 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004419/0.4992, allocations: 1.455 MB / 0.5108 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002012/0.4994, allocations: 247.1 kB / 0.511 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003054/0.5025, allocations: 0.7639 MB / 0.5118 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000411/0.5029, allocations: 347.9 kB / 0.5121 GB, free: 13.51 MB / 446.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.002184/0.5051, allocations: 1.579 MB / 0.5137 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003898/0.5055, allocations: 258.3 kB / 0.5139 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001261/0.5067, allocations: 0.8366 MB / 0.5147 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.52e-05/0.5067, allocations: 19.94 kB / 0.5148 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.5068, allocations: 4 kB / 0.5148 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.5068, allocations: 3.984 kB / 0.5148 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00558/0.5123, allocations: 3.227 MB / 0.5179 GB, free: 7.512 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.5124, allocations: 0 / 0.5179 GB, free: 7.512 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002169/0.5145, allocations: 407.5 kB / 0.5183 GB, free: 7.113 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-06/0.5145, allocations: 4 kB / 0.5183 GB, free: 7.109 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.313e-05/0.5146, allocations: 39.95 kB / 0.5183 GB, free: 7.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-05/0.5146, allocations: 11.94 kB / 0.5184 GB, free: 7.059 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.5146, allocations: 4 kB / 0.5184 GB, free: 7.055 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003247/0.5179, allocations: 2.796 MB / 0.5211 GB, free: 4.238 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003969/0.5183, allocations: 242 kB / 0.5213 GB, free: 4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002316/0.5185, allocations: 27.98 kB / 0.5213 GB, free: 3.973 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008156/0.5193, allocations: 39.95 kB / 0.5214 GB, free: 3.934 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.5194, allocations: 59.83 kB / 0.5214 GB, free: 3.875 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.336e-05/0.5195, allocations: 35.98 kB / 0.5215 GB, free: 3.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002293/0.5218, allocations: 1.841 MB / 0.5233 GB, free: 1.996 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5218, allocations: 0 / 0.5233 GB, free: 1.996 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003226/0.525, allocations: 0.8421 MB / 0.5241 GB, free: 1.152 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.003698/0.5287, allocations: 3.438 MB / 0.5275 GB, free: 13.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005139/0.5339, allocations: 3.48 MB / 0.5308 GB, free: 10.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.5339, allocations: 384 / 0.5308 GB, free: 10.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009441/0.5348, allocations: 0.6771 MB / 0.5315 GB, free: 9.555 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.5363, allocations: 266.2 kB / 0.5318 GB, free: 9.293 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1943/0.7305, allocations: 34.28 MB / 0.5652 GB, free: 140.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002703/0.7332, allocations: 1.828 MB / 0.567 GB, free: 139.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003449/0.7367, allocations: 1.633 MB / 0.5686 GB, free: 139.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001229/0.7379, allocations: 1.219 MB / 0.5698 GB, free: 138.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/0.7379, allocations: 0 / 0.5698 GB, free: 138.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.422/3.16, allocations: 43.01 MB / 0.6118 GB, free: 103.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.55/22.71, allocations: 15.84 kB / 0.6118 GB, free: 103.8 MB / 478.1 MB " [Timeout remaining time 637] (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 --stepSize=0.00039984 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 25.87078875908628]