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.001851/0.001851, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002424/0.002424, allocations: 207.6 kB / 23.73 MB, free: 4.379 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.581/1.581, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001555/0.001555, allocations: 47.92 kB / 378.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3108, allocations: 53.37 MB / 431.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06565/0.3764, allocations: 57.55 MB / 489.1 MB, free: 12.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02971/0.4061, allocations: 20.09 MB / 0.4973 GB, free: 8.824 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001692/0.4078, allocations: 43.56 kB / 0.4973 GB, free: 8.781 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002231/0.4101, allocations: 0.6635 MB / 0.498 GB, free: 8.113 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01894/0.429, allocations: 5.826 MB / 0.5036 GB, free: 2.285 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01037/0.4394, allocations: 3.418 MB / 0.507 GB, free: 14.87 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01811/0.4575, allocations: 9.102 MB / 0.5159 GB, free: 5.645 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001481/0.4589, allocations: 0.5882 MB / 0.5164 GB, free: 5.047 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00259/0.4615, allocations: 1.078 MB / 0.5175 GB, free: 3.965 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001299/0.4628, allocations: 0.848 MB / 0.5183 GB, free: 3.113 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001715/0.463, allocations: 92 kB / 0.5184 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01629/0.4793, allocations: 7.606 MB / 0.5258 GB, free: 11.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004565/0.4798, allocations: 286.8 kB / 0.5261 GB, free: 11.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009797/0.4807, allocations: 0.5989 MB / 0.5267 GB, free: 10.53 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01496/0.4957, allocations: 5.774 MB / 0.5323 GB, free: 4.738 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.4957, allocations: 3.938 kB / 0.5323 GB, free: 4.734 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4957, allocations: 0 / 0.5323 GB, free: 4.734 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.129e-05/0.4958, allocations: 0 / 0.5323 GB, free: 4.734 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.00746/0.5032, allocations: 2.452 MB / 0.5347 GB, free: 2.238 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.5033, allocations: 16.03 kB / 0.5348 GB, free: 2.223 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004876/0.5082, allocations: 0.6556 MB / 0.5354 GB, free: 1.566 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002254/0.5104, allocations: 0.9682 MB / 0.5363 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.027e-05/0.5105, allocations: 78.39 kB / 0.5364 GB, free: 500 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/0.5106, allocations: 103.9 kB / 0.5365 GB, free: 396 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2448/0.7554, allocations: 1.972 MB / 0.5384 GB, free: 107.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.638e-05/0.7555, allocations: 6.719 kB / 0.5384 GB, free: 107.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.7556, allocations: 45.06 kB / 0.5385 GB, free: 107.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.927e-05/0.7556, allocations: 26.88 kB / 0.5385 GB, free: 107.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003431/0.759, allocations: 1.46 MB / 0.5399 GB, free: 107.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007622/0.7667, allocations: 6.254 MB / 0.546 GB, free: 103 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002584/0.7692, allocations: 1.035 MB / 0.5471 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004783/0.7697, allocations: 365.6 kB / 0.5474 GB, free: 102.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1032/0.8729, allocations: 34.83 MB / 0.5814 GB, free: 70.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/0.873, allocations: 43.06 kB / 0.5815 GB, free: 70.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.425e-06/0.873, allocations: 0 / 0.5815 GB, free: 70.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.00525/0.8782, allocations: 1.899 MB / 0.5833 GB, free: 68.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.8783, allocations: 196.4 kB / 0.5835 GB, free: 68.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007554/0.879, allocations: 0.8238 MB / 0.5843 GB, free: 67.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.968e-05/0.8791, allocations: 41.7 kB / 0.5843 GB, free: 67.44 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002561/0.8793, allocations: 0.5993 MB / 0.5849 GB, free: 66.89 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.8795, allocations: 287.7 kB / 0.5852 GB, free: 66.65 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000231/0.8797, allocations: 238.8 kB / 0.5854 GB, free: 66.41 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.736e-05/0.8798, allocations: 349.9 kB / 0.5858 GB, free: 66.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004261/0.8802, allocations: 298.5 kB / 0.586 GB, free: 65.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006445/0.8808, allocations: 0.8479 MB / 0.5869 GB, free: 64.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.882, allocations: 1.094 MB / 0.5879 GB, free: 63.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.882, allocations: 4 kB / 0.5879 GB, free: 63.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001646/0.8836, allocations: 1.235 MB / 0.5892 GB, free: 62.17 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.8836, allocations: 12 kB / 0.5892 GB, free: 62.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.8836, allocations: 15.98 kB / 0.5892 GB, free: 62.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002916/0.8866, allocations: 0.52 MB / 0.5897 GB, free: 61.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009302/0.8875, allocations: 284.8 kB / 0.59 GB, free: 61.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007322/0.8882, allocations: 1.372 MB / 0.5913 GB, free: 59.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006189/0.8888, allocations: 117 kB / 0.5914 GB, free: 59.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.5e-05/0.8889, allocations: 68.03 kB / 0.5915 GB, free: 59.76 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.0003522/0.8893, allocations: 291.1 kB / 0.5918 GB, free: 59.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.8894, allocations: 112.4 kB / 0.5919 GB, free: 59.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003571/0.893, allocations: 4.593 MB / 0.5963 GB, free: 54.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-05/0.893, allocations: 43.94 kB / 0.5964 GB, free: 54.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.893, allocations: 4 kB / 0.5964 GB, free: 54.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.8931, allocations: 7.922 kB / 0.5964 GB, free: 54.76 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003779/0.8968, allocations: 4.278 MB / 0.6006 GB, free: 50.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.8968, allocations: 8 kB / 0.6006 GB, free: 50.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006976/0.8975, allocations: 163.7 kB / 0.6007 GB, free: 50.33 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001193/0.8987, allocations: 0.6683 MB / 0.6014 GB, free: 49.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.872e-05/0.8988, allocations: 31.92 kB / 0.6014 GB, free: 49.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009042/0.8997, allocations: 1.779 MB / 0.6032 GB, free: 47.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.8997, allocations: 3.938 kB / 0.6032 GB, free: 47.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.9015, allocations: 2.007 MB / 0.6051 GB, free: 45.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001821/0.9016, allocations: 185.7 kB / 0.6053 GB, free: 45.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/0.9018, allocations: 47.67 kB / 0.6053 GB, free: 45.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004224/0.9022, allocations: 16 kB / 0.6054 GB, free: 45.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.234e-05/0.9023, allocations: 60.55 kB / 0.6054 GB, free: 45.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.658e-05/0.9023, allocations: 32.06 kB / 0.6055 GB, free: 45.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006639/0.903, allocations: 0.7205 MB / 0.6062 GB, free: 44.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.903, allocations: 0 / 0.6062 GB, free: 44.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002967/0.9059, allocations: 1.322 MB / 0.6074 GB, free: 43.38 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.00318/0.9091, allocations: 1.251 MB / 0.6087 GB, free: 42.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002/0.9111, allocations: 1.237 MB / 0.6099 GB, free: 40.99 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.9111, allocations: 0 / 0.6099 GB, free: 40.99 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.9123, allocations: 0.7512 MB / 0.6106 GB, free: 40.24 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002377/0.9147, allocations: 0.5796 MB / 0.6112 GB, free: 39.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00316/0.9178, allocations: 3.109 MB / 0.6142 GB, free: 36.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004658/0.9183, allocations: 0.7385 MB / 0.6149 GB, free: 35.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000835/0.9191, allocations: 0.6126 MB / 0.6155 GB, free: 35.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002/0.9193, allocations: 111.4 kB / 0.6156 GB, free: 35.05 MB / 446.1 MB Notification: Performance of SimCode: time 4.71e-07/0.9193, allocations: 8 kB / 0.6156 GB, free: 35.05 MB / 446.1 MB Notification: Performance of Templates: time 0.06971/0.9891, allocations: 57.87 MB / 0.6722 GB, free: 9.68 MB / 478.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins/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: 8.907689101994038]