Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00198/0.00198, allocations: 119.9 kB / 20.44 MB, free: 1.297 MB / 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.002545/0.002545, allocations: 210.5 kB / 23.74 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.527/1.527, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 43.92 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2789, allocations: 53.37 MB / 431.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01079/0.2897, allocations: 7.992 MB / 439.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005583/0.2953, allocations: 2.594 MB / 441.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001351/0.2966, allocations: 35.88 kB / 441.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003478/0.3001, allocations: 1.475 MB / 443.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002789/0.3029, allocations: 1.023 MB / 444.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000996/0.3039, allocations: 259.5 kB / 444.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003621/0.3075, allocations: 2.165 MB / 446.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002328/0.3099, allocations: 1.352 MB / 448 MB, free: 5.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001873/0.3117, allocations: 0.8445 MB / 448.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002252/0.314, allocations: 1.292 MB / 450.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000769/0.3147, allocations: 160 kB / 450.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001808/0.3166, allocations: 0.6981 MB / 451 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001774/0.3183, allocations: 1.184 MB / 452.2 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002568/0.3209, allocations: 1.362 MB / 453.6 MB, free: 316 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006832/0.3277, allocations: 4.28 MB / 457.9 MB, free: 12.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3277, allocations: 3.938 kB / 457.9 MB, free: 12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3277, allocations: 0 / 457.9 MB, free: 12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001803/0.3279, allocations: 0 / 457.9 MB, free: 12 MB / 366.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.007456/0.3354, allocations: 2.931 MB / 460.8 MB, free: 9.023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.3354, allocations: 8.031 kB / 460.8 MB, free: 9.016 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001268/0.3367, allocations: 0.5299 MB / 461.3 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00704/0.3437, allocations: 1.8 MB / 463.1 MB, free: 6.668 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003306/0.347, allocations: 1.109 MB / 464.2 MB, free: 5.527 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001879/0.3472, allocations: 151.8 kB / 464.4 MB, free: 5.379 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006907/0.3479, allocations: 203.8 kB / 464.6 MB, free: 5.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01965/0.3676, allocations: 8.615 MB / 473.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001096/0.3677, allocations: 35.7 kB / 473.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003045/0.368, allocations: 107.9 kB / 473.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002921/0.3709, allocations: 1.663 MB / 475 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01837/0.3893, allocations: 7.186 MB / 482.2 MB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04099/0.4303, allocations: 30.05 MB / 0.5002 GB, free: 4.027 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02272/0.453, allocations: 4.539 MB / 0.5047 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001981/0.455, allocations: 1.199 MB / 0.5058 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007067/0.462, allocations: 3.29 MB / 0.5091 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.115e-05/0.4621, allocations: 46.83 kB / 0.5091 GB, free: 10.83 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 5.68e-06/0.4621, allocations: 4 kB / 0.5091 GB, free: 10.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.04502/0.5071, allocations: 9.007 MB / 0.5179 GB, free: 1.805 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001836/0.5073, allocations: 191.9 kB / 0.5181 GB, free: 1.574 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006131/0.5134, allocations: 3.035 MB / 0.521 GB, free: 14.52 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002101/0.5136, allocations: 41.7 kB / 0.5211 GB, free: 14.47 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002502/0.5161, allocations: 2.531 MB / 0.5236 GB, free: 11.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000775/0.5169, allocations: 0.5158 MB / 0.5241 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002166/0.5191, allocations: 1.092 MB / 0.5251 GB, free: 10.29 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.5192, allocations: 301.1 kB / 0.5254 GB, free: 9.996 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00276/0.522, allocations: 1.607 MB / 0.527 GB, free: 8.383 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006602/0.5286, allocations: 5.173 MB / 0.532 GB, free: 1.406 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01032/0.5389, allocations: 7.33 MB / 0.5392 GB, free: 8.289 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001388/0.5391, allocations: 40 kB / 0.5392 GB, free: 8.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01362/0.5527, allocations: 6.463 MB / 0.5455 GB, free: 1.781 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001767/0.5529, allocations: 62.5 kB / 0.5456 GB, free: 1.723 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002644/0.5531, allocations: 124.8 kB / 0.5457 GB, free: 1.602 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002249/0.5534, allocations: 175.8 kB / 0.5459 GB, free: 1.434 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2803/0.8337, allocations: 1.46 MB / 0.5473 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006/0.8343, allocations: 248.8 kB / 0.5476 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004672/0.8389, allocations: 0.7599 MB / 0.5483 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008274/0.8398, allocations: 345.3 kB / 0.5486 GB, free: 112 MB / 462.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.003047/0.8428, allocations: 1.574 MB / 0.5502 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006554/0.8435, allocations: 262.3 kB / 0.5504 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005672/0.844, allocations: 320.2 kB / 0.5507 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.537e-05/0.8441, allocations: 18.22 kB / 0.5507 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/0.8441, allocations: 4.5 kB / 0.5507 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.8441, allocations: 4.219 kB / 0.5507 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005936/0.85, allocations: 3.357 MB / 0.554 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.455e-06/0.85, allocations: 4.938 kB / 0.554 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002204/0.8522, allocations: 412.6 kB / 0.5544 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.229e-05/0.8522, allocations: 3.969 kB / 0.5544 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-05/0.8523, allocations: 39.03 kB / 0.5545 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.997e-06/0.8523, allocations: 8.344 kB / 0.5545 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.8523, allocations: 0 / 0.5545 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003114/0.8555, allocations: 2.821 MB / 0.5572 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005429/0.856, allocations: 230.7 kB / 0.5574 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002586/0.8563, allocations: 33.98 kB / 0.5575 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008499/0.8571, allocations: 43.84 kB / 0.5575 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/0.8573, allocations: 64.31 kB / 0.5576 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-05/0.8573, allocations: 33.47 kB / 0.5576 GB, free: 108.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002137/0.8595, allocations: 1.845 MB / 0.5594 GB, free: 108.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8595, allocations: 0 / 0.5594 GB, free: 108.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004055/0.8635, allocations: 0.8156 MB / 0.5602 GB, free: 108.2 MB / 462.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.003023/0.8665, allocations: 3.456 MB / 0.5636 GB, free: 106.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004445/0.871, allocations: 3.48 MB / 0.567 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.871, allocations: 2 kB / 0.567 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007304/0.8717, allocations: 0.6877 MB / 0.5677 GB, free: 104.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001758/0.8735, allocations: 270.2 kB / 0.5679 GB, free: 104 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03881/0.9123, allocations: 34.3 MB / 0.6014 GB, free: 65.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002132/0.9144, allocations: 2.394 MB / 0.6037 GB, free: 63.11 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003161/0.9176, allocations: 1.633 MB / 0.6053 GB, free: 61.46 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001598/0.9192, allocations: 1.218 MB / 0.6065 GB, free: 60.25 MB / 462.1 MB Notification: Performance of SimCode: time 1.753e-06/0.9192, allocations: 0 / 0.6065 GB, free: 60.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08755/1.007, allocations: 47.94 MB / 0.6533 GB, free: 12.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.33/21.34, allocations: 2.578 kB / 0.6534 GB, free: 12.68 MB / 462.1 MB " [Timeout remaining time 639] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 24.37245803605765]