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.001057/0.001057, allocations: 84.34 kB / 22.21 MB, free: 2.285 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.001351/0.001351, allocations: 166.8 kB / 25.61 MB, free: 8.582 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.9304/0.9304, allocations: 177 MB / 205.9 MB, free: 4.465 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 2.926e-06/2.926e-06, allocations: 4 kB / 274.1 MB, free: 4.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.2e-05/2.493e-05, allocations: 4.938 kB / 274.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.01696/0.01698, allocations: 20.31 MB / 294.4 MB, free: 15.93 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0159/0.03288, allocations: 15.54 MB / 309.9 MB, free: 348 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001767/0.03465, allocations: 47.56 kB / 310 MB, free: 300 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001349/0.036, allocations: 397 kB / 310.4 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01184/0.04783, allocations: 5.348 MB / 315.7 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004641/0.05248, allocations: 2.379 MB / 318.1 MB, free: 8.145 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0118/0.06428, allocations: 9.223 MB / 327.3 MB, free: 14.8 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00129/0.06557, allocations: 0.6268 MB / 328 MB, free: 14.17 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01049/0.07606, allocations: 7.701 MB / 335.7 MB, free: 6.355 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001449/0.07751, allocations: 0.7401 MB / 336.4 MB, free: 5.613 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002273/0.07773, allocations: 88 kB / 336.5 MB, free: 5.527 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1369/0.2146, allocations: 6.957 MB / 343.4 MB, free: 37.82 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002702/0.2149, allocations: 301 kB / 343.7 MB, free: 37.82 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008235/0.2157, allocations: 0.4961 MB / 344.2 MB, free: 37.82 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009651/0.2253, allocations: 6.087 MB / 350.3 MB, free: 37.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2254, allocations: 0 / 350.3 MB, free: 37.74 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.2254, allocations: 3.312 kB / 350.3 MB, free: 37.74 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.41e-05/0.2254, allocations: 1.5 kB / 350.3 MB, free: 37.74 MB / 314.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.004553/0.2299, allocations: 2.481 MB / 352.8 MB, free: 36.65 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.23, allocations: 8.781 kB / 352.8 MB, free: 36.65 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002466/0.2324, allocations: 0.9569 MB / 353.8 MB, free: 36.49 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.2336, allocations: 0.9399 MB / 354.7 MB, free: 36.21 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.658e-05/0.2336, allocations: 71.39 kB / 354.8 MB, free: 36.21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.862e-05/0.2337, allocations: 101.5 kB / 354.9 MB, free: 36.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00176/0.2355, allocations: 1.776 MB / 356.7 MB, free: 35.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/0.2355, allocations: 10.5 kB / 356.7 MB, free: 35.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.658e-05/0.2355, allocations: 48.66 kB / 356.7 MB, free: 35.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.2356, allocations: 28.5 kB / 356.7 MB, free: 35.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00135/0.2369, allocations: 0.9058 MB / 357.6 MB, free: 35.28 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004048/0.241, allocations: 7.429 MB / 365.1 MB, free: 30.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.2423, allocations: 0.8633 MB / 365.9 MB, free: 29.98 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.2425, allocations: 201.3 kB / 366.1 MB, free: 29.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05051/0.293, allocations: 30.26 MB / 396.4 MB, free: 7.012 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.293, allocations: 49.12 kB / 396.4 MB, free: 6.957 MB / 314.7 MB Notification: Performance of pre-optimization done (n=77): time 2.475e-06/0.293, allocations: 0 / 396.4 MB, free: 6.957 MB / 314.7 MB Notification: Performance of matching and sorting (n=77): time 0.003/0.296, allocations: 1.611 MB / 398.1 MB, free: 5.512 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.296, allocations: 188.4 kB / 398.2 MB, free: 5.285 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004834/0.2965, allocations: 0.8352 MB / 399.1 MB, free: 4.605 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.145e-05/0.2966, allocations: 40.77 kB / 399.1 MB, free: 4.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/0.2968, allocations: 0.6586 MB / 399.8 MB, free: 4.102 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/0.2969, allocations: 287.8 kB / 400.1 MB, free: 3.863 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/0.2971, allocations: 265.3 kB / 400.3 MB, free: 3.695 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.253e-05/0.2972, allocations: 0.5309 MB / 400.8 MB, free: 3.184 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.2974, allocations: 130.5 kB / 401 MB, free: 3.055 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003501/0.2977, allocations: 0.8715 MB / 401.8 MB, free: 1.926 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006064/0.2983, allocations: 0.9625 MB / 402.8 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.2983, allocations: 4 kB / 402.8 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0009482/0.2993, allocations: 0.9263 MB / 403.7 MB, free: 140 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.2993, allocations: 15.98 kB / 403.8 MB, free: 124 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.2993, allocations: 12 kB / 403.8 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.3008, allocations: 496.3 kB / 404.2 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005653/0.3014, allocations: 279.1 kB / 404.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008026/0.3022, allocations: 1.851 MB / 406.4 MB, free: 13.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004295/0.3026, allocations: 116.8 kB / 406.5 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.702e-05/0.3027, allocations: 63.55 kB / 406.5 MB, free: 13.41 MB / 330.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.0002723/0.303, allocations: 235.5 kB / 406.8 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.3031, allocations: 142.5 kB / 406.9 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001973/0.3051, allocations: 2.497 MB / 409.4 MB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.913e-05/0.3051, allocations: 47.92 kB / 409.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.3051, allocations: 4 kB / 409.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.3051, allocations: 7.922 kB / 409.5 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002371/0.3075, allocations: 2.78 MB / 412.3 MB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.3075, allocations: 0 / 412.3 MB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000401/0.3079, allocations: 167 kB / 412.4 MB, free: 7.941 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006993/0.3086, allocations: 0.5658 MB / 413 MB, free: 7.383 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.88e-05/0.3087, allocations: 27.98 kB / 413 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008299/0.3095, allocations: 2.029 MB / 415 MB, free: 5.297 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3095, allocations: 0 / 415 MB, free: 5.297 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.3106, allocations: 1.498 MB / 416.5 MB, free: 3.793 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001551/0.3108, allocations: 186.3 kB / 416.7 MB, free: 3.609 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.014e-05/0.3109, allocations: 39.73 kB / 416.8 MB, free: 3.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.3111, allocations: 23.38 kB / 416.8 MB, free: 3.551 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.371e-05/0.3112, allocations: 52.55 kB / 416.8 MB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.363e-05/0.3112, allocations: 35.08 kB / 416.9 MB, free: 3.469 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003896/0.3116, allocations: 0.5827 MB / 417.4 MB, free: 2.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3116, allocations: 4 kB / 417.5 MB, free: 2.926 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003601/0.3152, allocations: 1.306 MB / 418.8 MB, free: 1.617 MB / 330.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.003376/0.3186, allocations: 1.415 MB / 420.2 MB, free: 328 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.3198, allocations: 0.7764 MB / 420.9 MB, free: 15.6 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.3198, allocations: 4 kB / 421 MB, free: 15.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006274/0.3204, allocations: 0.5087 MB / 421.5 MB, free: 15.11 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001565/0.322, allocations: 0.6288 MB / 422.1 MB, free: 14.52 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.3249, allocations: 2.755 MB / 424.8 MB, free: 11.76 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002153/0.3251, allocations: 330 kB / 425.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007556/0.3259, allocations: 0.6057 MB / 425.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008059/0.3267, allocations: 0.5525 MB / 426.3 MB, free: 10.27 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/0.3267, allocations: 4 kB / 426.3 MB, free: 10.26 MB / 346.7 MB Notification: Performance of Templates: time 0.1648/0.4915, allocations: 63.16 MB / 489.5 MB, free: 124.4 MB / 394.7 MB " [Timeout remaining time 660] 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 -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: 5.880158485844731]