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.0009391/0.0009391, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.0009788/0.0009788, allocations: 164.5 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.8681/0.8681, allocations: 177 MB / 205.2 MB, free: 5.457 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.173e-06/1.173e-06, allocations: 0 / 273.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.474e-05/1.591e-05, allocations: 2.312 kB / 273.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1106/0.1106, allocations: 20.42 MB / 293.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01611/0.1267, allocations: 15.82 MB / 309.6 MB, free: 9.211 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005994/0.1273, allocations: 44.41 kB / 309.7 MB, free: 9.184 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006957/0.128, allocations: 411.6 kB / 310.1 MB, free: 8.973 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008942/0.1369, allocations: 5.366 MB / 315.4 MB, free: 5.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003884/0.1408, allocations: 2.386 MB / 317.8 MB, free: 3.512 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009427/0.1502, allocations: 9.24 MB / 327 MB, free: 11.64 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008511/0.1511, allocations: 0.629 MB / 327.7 MB, free: 11 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008965/0.1601, allocations: 7.701 MB / 335.4 MB, free: 3.188 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007974/0.1609, allocations: 0.7128 MB / 336.1 MB, free: 2.473 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001161/0.161, allocations: 88 kB / 336.2 MB, free: 2.387 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009156/0.1701, allocations: 6.957 MB / 343.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002097/0.1703, allocations: 306.7 kB / 343.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004365/0.1708, allocations: 0.4989 MB / 343.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007223/0.178, allocations: 6.079 MB / 350 MB, free: 4.527 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.178, allocations: 0 / 350 MB, free: 4.527 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.178, allocations: 0 / 350 MB, free: 4.527 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.178, allocations: 4 kB / 350 MB, free: 4.523 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.003588/0.1816, allocations: 2.404 MB / 352.4 MB, free: 2.082 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.1816, allocations: 15.97 kB / 352.4 MB, free: 2.066 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002409/0.184, allocations: 1.018 MB / 353.5 MB, free: 1.043 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009645/0.185, allocations: 0.7948 MB / 354.2 MB, free: 220 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.835e-05/0.185, allocations: 74.39 kB / 354.3 MB, free: 144 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.894e-05/0.1851, allocations: 108.4 kB / 354.4 MB, free: 36 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001788/0.1869, allocations: 1.702 MB / 356.1 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.1869, allocations: 7.875 kB / 356.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.024e-05/0.187, allocations: 48 kB / 356.2 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.187, allocations: 24 kB / 356.2 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.1883, allocations: 0.8552 MB / 357.1 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003848/0.1921, allocations: 5.248 MB / 362.3 MB, free: 7.746 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.1933, allocations: 0.8135 MB / 363.1 MB, free: 6.918 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.1935, allocations: 163.1 kB / 363.3 MB, free: 6.754 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2569/0.4504, allocations: 96.47 MB / 459.8 MB, free: 102.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.4504, allocations: 44.84 kB / 459.8 MB, free: 102.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 2.766e-06/0.4504, allocations: 0 / 459.8 MB, free: 102.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.002523/0.4529, allocations: 1.435 MB / 461.2 MB, free: 101.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.453, allocations: 188.4 kB / 461.4 MB, free: 101 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004109/0.4534, allocations: 0.7413 MB / 462.2 MB, free: 100.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.796e-05/0.4534, allocations: 40.52 kB / 462.2 MB, free: 100.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.4536, allocations: 495.6 kB / 462.7 MB, free: 100.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.916e-05/0.4537, allocations: 287 kB / 463 MB, free: 99.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.4538, allocations: 223.1 kB / 463.2 MB, free: 99.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.456e-05/0.4539, allocations: 357.8 kB / 463.5 MB, free: 99.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.454, allocations: 113.9 kB / 463.6 MB, free: 99.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.4543, allocations: 0.6685 MB / 464.3 MB, free: 98.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004369/0.4547, allocations: 0.7736 MB / 465.1 MB, free: 97.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.4547, allocations: 4 kB / 465.1 MB, free: 97.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0006125/0.4553, allocations: 0.7006 MB / 465.8 MB, free: 97.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.4553, allocations: 16.22 kB / 465.8 MB, free: 97.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.4553, allocations: 16 kB / 465.8 MB, free: 97.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001262/0.4566, allocations: 485 kB / 466.3 MB, free: 96.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004652/0.4571, allocations: 271.9 kB / 466.6 MB, free: 96.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003599/0.4574, allocations: 1.236 MB / 467.8 MB, free: 95.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003505/0.4578, allocations: 114 kB / 467.9 MB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.646e-05/0.4578, allocations: 54.11 kB / 468 MB, free: 95.01 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.0001934/0.458, allocations: 200.8 kB / 468.2 MB, free: 94.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.4581, allocations: 93.33 kB / 468.2 MB, free: 94.78 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001391/0.4595, allocations: 2.421 MB / 470.7 MB, free: 92.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-05/0.4595, allocations: 49.73 kB / 470.7 MB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.4595, allocations: 3.938 kB / 470.7 MB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.4595, allocations: 3.984 kB / 470.7 MB, free: 92.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001736/0.4613, allocations: 2.48 MB / 473.2 MB, free: 90.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4613, allocations: 0 / 473.2 MB, free: 90.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003495/0.4616, allocations: 161.2 kB / 473.4 MB, free: 90.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005576/0.4622, allocations: 0.561 MB / 473.9 MB, free: 89.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.4622, allocations: 19.25 kB / 473.9 MB, free: 89.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004224/0.4626, allocations: 1.41 MB / 475.3 MB, free: 88.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4626, allocations: 0 / 475.3 MB, free: 88.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006996/0.4633, allocations: 1.26 MB / 476.6 MB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.4634, allocations: 174.4 kB / 476.8 MB, free: 87.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.025e-05/0.4635, allocations: 46.72 kB / 476.8 MB, free: 87.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.4637, allocations: 18.44 kB / 476.8 MB, free: 87.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.172e-05/0.4638, allocations: 57.06 kB / 476.9 MB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.4638, allocations: 23.05 kB / 476.9 MB, free: 87.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002386/0.464, allocations: 452.4 kB / 477.4 MB, free: 86.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.464, allocations: 0 / 477.4 MB, free: 86.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002134/0.4662, allocations: 1.31 MB / 478.7 MB, free: 85.41 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.002511/0.4687, allocations: 1.452 MB / 480.1 MB, free: 84.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008946/0.4696, allocations: 0.7109 MB / 480.8 MB, free: 83.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.319e-05/0.4696, allocations: 17.81 kB / 480.9 MB, free: 83.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004766/0.4701, allocations: 461.5 kB / 481.3 MB, free: 83.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.4714, allocations: 0.6222 MB / 481.9 MB, free: 82.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.4738, allocations: 2.769 MB / 484.7 MB, free: 80 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001433/0.4739, allocations: 320 kB / 485 MB, free: 79.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006558/0.4746, allocations: 0.6064 MB / 485.6 MB, free: 79.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006873/0.4752, allocations: 477.6 kB / 486.1 MB, free: 78.61 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.4752, allocations: 0 / 486.1 MB, free: 78.61 MB / 378.7 MB Notification: Performance of Templates: time 0.04939/0.5246, allocations: 61.83 MB / 0.5351 GB, free: 17.76 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 -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.885784735903144]