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.0009622/0.0009622, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001102/0.001102, allocations: 167.3 kB / 24.99 MB, free: 8.746 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.9274/0.9274, allocations: 177.1 MB / 205.3 MB, free: 5.645 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 2.274e-06/2.274e-06, allocations: 0 / 273 MB, free: 1.867 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.565e-05/2.792e-05, allocations: 5.688 kB / 273 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1765/0.1765, allocations: 64.85 MB / 337.9 MB, free: 1.098 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01901/0.1955, allocations: 22.37 MB / 360.3 MB, free: 10.66 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007598/0.1963, allocations: 43.56 kB / 360.3 MB, free: 10.62 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.1976, allocations: 0.6865 MB / 361 MB, free: 9.926 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01008/0.2076, allocations: 5.908 MB / 366.9 MB, free: 3.996 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00615/0.2138, allocations: 3.473 MB / 370.4 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01041/0.2242, allocations: 9.16 MB / 379.5 MB, free: 7.23 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008433/0.225, allocations: 0.6159 MB / 380.1 MB, free: 6.602 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001536/0.2266, allocations: 1.426 MB / 381.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006086/0.2272, allocations: 0.7167 MB / 382.3 MB, free: 4.453 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.462e-05/0.2273, allocations: 92 kB / 382.4 MB, free: 4.363 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009477/0.2368, allocations: 7.304 MB / 389.7 MB, free: 13.05 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002585/0.237, allocations: 306.7 kB / 390 MB, free: 12.75 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005438/0.2376, allocations: 0.4989 MB / 390.5 MB, free: 12.25 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008704/0.2463, allocations: 6.452 MB / 396.9 MB, free: 5.785 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2463, allocations: 0 / 396.9 MB, free: 5.785 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2463, allocations: 4 kB / 396.9 MB, free: 5.781 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.2463, allocations: 0 / 396.9 MB, free: 5.781 MB / 346.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.004586/0.2509, allocations: 2.567 MB / 399.5 MB, free: 3.164 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.2509, allocations: 8.031 kB / 399.5 MB, free: 3.156 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00445/0.2554, allocations: 0.9825 MB / 400.5 MB, free: 2.172 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001742/0.2571, allocations: 0.9547 MB / 401.4 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.548e-05/0.2572, allocations: 74.89 kB / 401.5 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.2573, allocations: 100.4 kB / 401.6 MB, free: 1.016 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002944/0.2602, allocations: 1.844 MB / 403.5 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.422e-05/0.2603, allocations: 7.875 kB / 403.5 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.454e-05/0.2603, allocations: 48 kB / 403.5 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.592e-05/0.2604, allocations: 24 kB / 403.5 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002526/0.2629, allocations: 1.026 MB / 404.6 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006266/0.2692, allocations: 7.741 MB / 412.3 MB, free: 5.828 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.2714, allocations: 0.9162 MB / 413.2 MB, free: 4.891 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003911/0.2718, allocations: 228.8 kB / 413.4 MB, free: 4.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1742/0.446, allocations: 34.83 MB / 448.3 MB, free: 130.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/0.4461, allocations: 51.38 kB / 448.3 MB, free: 130.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 2.665e-06/0.4461, allocations: 0 / 448.3 MB, free: 130.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.003287/0.4494, allocations: 1.699 MB / 450 MB, free: 128.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.4494, allocations: 198 kB / 450.2 MB, free: 128.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005429/0.45, allocations: 0.8437 MB / 451.1 MB, free: 127.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.7e-05/0.45, allocations: 41.69 kB / 451.1 MB, free: 127.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.4502, allocations: 0.6527 MB / 451.8 MB, free: 127.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.4503, allocations: 296.9 kB / 452 MB, free: 126.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.4505, allocations: 252.4 kB / 452.3 MB, free: 126.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.201e-05/0.4505, allocations: 0.5199 MB / 452.8 MB, free: 126.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.4508, allocations: 170.5 kB / 453 MB, free: 126 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000412/0.4512, allocations: 0.9027 MB / 453.9 MB, free: 124.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000666/0.4519, allocations: 1.017 MB / 454.9 MB, free: 123.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.4519, allocations: 4 kB / 454.9 MB, free: 123.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001/0.4529, allocations: 1.026 MB / 455.9 MB, free: 122.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.4529, allocations: 12.38 kB / 455.9 MB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.4529, allocations: 16 kB / 456 MB, free: 122.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/0.4544, allocations: 497.3 kB / 456.4 MB, free: 122 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005289/0.4549, allocations: 279.6 kB / 456.7 MB, free: 121.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005113/0.4554, allocations: 1.865 MB / 458.6 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.4558, allocations: 111.5 kB / 458.7 MB, free: 119.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.018e-05/0.4558, allocations: 71.97 kB / 458.8 MB, free: 119.6 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 (rightAdaptor.state_b.phase,rightAdaptor.state_a.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_b_des.phase,leftAdaptor.state_b.phase,leftAdaptor.state_a.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.state_b_des.phase,suddenExpansion2.state_b.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_b_des.phase,rightBoundary2.medium.phase,leftBoundary2.medium.phase,suddenExpansion1.state_b.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_b_des.phase,rightBoundary1.medium.phase,leftBoundary1.medium.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.0002138/0.456, allocations: 243.9 kB / 459 MB, free: 119.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.4562, allocations: 135.3 kB / 459.1 MB, free: 119.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001813/0.458, allocations: 2.799 MB / 461.9 MB, free: 116.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/0.458, allocations: 43.94 kB / 462 MB, free: 116.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.458, allocations: 3.938 kB / 462 MB, free: 116.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.458, allocations: 5.188 kB / 462 MB, free: 116.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002054/0.4601, allocations: 3.08 MB / 465.1 MB, free: 113.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.4601, allocations: 0 / 465.1 MB, free: 113.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003682/0.4604, allocations: 174.7 kB / 465.2 MB, free: 113.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006045/0.461, allocations: 0.5785 MB / 465.8 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.738e-05/0.4611, allocations: 20 kB / 465.8 MB, free: 112.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005261/0.4616, allocations: 2.068 MB / 467.9 MB, free: 110.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4616, allocations: 0.5625 kB / 467.9 MB, free: 110.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.4626, allocations: 1.621 MB / 469.5 MB, free: 108.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.935e-05/0.4627, allocations: 174.4 kB / 469.7 MB, free: 108.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.518e-05/0.4628, allocations: 47.67 kB / 469.7 MB, free: 108.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.463, allocations: 19.98 kB / 469.8 MB, free: 108.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.239e-05/0.4631, allocations: 60.55 kB / 469.8 MB, free: 108.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.961e-05/0.4631, allocations: 39.62 kB / 469.9 MB, free: 108.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000415/0.4635, allocations: 0.6384 MB / 470.5 MB, free: 107.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4635, allocations: 0 / 470.5 MB, free: 107.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002038/0.4656, allocations: 1.318 MB / 471.8 MB, free: 106.5 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.002433/0.468, allocations: 1.4 MB / 473.2 MB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.4691, allocations: 0.8712 MB / 474.1 MB, free: 104.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4691, allocations: 4 kB / 474.1 MB, free: 104.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005996/0.4697, allocations: 0.5687 MB / 474.7 MB, free: 103.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/0.4711, allocations: 0.6156 MB / 475.3 MB, free: 103.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002363/0.4734, allocations: 2.806 MB / 478.1 MB, free: 100.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001426/0.4736, allocations: 330.1 kB / 478.4 MB, free: 99.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005641/0.4741, allocations: 0.6113 MB / 479 MB, free: 99.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.4743, allocations: 112.5 kB / 479.1 MB, free: 99.29 MB / 378.7 MB Notification: Performance of SimCode: time 7.61e-07/0.4743, allocations: 0 / 479.1 MB, free: 99.29 MB / 378.7 MB Notification: Performance of Templates: time 0.04055/0.5148, allocations: 55.61 MB / 0.5222 GB, free: 44.17 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 -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: 5.002225894946605]