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.0007638/0.0007638, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001031/0.001795, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0006892/0.0006892, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008607/0.00155, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9301/0.9301, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09605/1.026, allocations: 53.87 MB / 243.7 MB, free: 14.9 MB / 250.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.423e-06/1.423e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.943e-05/2.085e-05, allocations: 2.312 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.02372/0.02374, allocations: 20.54 MB / 265.5 MB, free: 9.039 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1545/0.1783, allocations: 15.9 MB / 281.4 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007156/0.179, allocations: 43.86 kB / 281.5 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006541/0.1796, allocations: 422.2 kB / 281.9 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009393/0.189, allocations: 4.885 MB / 286.8 MB, free: 184 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004141/0.1932, allocations: 2.289 MB / 289.1 MB, free: 0 / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01044/0.2036, allocations: 7.795 MB / 296.9 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00082/0.2044, allocations: 0.6037 MB / 297.5 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008738/0.2132, allocations: 6.346 MB / 303.8 MB, free: 9.133 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009274/0.2141, allocations: 0.7148 MB / 304.5 MB, free: 8.477 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001327/0.2142, allocations: 88 kB / 304.6 MB, free: 8.391 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01072/0.225, allocations: 7.471 MB / 312.1 MB, free: 1.016 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001966/0.2252, allocations: 227.6 kB / 312.3 MB, free: 0.793 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004343/0.2256, allocations: 423.2 kB / 312.7 MB, free: 388 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006832/0.2324, allocations: 4.803 MB / 317.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.22e-05/0.2324, allocations: 0 / 317.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2324, allocations: 0 / 317.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.769e-05/0.2325, allocations: 0 / 317.5 MB, free: 11.8 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.004021/0.2365, allocations: 3.036 MB / 320.6 MB, free: 8.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.2365, allocations: 8.625 kB / 320.6 MB, free: 8.812 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002332/0.2388, allocations: 1.029 MB / 321.6 MB, free: 7.801 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009632/0.2398, allocations: 0.7878 MB / 322.4 MB, free: 7.008 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.819e-05/0.2398, allocations: 78.39 kB / 322.5 MB, free: 6.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.913e-05/0.2399, allocations: 104.4 kB / 322.6 MB, free: 6.828 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.2416, allocations: 1.709 MB / 324.3 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.2416, allocations: 11.81 kB / 324.3 MB, free: 4.926 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.738e-05/0.2416, allocations: 48 kB / 324.3 MB, free: 4.879 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.2416, allocations: 24 kB / 324.4 MB, free: 4.855 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.2429, allocations: 0.8528 MB / 325.2 MB, free: 4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00377/0.2466, allocations: 5.244 MB / 330.5 MB, free: 14.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.2479, allocations: 0.833 MB / 331.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.248, allocations: 158.4 kB / 331.4 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2607/0.5087, allocations: 96.47 MB / 427.9 MB, free: 123.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/0.5088, allocations: 48.22 kB / 428 MB, free: 123.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 2.304e-06/0.5088, allocations: 0 / 428 MB, free: 123.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=77): time 0.002806/0.5116, allocations: 1.43 MB / 429.4 MB, free: 123.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.189e-05/0.5116, allocations: 86.42 kB / 429.5 MB, free: 123.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005528/0.5121, allocations: 0.738 MB / 430.2 MB, free: 123.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.796e-05/0.5122, allocations: 42.05 kB / 430.3 MB, free: 123.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/0.5124, allocations: 0.4922 MB / 430.7 MB, free: 123.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.969e-05/0.5125, allocations: 286.9 kB / 431 MB, free: 122.9 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.5126, allocations: 226.6 kB / 431.3 MB, free: 122.9 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.488e-05/0.5127, allocations: 353.5 kB / 431.6 MB, free: 122.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.5128, allocations: 110.7 kB / 431.7 MB, free: 122.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002922/0.5131, allocations: 0.6732 MB / 432.4 MB, free: 121.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004894/0.5136, allocations: 0.7703 MB / 433.1 MB, free: 121.4 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.5136, allocations: 4.125 kB / 433.2 MB, free: 121.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0007158/0.5143, allocations: 0.7039 MB / 433.9 MB, free: 121.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.5144, allocations: 11.5 kB / 433.9 MB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.5144, allocations: 17.67 kB / 433.9 MB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001262/0.5156, allocations: 488.6 kB / 434.4 MB, free: 121.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000567/0.5162, allocations: 311.9 kB / 434.7 MB, free: 121.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003838/0.5166, allocations: 1.237 MB / 435.9 MB, free: 120.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003921/0.517, allocations: 111.6 kB / 436 MB, free: 120.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-05/0.517, allocations: 50.89 kB / 436.1 MB, free: 120.2 MB / 394.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.0001882/0.5172, allocations: 208.6 kB / 436.3 MB, free: 120.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.5173, allocations: 92.5 kB / 436.4 MB, free: 120.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001472/0.5188, allocations: 2.436 MB / 438.8 MB, free: 119.6 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-05/0.5188, allocations: 46.88 kB / 438.8 MB, free: 119.6 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.5188, allocations: 0 / 438.8 MB, free: 119.6 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.5188, allocations: 6.234 kB / 438.8 MB, free: 119.6 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001742/0.5206, allocations: 2.487 MB / 441.3 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.5206, allocations: 0 / 441.3 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003654/0.5209, allocations: 177.9 kB / 441.5 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.669e-05/0.521, allocations: 178.3 kB / 441.7 MB, free: 119 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005678/0.5216, allocations: 0.5526 MB / 442.2 MB, free: 118.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.5216, allocations: 22.14 kB / 442.3 MB, free: 118.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004345/0.5221, allocations: 1.413 MB / 443.7 MB, free: 117.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5221, allocations: 3.094 kB / 443.7 MB, free: 117.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007174/0.5228, allocations: 1.26 MB / 444.9 MB, free: 117.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.31e-05/0.5229, allocations: 43.86 kB / 445 MB, free: 117.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.5231, allocations: 20.34 kB / 445 MB, free: 117.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.131e-05/0.5231, allocations: 55.44 kB / 445 MB, free: 117.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.45e-05/0.5231, allocations: 21.97 kB / 445.1 MB, free: 117.4 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002411/0.5234, allocations: 442.9 kB / 445.5 MB, free: 117.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.5234, allocations: 0 / 445.5 MB, free: 117.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002151/0.5255, allocations: 1.312 MB / 446.8 MB, free: 117.2 MB / 394.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.002326/0.5279, allocations: 1.479 MB / 448.3 MB, free: 116.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008417/0.5287, allocations: 0.7133 MB / 449 MB, free: 116.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.694e-05/0.5287, allocations: 26.62 kB / 449 MB, free: 116.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004521/0.5292, allocations: 468.7 kB / 449.5 MB, free: 116.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.5304, allocations: 0.7648 MB / 450.3 MB, free: 116.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/0.5417, allocations: 2.807 MB / 453.1 MB, free: 115.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001554/0.5418, allocations: 326.3 kB / 453.4 MB, free: 115 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006614/0.5425, allocations: 0.5991 MB / 454 MB, free: 114.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006614/0.5432, allocations: 486.5 kB / 454.5 MB, free: 114.2 MB / 394.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5432, allocations: 0 / 454.5 MB, free: 114.2 MB / 394.7 MB Notification: Performance of Templates: time 0.04604/0.5892, allocations: 62.88 MB / 0.5052 GB, free: 53.04 MB / 394.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 -ignoreHideResult -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.9463935839012265]