Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000908/0.000908, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001701/0.001701, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9333/0.9333, allocations: 177 MB / 205.2 MB, free: 5.051 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 273.4 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.712e-05/1.863e-05, allocations: 2.312 kB / 273.4 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1159/0.116, allocations: 20.46 MB / 293.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01462/0.1306, allocations: 15.82 MB / 309.7 MB, free: 9.035 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009296/0.1315, allocations: 44.06 kB / 309.7 MB, free: 9.008 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007751/0.1323, allocations: 410.9 kB / 310.1 MB, free: 8.797 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009952/0.1422, allocations: 4.892 MB / 315 MB, free: 5.168 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004291/0.1465, allocations: 2.303 MB / 317.3 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008689/0.1552, allocations: 9.231 MB / 326.6 MB, free: 12 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.1563, allocations: 0.6084 MB / 327.2 MB, free: 11.38 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00815/0.1644, allocations: 7.685 MB / 334.9 MB, free: 3.586 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001191/0.1656, allocations: 0.7089 MB / 335.6 MB, free: 2.875 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001396/0.1658, allocations: 92 kB / 335.7 MB, free: 2.785 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01091/0.1767, allocations: 7.466 MB / 343.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003267/0.177, allocations: 302.7 kB / 343.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007254/0.1777, allocations: 0.495 MB / 343.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01043/0.1882, allocations: 6.087 MB / 350 MB, free: 4.418 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1882, allocations: 0 / 350 MB, free: 4.418 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1882, allocations: 0 / 350 MB, free: 4.418 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.1882, allocations: 0 / 350 MB, free: 4.418 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.003896/0.1921, allocations: 2.4 MB / 352.4 MB, free: 1.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.1921, allocations: 11.98 kB / 352.4 MB, free: 1.969 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00282/0.1949, allocations: 1.021 MB / 353.4 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.1961, allocations: 0.7947 MB / 354.2 MB, free: 120 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.1e-05/0.1961, allocations: 74.39 kB / 354.3 MB, free: 44 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.1962, allocations: 100.4 kB / 354.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001916/0.1981, allocations: 1.71 MB / 356.1 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.1981, allocations: 11.88 kB / 356.1 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.958e-05/0.1982, allocations: 48 kB / 356.2 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.1982, allocations: 28 kB / 356.2 MB, free: 13.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00166/0.1999, allocations: 0.8513 MB / 357 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004155/0.204, allocations: 5.244 MB / 362.3 MB, free: 7.645 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.2055, allocations: 0.8123 MB / 363.1 MB, free: 6.812 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.2057, allocations: 163.1 kB / 363.3 MB, free: 6.648 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2757/0.4814, allocations: 96.46 MB / 459.7 MB, free: 102.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/0.4814, allocations: 46.62 kB / 459.8 MB, free: 102.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 3.326e-06/0.4814, allocations: 0.9375 kB / 459.8 MB, free: 102.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.002843/0.4842, allocations: 1.43 MB / 461.2 MB, free: 101 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.4843, allocations: 196.4 kB / 461.4 MB, free: 100.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004467/0.4847, allocations: 0.7332 MB / 462.1 MB, free: 100.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.503e-05/0.4848, allocations: 40.45 kB / 462.2 MB, free: 100.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.4849, allocations: 0.4907 MB / 462.7 MB, free: 99.85 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.4851, allocations: 290 kB / 462.9 MB, free: 99.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.4852, allocations: 225.7 kB / 463.2 MB, free: 99.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.635e-05/0.4853, allocations: 358.7 kB / 463.5 MB, free: 99.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.4854, allocations: 110 kB / 463.6 MB, free: 99.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.4857, allocations: 0.6682 MB / 464.3 MB, free: 98.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004967/0.4862, allocations: 0.7713 MB / 465.1 MB, free: 97.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.248e-06/0.4862, allocations: 4 kB / 465.1 MB, free: 97.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0007041/0.4869, allocations: 0.7121 MB / 465.8 MB, free: 96.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.4869, allocations: 10.52 kB / 465.8 MB, free: 96.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.4869, allocations: 16.75 kB / 465.8 MB, free: 96.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.4882, allocations: 480 kB / 466.3 MB, free: 96.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000507/0.4887, allocations: 291 kB / 466.5 MB, free: 96.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004141/0.4891, allocations: 1.228 MB / 467.8 MB, free: 94.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004213/0.4895, allocations: 110.2 kB / 467.9 MB, free: 94.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.947e-05/0.4896, allocations: 55.22 kB / 467.9 MB, free: 94.73 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.0002495/0.4898, allocations: 206.7 kB / 468.1 MB, free: 94.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.4899, allocations: 93.78 kB / 468.2 MB, free: 94.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.4914, allocations: 2.431 MB / 470.7 MB, free: 92.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/0.4914, allocations: 47.31 kB / 470.7 MB, free: 92.31 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.4914, allocations: 3.938 kB / 470.7 MB, free: 92.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.4914, allocations: 7.969 kB / 470.7 MB, free: 92.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00193/0.4934, allocations: 2.478 MB / 473.2 MB, free: 90.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.4934, allocations: 1.641 kB / 473.2 MB, free: 90.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003933/0.4938, allocations: 169.8 kB / 473.4 MB, free: 90.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005792/0.4943, allocations: 0.5479 MB / 473.9 MB, free: 89.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.446e-05/0.4944, allocations: 25.48 kB / 473.9 MB, free: 89.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004619/0.4948, allocations: 1.414 MB / 475.4 MB, free: 88.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.4948, allocations: 0 / 475.4 MB, free: 88.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007387/0.4956, allocations: 1.261 MB / 476.6 MB, free: 86.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.4957, allocations: 170.4 kB / 476.8 MB, free: 86.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.612e-05/0.4958, allocations: 50.16 kB / 476.8 MB, free: 86.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.496, allocations: 18.45 kB / 476.8 MB, free: 86.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.869e-05/0.4961, allocations: 54.8 kB / 476.9 MB, free: 86.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.4961, allocations: 22.8 kB / 476.9 MB, free: 86.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002466/0.4964, allocations: 454.2 kB / 477.4 MB, free: 86.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.4964, allocations: 0 / 477.4 MB, free: 86.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002228/0.4986, allocations: 1.308 MB / 478.7 MB, free: 85.09 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.003015/0.5016, allocations: 1.452 MB / 480.1 MB, free: 83.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.5026, allocations: 0.7128 MB / 480.8 MB, free: 83.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.611e-05/0.5027, allocations: 21.81 kB / 480.9 MB, free: 83.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005029/0.5032, allocations: 466.3 kB / 481.3 MB, free: 82.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001346/0.5045, allocations: 0.6195 MB / 481.9 MB, free: 82.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002555/0.5071, allocations: 2.77 MB / 484.7 MB, free: 79.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001453/0.5072, allocations: 322.2 kB / 485 MB, free: 79.33 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006855/0.5079, allocations: 0.6019 MB / 485.6 MB, free: 78.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007076/0.5086, allocations: 479.6 kB / 486.1 MB, free: 78.29 MB / 378.7 MB Notification: Performance of SimCode: time 1.583e-06/0.5086, allocations: 0 / 486.1 MB, free: 78.29 MB / 378.7 MB Notification: Performance of Templates: time 0.04995/0.5586, allocations: 61.82 MB / 0.5351 GB, free: 17.44 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.80932542681694]