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.001012/0.001012, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001775/0.001775, allocations: 168.9 kB / 24.91 MB, free: 8.723 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.9206/0.9206, allocations: 177.1 MB / 205.3 MB, free: 4.488 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 1.212e-06/1.212e-06, allocations: 0 / 273.4 MB, free: 4.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.031e-05/2.152e-05, allocations: 3 kB / 273.4 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.01666/0.01668, allocations: 20.41 MB / 293.9 MB, free: 15.97 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01549/0.03217, allocations: 15.81 MB / 309.7 MB, free: 104 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009649/0.03314, allocations: 43.62 kB / 309.7 MB, free: 60 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008498/0.03399, allocations: 404.9 kB / 310.1 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01112/0.04511, allocations: 5.372 MB / 315.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004686/0.04979, allocations: 2.395 MB / 317.9 MB, free: 7.863 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01093/0.06072, allocations: 9.23 MB / 327.1 MB, free: 14.51 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.06175, allocations: 0.6275 MB / 327.7 MB, free: 13.86 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009418/0.07117, allocations: 7.712 MB / 335.4 MB, free: 6.039 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001004/0.07217, allocations: 0.7089 MB / 336.2 MB, free: 5.328 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.07229, allocations: 92 kB / 336.2 MB, free: 5.238 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1342/0.2065, allocations: 6.959 MB / 343.2 MB, free: 37.86 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003508/0.2068, allocations: 303 kB / 343.5 MB, free: 37.86 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001112/0.2079, allocations: 0.4925 MB / 344 MB, free: 37.86 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01129/0.2192, allocations: 6.085 MB / 350.1 MB, free: 37.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2192, allocations: 3.438 kB / 350.1 MB, free: 37.78 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2192, allocations: 0 / 350.1 MB, free: 37.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.097e-05/0.2193, allocations: 0 / 350.1 MB, free: 37.78 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.00501/0.2243, allocations: 2.402 MB / 352.5 MB, free: 36.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.2243, allocations: 11.69 kB / 352.5 MB, free: 36.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002557/0.2269, allocations: 1.02 MB / 353.5 MB, free: 36.74 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/0.2281, allocations: 0.7899 MB / 354.3 MB, free: 36.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.95e-05/0.2282, allocations: 74.89 kB / 354.4 MB, free: 36.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.355e-05/0.2283, allocations: 105.2 kB / 354.5 MB, free: 36.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00181/0.2301, allocations: 1.711 MB / 356.2 MB, free: 35.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.013e-05/0.2301, allocations: 7.969 kB / 356.2 MB, free: 35.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.573e-05/0.2302, allocations: 49.06 kB / 356.2 MB, free: 35.68 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.2302, allocations: 27.84 kB / 356.3 MB, free: 35.68 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/0.2315, allocations: 0.8535 MB / 357.1 MB, free: 35.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004009/0.2355, allocations: 5.239 MB / 362.4 MB, free: 32.24 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.2368, allocations: 0.8131 MB / 363.2 MB, free: 32.19 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.237, allocations: 161.7 kB / 363.3 MB, free: 32.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1638/0.4008, allocations: 96.48 MB / 459.8 MB, free: 8.238 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/0.4009, allocations: 50.3 kB / 459.9 MB, free: 8.184 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 2.645e-06/0.4009, allocations: 0 / 459.9 MB, free: 8.184 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.003002/0.4039, allocations: 1.421 MB / 461.3 MB, free: 6.766 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.471e-05/0.4039, allocations: 195.7 kB / 461.5 MB, free: 6.535 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005361/0.4045, allocations: 0.7424 MB / 462.2 MB, free: 5.918 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.808e-05/0.4045, allocations: 37.7 kB / 462.3 MB, free: 5.875 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002196/0.4047, allocations: 0.496 MB / 462.8 MB, free: 5.422 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.4049, allocations: 279.8 kB / 463 MB, free: 5.164 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001886/0.4051, allocations: 230.8 kB / 463.3 MB, free: 4.961 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.606e-05/0.4052, allocations: 346.9 kB / 463.6 MB, free: 4.637 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.4053, allocations: 110.6 kB / 463.7 MB, free: 4.527 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003873/0.4057, allocations: 0.6762 MB / 464.4 MB, free: 3.652 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006124/0.4063, allocations: 0.7686 MB / 465.1 MB, free: 2.773 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/0.4063, allocations: 4 kB / 465.1 MB, free: 2.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0007866/0.4071, allocations: 0.7132 MB / 465.9 MB, free: 2.137 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.4071, allocations: 8 kB / 465.9 MB, free: 2.129 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.4071, allocations: 16 kB / 465.9 MB, free: 2.113 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001378/0.4085, allocations: 493.8 kB / 466.4 MB, free: 1.637 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005278/0.409, allocations: 260.3 kB / 466.6 MB, free: 1.398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007319/0.4098, allocations: 1.233 MB / 467.9 MB, free: 140 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005318/0.4103, allocations: 118.9 kB / 468 MB, free: 28 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.776e-05/0.4104, allocations: 56.05 kB / 468 MB, free: 15.97 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.0002935/0.4107, allocations: 199.4 kB / 468.2 MB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.4108, allocations: 99.89 kB / 468.3 MB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001969/0.4128, allocations: 2.428 MB / 470.7 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-05/0.4128, allocations: 47.92 kB / 470.8 MB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.4128, allocations: 0 / 470.8 MB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.4128, allocations: 3.984 kB / 470.8 MB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002467/0.4153, allocations: 2.482 MB / 473.3 MB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.4153, allocations: 0 / 473.3 MB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004113/0.4157, allocations: 154.4 kB / 473.4 MB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000685/0.4164, allocations: 0.5461 MB / 474 MB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.907e-05/0.4164, allocations: 22.75 kB / 474 MB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009207/0.4174, allocations: 1.418 MB / 475.4 MB, free: 8.734 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4174, allocations: 0 / 475.4 MB, free: 8.734 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009724/0.4183, allocations: 1.252 MB / 476.7 MB, free: 7.484 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.4185, allocations: 181.3 kB / 476.8 MB, free: 7.309 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.046e-05/0.4186, allocations: 43.8 kB / 476.9 MB, free: 7.266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.4188, allocations: 26.72 kB / 476.9 MB, free: 7.242 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.447e-05/0.4189, allocations: 60.48 kB / 477 MB, free: 7.184 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/0.4189, allocations: 19.98 kB / 477 MB, free: 7.164 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003258/0.4193, allocations: 445.7 kB / 477.4 MB, free: 6.773 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.4193, allocations: 0 / 477.4 MB, free: 6.773 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004261/0.4235, allocations: 1.306 MB / 478.7 MB, free: 5.465 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.004903/0.4284, allocations: 1.462 MB / 480.2 MB, free: 4.113 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.4297, allocations: 0.7047 MB / 480.9 MB, free: 3.469 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.442e-05/0.4298, allocations: 17.81 kB / 480.9 MB, free: 3.449 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00062/0.4304, allocations: 473.2 kB / 481.4 MB, free: 3.02 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/0.432, allocations: 0.627 MB / 482 MB, free: 2.414 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1284/0.5604, allocations: 2.756 MB / 484.8 MB, free: 126.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003464/0.5607, allocations: 321.1 kB / 485.1 MB, free: 126.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001156/0.5619, allocations: 0.602 MB / 485.7 MB, free: 126.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000913/0.5628, allocations: 484.8 kB / 486.1 MB, free: 126.2 MB / 394.7 MB Notification: Performance of SimCode: time 2.214e-06/0.5628, allocations: 2.359 kB / 486.2 MB, free: 126.2 MB / 394.7 MB Notification: Performance of Templates: time 0.05549/0.6183, allocations: 61.82 MB / 0.5351 GB, free: 77.69 MB / 394.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: 4.936785499099642]