Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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.0009235/0.0009235, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 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.00149/0.00149, allocations: 174 kB / 24.92 MB, free: 8.766 MB / 18.57 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 0.9173/0.9173, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.809e-06/1.098e-05, allocations: 2.312 kB / 273.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1092/0.1092, allocations: 20.46 MB / 293.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01386/0.1231, allocations: 15.82 MB / 309.8 MB, free: 9.195 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005193/0.1236, allocations: 44.66 kB / 309.8 MB, free: 9.168 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006266/0.1242, allocations: 406.2 kB / 310.2 MB, free: 8.961 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007783/0.132, allocations: 4.908 MB / 315.1 MB, free: 5.332 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003423/0.1354, allocations: 2.291 MB / 317.4 MB, free: 3.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007678/0.1431, allocations: 9.234 MB / 326.6 MB, free: 12.21 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007625/0.1439, allocations: 0.5977 MB / 327.2 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007564/0.1514, allocations: 7.693 MB / 334.9 MB, free: 3.801 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007693/0.1522, allocations: 0.7089 MB / 335.6 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.1523, allocations: 92 kB / 335.7 MB, free: 3 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009475/0.1618, allocations: 7.463 MB / 343.2 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000187/0.162, allocations: 306.7 kB / 343.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003952/0.1624, allocations: 498.9 kB / 344 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006286/0.1687, allocations: 6.083 MB / 350.1 MB, free: 4.645 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1687, allocations: 0 / 350.1 MB, free: 4.645 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.1687, allocations: 0 / 350.1 MB, free: 4.645 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.485e-05/0.1687, allocations: 0 / 350.1 MB, free: 4.645 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003334/0.172, allocations: 2.408 MB / 352.5 MB, free: 2.199 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.172, allocations: 8.031 kB / 352.5 MB, free: 2.191 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002609/0.1747, allocations: 1.014 MB / 353.5 MB, free: 1.176 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000916/0.1756, allocations: 0.7947 MB / 354.3 MB, free: 352 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.969e-05/0.1756, allocations: 74.39 kB / 354.4 MB, free: 276 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.086e-05/0.1757, allocations: 104.4 kB / 354.5 MB, free: 172 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/0.1777, allocations: 1.716 MB / 356.2 MB, free: 14.22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.1777, allocations: 11.88 kB / 356.2 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.825e-05/0.1778, allocations: 48 kB / 356.2 MB, free: 14.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.758e-05/0.1778, allocations: 24 kB / 356.2 MB, free: 14.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.1791, allocations: 0.8513 MB / 357.1 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003635/0.1828, allocations: 5.24 MB / 362.3 MB, free: 7.871 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.1841, allocations: 0.8179 MB / 363.2 MB, free: 7.035 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.1843, allocations: 166.1 kB / 363.3 MB, free: 6.871 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2599/0.4442, allocations: 96.47 MB / 459.8 MB, free: 102.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.4443, allocations: 46.81 kB / 459.8 MB, free: 102.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 2.695e-06/0.4443, allocations: 0.6562 kB / 459.8 MB, free: 102.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.002538/0.4468, allocations: 1.423 MB / 461.3 MB, free: 101.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.4469, allocations: 200.4 kB / 461.5 MB, free: 101.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003535/0.4472, allocations: 0.733 MB / 462.2 MB, free: 100.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.4472, allocations: 39.83 kB / 462.2 MB, free: 100.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.4474, allocations: 0.4889 MB / 462.7 MB, free: 100.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.737e-05/0.4475, allocations: 288.8 kB / 463 MB, free: 99.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/0.4476, allocations: 225.7 kB / 463.2 MB, free: 99.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.692e-05/0.4476, allocations: 354.3 kB / 463.6 MB, free: 99.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.4478, allocations: 110.4 kB / 463.7 MB, free: 99.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.448, allocations: 0.6746 MB / 464.3 MB, free: 98.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004108/0.4484, allocations: 0.7703 MB / 465.1 MB, free: 97.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.4484, allocations: 8 kB / 465.1 MB, free: 97.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0005791/0.449, allocations: 0.7039 MB / 465.8 MB, free: 97.13 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.449, allocations: 8.625 kB / 465.8 MB, free: 97.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.449, allocations: 16.88 kB / 465.9 MB, free: 97.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/0.4502, allocations: 487.4 kB / 466.3 MB, free: 96.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004676/0.4507, allocations: 281.7 kB / 466.6 MB, free: 96.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003292/0.451, allocations: 1.239 MB / 467.8 MB, free: 95.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003159/0.4514, allocations: 115.6 kB / 468 MB, free: 95.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-05/0.4514, allocations: 59.12 kB / 468 MB, free: 95.06 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 20 (leftBoundary1.medium.phase,rightBoundary1.medium.phase,suddenExpansion1.state_b_des.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_b.phase,leftBoundary2.medium.phase,rightBoundary2.medium.phase,suddenExpansion2.state_b_des.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_b.phase,leftAdaptor.state_b_des.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.state_a.phase,leftAdaptor.state_b.phase,rightAdaptor.state_b_des.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_a.phase,rightAdaptor.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0001681/0.4516, allocations: 196.5 kB / 468.2 MB, free: 94.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.924e-05/0.4517, allocations: 93.97 kB / 468.3 MB, free: 94.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001304/0.453, allocations: 2.437 MB / 470.7 MB, free: 92.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.818e-05/0.453, allocations: 43.38 kB / 470.8 MB, free: 92.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.453, allocations: 3.938 kB / 470.8 MB, free: 92.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.453, allocations: 7.969 kB / 470.8 MB, free: 92.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001578/0.4546, allocations: 2.478 MB / 473.3 MB, free: 90.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.4546, allocations: 3.656 kB / 473.3 MB, free: 90.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003518/0.4549, allocations: 165 kB / 473.4 MB, free: 90.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005407/0.4555, allocations: 0.5484 MB / 474 MB, free: 89.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/0.4555, allocations: 30.67 kB / 474 MB, free: 89.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004049/0.4559, allocations: 1.413 MB / 475.4 MB, free: 88.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4559, allocations: 6.688 kB / 475.4 MB, free: 88.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006456/0.4565, allocations: 1.251 MB / 476.7 MB, free: 87.33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.858e-05/0.4566, allocations: 176.9 kB / 476.9 MB, free: 87.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.125e-05/0.4567, allocations: 54.16 kB / 476.9 MB, free: 87.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.4569, allocations: 22.75 kB / 476.9 MB, free: 87.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.394e-05/0.4569, allocations: 48.23 kB / 477 MB, free: 87.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.457, allocations: 23.73 kB / 477 MB, free: 87.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002207/0.4572, allocations: 447.6 kB / 477.4 MB, free: 86.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.4572, allocations: 0 / 477.4 MB, free: 86.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001659/0.4588, allocations: 1.308 MB / 478.7 MB, free: 85.44 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002203/0.461, allocations: 1.453 MB / 480.2 MB, free: 84.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007664/0.4618, allocations: 0.7167 MB / 480.9 MB, free: 83.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.977e-05/0.4618, allocations: 18.19 kB / 480.9 MB, free: 83.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004376/0.4623, allocations: 468 kB / 481.4 MB, free: 83.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.4634, allocations: 0.6104 MB / 482 MB, free: 82.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/0.4656, allocations: 2.77 MB / 484.8 MB, free: 80.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.4657, allocations: 320.2 kB / 485.1 MB, free: 79.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005667/0.4663, allocations: 0.5941 MB / 485.7 MB, free: 79.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000654/0.4669, allocations: 483.2 kB / 486.1 MB, free: 78.64 MB / 378.7 MB Notification: Performance of SimCode: time 8.52e-07/0.4669, allocations: 0 / 486.1 MB, free: 78.64 MB / 378.7 MB Notification: Performance of Templates: time 0.04376/0.5107, allocations: 61.84 MB / 0.5351 GB, free: 17.85 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.773786928039044]