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.001372/0.001372, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 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.001848/0.001848, allocations: 213.2 kB / 24.48 MB, free: 3.84 MB / 14.72 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 1.475/1.475, allocations: 230.6 MB / 258.3 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00187/0.00187, allocations: 47.92 kB / 379 MB, free: 2.574 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3034, allocations: 53.36 MB / 432.3 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.07466/0.3781, allocations: 57.56 MB / 489.9 MB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03092/0.409, allocations: 20.07 MB / 0.498 GB, free: 8.867 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001663/0.4107, allocations: 43.56 kB / 0.498 GB, free: 8.824 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002579/0.4133, allocations: 0.6713 MB / 0.4987 GB, free: 8.148 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01818/0.4314, allocations: 5.818 MB / 0.5044 GB, free: 2.324 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01038/0.4418, allocations: 3.425 MB / 0.5077 GB, free: 14.9 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01708/0.4589, allocations: 9.09 MB / 0.5166 GB, free: 5.691 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001325/0.4602, allocations: 0.5803 MB / 0.5172 GB, free: 5.102 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002313/0.4625, allocations: 1.074 MB / 0.5182 GB, free: 4.023 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001434/0.464, allocations: 0.8128 MB / 0.519 GB, free: 3.207 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002068/0.4642, allocations: 95.98 kB / 0.5191 GB, free: 3.113 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0153/0.4795, allocations: 7.282 MB / 0.5262 GB, free: 11.82 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005486/0.48, allocations: 306.7 kB / 0.5265 GB, free: 11.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001063/0.4811, allocations: 0.5873 MB / 0.5271 GB, free: 10.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01387/0.495, allocations: 5.766 MB / 0.5327 GB, free: 5.152 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.153e-05/0.495, allocations: 4 kB / 0.5327 GB, free: 5.148 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.495, allocations: 0 / 0.5327 GB, free: 5.148 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.407e-05/0.495, allocations: 0 / 0.5327 GB, free: 5.148 MB / 446.1 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.006805/0.5018, allocations: 2.464 MB / 0.5351 GB, free: 2.641 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.5019, allocations: 8.031 kB / 0.5351 GB, free: 2.633 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004727/0.5066, allocations: 0.6635 MB / 0.5358 GB, free: 1.969 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002432/0.509, allocations: 0.9605 MB / 0.5367 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.688e-05/0.5091, allocations: 74.39 kB / 0.5368 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001602/0.5093, allocations: 107.9 kB / 0.5369 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2409/0.7501, allocations: 1.975 MB / 0.5388 GB, free: 107.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/0.7501, allocations: 2.875 kB / 0.5388 GB, free: 107.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.7503, allocations: 49.19 kB / 0.5389 GB, free: 107.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-05/0.7503, allocations: 26.81 kB / 0.5389 GB, free: 107.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003545/0.7539, allocations: 1.457 MB / 0.5403 GB, free: 107.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007904/0.7618, allocations: 6.255 MB / 0.5464 GB, free: 103 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002548/0.7643, allocations: 1.04 MB / 0.5474 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000478/0.7648, allocations: 355.6 kB / 0.5478 GB, free: 102.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1051/0.8699, allocations: 34.83 MB / 0.5818 GB, free: 71.04 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.186e-05/0.8699, allocations: 47.06 kB / 0.5818 GB, free: 70.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 3.076e-06/0.8699, allocations: 0 / 0.5818 GB, free: 70.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005201/0.8751, allocations: 1.898 MB / 0.5837 GB, free: 69.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.239e-05/0.8752, allocations: 192.4 kB / 0.5839 GB, free: 68.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007774/0.876, allocations: 0.8238 MB / 0.5847 GB, free: 68.01 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.441e-05/0.876, allocations: 45.64 kB / 0.5847 GB, free: 67.96 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002669/0.8763, allocations: 0.6013 MB / 0.5853 GB, free: 67.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001535/0.8764, allocations: 287 kB / 0.5856 GB, free: 67.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002341/0.8767, allocations: 234.8 kB / 0.5858 GB, free: 66.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.166e-05/0.8767, allocations: 353.9 kB / 0.5861 GB, free: 66.58 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004322/0.8772, allocations: 298.5 kB / 0.5864 GB, free: 66.29 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006164/0.8778, allocations: 0.8426 MB / 0.5872 GB, free: 65.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.8788, allocations: 1.098 MB / 0.5883 GB, free: 63.93 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.8789, allocations: 4 kB / 0.5883 GB, free: 63.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001634/0.8805, allocations: 1.231 MB / 0.5895 GB, free: 62.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.8805, allocations: 12 kB / 0.5895 GB, free: 62.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.8805, allocations: 16.91 kB / 0.5896 GB, free: 62.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003005/0.8835, allocations: 0.5234 MB / 0.5901 GB, free: 62.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009409/0.8845, allocations: 279.5 kB / 0.5903 GB, free: 61.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007424/0.8852, allocations: 1.375 MB / 0.5917 GB, free: 60.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006581/0.8859, allocations: 113.9 kB / 0.5918 GB, free: 60.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.83e-05/0.8859, allocations: 76.02 kB / 0.5919 GB, free: 60.28 MB / 446.1 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.0004076/0.8864, allocations: 293 kB / 0.5921 GB, free: 59.99 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001805/0.8865, allocations: 107.3 kB / 0.5922 GB, free: 59.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003624/0.8902, allocations: 4.609 MB / 0.5967 GB, free: 55.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-05/0.8902, allocations: 47.88 kB / 0.5968 GB, free: 55.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.8902, allocations: 3.844 kB / 0.5968 GB, free: 55.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.8902, allocations: 3.984 kB / 0.5968 GB, free: 55.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003867/0.8941, allocations: 4.291 MB / 0.601 GB, free: 51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.8941, allocations: 0 / 0.601 GB, free: 51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007233/0.8948, allocations: 167.7 kB / 0.6011 GB, free: 50.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001238/0.896, allocations: 0.68 MB / 0.6018 GB, free: 50.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.164e-05/0.8961, allocations: 23.94 kB / 0.6018 GB, free: 50.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009719/0.897, allocations: 1.771 MB / 0.6036 GB, free: 48.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.8971, allocations: 3.938 kB / 0.6036 GB, free: 48.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001887/0.8989, allocations: 2.015 MB / 0.6055 GB, free: 46.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002387/0.8992, allocations: 176.2 kB / 0.6057 GB, free: 46.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.8993, allocations: 55.7 kB / 0.6058 GB, free: 46.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000437/0.8998, allocations: 19.98 kB / 0.6058 GB, free: 46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.593e-05/0.8998, allocations: 64.44 kB / 0.6058 GB, free: 45.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-05/0.8999, allocations: 31.98 kB / 0.6059 GB, free: 45.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006908/0.9006, allocations: 0.7166 MB / 0.6066 GB, free: 45.19 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.9006, allocations: 0 / 0.6066 GB, free: 45.19 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003242/0.9038, allocations: 1.318 MB / 0.6078 GB, free: 43.87 MB / 446.1 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.003798/0.9076, allocations: 1.257 MB / 0.6091 GB, free: 42.72 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00231/0.9099, allocations: 1.228 MB / 0.6103 GB, free: 41.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/0.9099, allocations: 0 / 0.6103 GB, free: 41.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.9113, allocations: 0.7603 MB / 0.611 GB, free: 40.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002644/0.9139, allocations: 0.5769 MB / 0.6116 GB, free: 40.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003599/0.9175, allocations: 3.154 MB / 0.6147 GB, free: 36.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/0.918, allocations: 0.7342 MB / 0.6154 GB, free: 36.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002756/0.9183, allocations: 123.4 kB / 0.6155 GB, free: 36.09 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/0.9183, allocations: 0 / 0.6155 GB, free: 36.09 MB / 446.1 MB Notification: Performance of Templates: time 0.05728/0.9756, allocations: 50.52 MB / 0.6648 GB, free: 1.594 MB / 462.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.972240861039609]