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.0007517/0.0007517, allocations: 96.39 kB / 17.3 MB, free: 6.391 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.000778/0.0007779, allocations: 177.5 kB / 18.21 MB, free: 5.551 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.232/1.232, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004719/0.000472, allocations: 12 kB / 281.5 MB, free: 3.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08011/0.08059, allocations: 47.58 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.0239/0.1045, allocations: 28.07 MB / 357.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01232/0.1169, allocations: 5.946 MB / 363.1 MB, free: 1.523 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004145/0.121, allocations: 111.8 kB / 363.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009989/0.1221, allocations: 298.6 kB / 363.5 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002326/0.1244, allocations: 0.9418 MB / 364.4 MB, free: 180 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006123/0.125, allocations: 235.6 kB / 364.6 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003956/0.129, allocations: 3.292 MB / 367.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002729/0.1317, allocations: 2.042 MB / 370 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001123/0.1329, allocations: 0.6649 MB / 370.6 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001955/0.1348, allocations: 1.218 MB / 371.9 MB, free: 8.668 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003229/0.1352, allocations: 84 kB / 371.9 MB, free: 8.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001137/0.1363, allocations: 0.6161 MB / 372.6 MB, free: 7.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008727/0.1372, allocations: 1.114 MB / 373.7 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001053/0.1383, allocations: 1.325 MB / 375 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003606/0.1419, allocations: 4.005 MB / 379 MB, free: 1.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1419, allocations: 0 / 379 MB, free: 1.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1419, allocations: 0 / 379 MB, free: 1.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.89e-05/0.142, allocations: 0 / 379 MB, free: 1.492 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.145/0.287, allocations: 2.396 MB / 381.4 MB, free: 54.1 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.2871, allocations: 9.875 kB / 381.4 MB, free: 54.1 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008217/0.2879, allocations: 0.5245 MB / 381.9 MB, free: 54.03 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007165/0.2951, allocations: 1.821 MB / 383.8 MB, free: 53.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002149/0.2973, allocations: 1.159 MB / 384.9 MB, free: 53.35 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001522/0.2974, allocations: 152.2 kB / 385.1 MB, free: 53.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004553/0.2979, allocations: 207.1 kB / 385.3 MB, free: 53.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01819/0.3161, allocations: 8.624 MB / 393.9 MB, free: 48.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.884e-05/0.3162, allocations: 36.16 kB / 393.9 MB, free: 48.92 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00028/0.3165, allocations: 104.4 kB / 394 MB, free: 48.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002482/0.319, allocations: 1.665 MB / 395.7 MB, free: 48.22 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01512/0.3341, allocations: 7.192 MB / 402.9 MB, free: 41.31 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02498/0.3591, allocations: 30.2 MB / 433.1 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02077/0.3799, allocations: 5.114 MB / 438.2 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001399/0.3814, allocations: 1.239 MB / 439.4 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004525/0.3859, allocations: 3.747 MB / 443.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/0.386, allocations: 54.83 kB / 443.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=111): time 3.437e-06/0.386, allocations: 0 / 443.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=111): time 0.04594/0.4319, allocations: 9.378 MB / 452.6 MB, free: 6.453 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.4321, allocations: 195.9 kB / 452.8 MB, free: 6.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005389/0.4375, allocations: 3.039 MB / 455.8 MB, free: 3.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002173/0.4377, allocations: 43.42 kB / 455.9 MB, free: 3.113 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001881/0.4396, allocations: 2.422 MB / 458.3 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006984/0.4403, allocations: 0.4963 MB / 458.8 MB, free: 208 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008053/0.4411, allocations: 464 kB / 459.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.995e-05/0.4413, allocations: 313 kB / 459.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002597/0.4439, allocations: 1.603 MB / 461.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004953/0.4488, allocations: 5.169 MB / 466.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007865/0.4567, allocations: 7.318 MB / 473.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001094/0.4568, allocations: 36 kB / 473.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01135/0.4682, allocations: 6.446 MB / 480.1 MB, free: 7.266 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001484/0.4684, allocations: 60.94 kB / 480.2 MB, free: 7.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002244/0.4686, allocations: 128 kB / 480.3 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002085/0.4689, allocations: 168.3 kB / 480.5 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005204/0.4741, allocations: 1.454 MB / 481.9 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000267/0.4744, allocations: 247 kB / 482.2 MB, free: 5.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003946/0.4783, allocations: 0.7421 MB / 482.9 MB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008286/0.4792, allocations: 347.9 kB / 483.3 MB, free: 4.129 MB / 366.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.002915/0.4821, allocations: 1.58 MB / 484.8 MB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005674/0.4827, allocations: 252.8 kB / 485.1 MB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.4842, allocations: 0.8249 MB / 485.9 MB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.14e-05/0.4843, allocations: 16 kB / 485.9 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.4843, allocations: 0 / 485.9 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.931e-05/0.4843, allocations: 11.97 kB / 485.9 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00644/0.4908, allocations: 3.393 MB / 489.3 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.799e-06/0.4908, allocations: 4 kB / 489.3 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002265/0.4931, allocations: 407.5 kB / 489.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.67e-05/0.4931, allocations: 4 kB / 489.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001226/0.4932, allocations: 35.97 kB / 489.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.191e-05/0.4933, allocations: 11.92 kB / 489.8 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.4933, allocations: 7.938 kB / 489.8 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003239/0.4965, allocations: 2.777 MB / 492.6 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006236/0.4972, allocations: 309.5 kB / 492.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004472/0.4976, allocations: 29.47 kB / 492.9 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.4987, allocations: 47.89 kB / 492.9 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.4989, allocations: 55.92 kB / 493 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-05/0.499, allocations: 37.31 kB / 493 MB, free: 10.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003152/0.5021, allocations: 1.841 MB / 494.9 MB, free: 8.398 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5021, allocations: 0 / 494.9 MB, free: 8.398 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004011/0.5061, allocations: 0.8286 MB / 495.7 MB, free: 7.57 MB / 382.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.003621/0.5098, allocations: 3.426 MB / 499.1 MB, free: 4.125 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00554/0.5153, allocations: 3.604 MB / 0.4909 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.5154, allocations: 0 / 0.4909 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009068/0.5163, allocations: 0.7131 MB / 0.4916 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002403/0.5187, allocations: 250 kB / 0.4919 GB, free: 15.6 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05166/0.5704, allocations: 38.47 MB / 0.5295 GB, free: 2.566 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003064/0.5735, allocations: 2.391 MB / 0.5318 GB, free: 144 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.1628/0.7363, allocations: 1.641 MB / 0.5334 GB, free: 149.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001931/0.7383, allocations: 1.217 MB / 0.5346 GB, free: 149.5 MB / 430.1 MB Notification: Performance of SimCode: time 1.123e-06/0.7383, allocations: 1.969 kB / 0.5346 GB, free: 149.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06492/0.8032, allocations: 45.41 MB / 0.5789 GB, free: 117.9 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001708/0.8034, allocations: 235.9 kB / 0.5791 GB, free: 117.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.103/3.906, allocations: 7.906 kB / 0.5792 GB, free: 117.6 MB / 430.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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches