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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002199/0.002199, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002236/0.002236, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 59.89 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2694, allocations: 50.55 MB / 409.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06162/0.3311, allocations: 63.03 MB / 472.9 MB, free: 2.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0281/0.3592, allocations: 22.45 MB / 495.4 MB, free: 11.85 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.3608, allocations: 27.81 kB / 495.4 MB, free: 11.82 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002333/0.3632, allocations: 0.7257 MB / 496.1 MB, free: 11.09 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01665/0.3798, allocations: 5.798 MB / 0.4902 GB, free: 5.289 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01/0.3899, allocations: 3.475 MB / 0.4936 GB, free: 1.816 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01777/0.4077, allocations: 9.044 MB / 0.5024 GB, free: 8.656 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001569/0.4093, allocations: 0.6924 MB / 0.5031 GB, free: 7.953 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002391/0.4117, allocations: 1.066 MB / 0.5041 GB, free: 6.883 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001618/0.4134, allocations: 0.8285 MB / 0.5049 GB, free: 6.051 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004179/0.4138, allocations: 92 kB / 0.505 GB, free: 5.961 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0159/0.4297, allocations: 7.676 MB / 0.5125 GB, free: 14.28 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006068/0.4304, allocations: 286.9 kB / 0.5128 GB, free: 14 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001532/0.4319, allocations: 0.7114 MB / 0.5135 GB, free: 13.28 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01355/0.4455, allocations: 5.764 MB / 0.5191 GB, free: 7.504 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.4455, allocations: 0 / 0.5191 GB, free: 7.504 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4455, allocations: 0 / 0.5191 GB, free: 7.504 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.56e-05/0.4456, allocations: 4 kB / 0.5191 GB, free: 7.5 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.007128/0.4528, allocations: 2.472 MB / 0.5215 GB, free: 4.973 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.4528, allocations: 8.031 kB / 0.5215 GB, free: 4.965 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005067/0.4579, allocations: 0.6549 MB / 0.5222 GB, free: 4.309 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002263/0.4602, allocations: 1.043 MB / 0.5232 GB, free: 3.219 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.555e-05/0.4603, allocations: 74.39 kB / 0.5233 GB, free: 3.145 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002149/0.4605, allocations: 103.9 kB / 0.5234 GB, free: 3.043 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004172/0.4647, allocations: 1.667 MB / 0.525 GB, free: 1.223 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.4647, allocations: 3.938 kB / 0.525 GB, free: 1.219 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001508/0.4649, allocations: 55.98 kB / 0.5251 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.591e-05/0.4649, allocations: 27.98 kB / 0.5251 GB, free: 1.137 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003691/0.4686, allocations: 1.467 MB / 0.5265 GB, free: 15.66 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01047/0.4791, allocations: 8.388 MB / 0.5347 GB, free: 6.664 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003136/0.4823, allocations: 1.697 MB / 0.5364 GB, free: 4.801 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006429/0.483, allocations: 406.8 kB / 0.5367 GB, free: 4.402 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3388/0.8218, allocations: 70.66 MB / 0.6057 GB, free: 65.94 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.67e-05/0.8219, allocations: 43.12 kB / 0.6058 GB, free: 65.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.836e-06/0.8219, allocations: 0 / 0.6058 GB, free: 65.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005339/0.8273, allocations: 1.998 MB / 0.6077 GB, free: 63.93 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.964e-05/0.8274, allocations: 188.5 kB / 0.6079 GB, free: 63.71 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009958/0.8284, allocations: 0.9594 MB / 0.6089 GB, free: 62.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.813e-05/0.8284, allocations: 42.91 kB / 0.6089 GB, free: 62.71 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002928/0.8287, allocations: 0.5687 MB / 0.6095 GB, free: 62.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.8289, allocations: 274 kB / 0.6097 GB, free: 61.94 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002452/0.8292, allocations: 238.6 kB / 0.6099 GB, free: 61.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.254e-05/0.8292, allocations: 353.9 kB / 0.6103 GB, free: 61.34 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004372/0.8297, allocations: 302.5 kB / 0.6106 GB, free: 61.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005958/0.8303, allocations: 0.7402 MB / 0.6113 GB, free: 60.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.8314, allocations: 1.102 MB / 0.6124 GB, free: 58.82 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.8314, allocations: 4 kB / 0.6124 GB, free: 58.81 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001871/0.8333, allocations: 1.237 MB / 0.6136 GB, free: 57.56 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.8333, allocations: 19.03 kB / 0.6136 GB, free: 57.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.8333, allocations: 16 kB / 0.6136 GB, free: 57.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003092/0.8364, allocations: 0.5234 MB / 0.6141 GB, free: 57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009338/0.8374, allocations: 279.5 kB / 0.6144 GB, free: 56.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007458/0.8382, allocations: 1.371 MB / 0.6157 GB, free: 55.31 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000771/0.8389, allocations: 138.5 kB / 0.6159 GB, free: 55.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.429e-05/0.839, allocations: 67.98 kB / 0.6159 GB, free: 55.11 MB / 462.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.0004162/0.8394, allocations: 303.8 kB / 0.6162 GB, free: 54.81 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.8396, allocations: 126.4 kB / 0.6163 GB, free: 54.68 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003438/0.8431, allocations: 4.492 MB / 0.6207 GB, free: 50.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.058e-05/0.8431, allocations: 43.94 kB / 0.6208 GB, free: 50.15 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.8431, allocations: 0 / 0.6208 GB, free: 50.15 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.8431, allocations: 7.922 kB / 0.6208 GB, free: 50.14 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003968/0.8471, allocations: 4.94 MB / 0.6256 GB, free: 45.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.8472, allocations: 0 / 0.6256 GB, free: 45.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007259/0.8479, allocations: 163.7 kB / 0.6258 GB, free: 44.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.8492, allocations: 0.6723 MB / 0.6264 GB, free: 44.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.854e-05/0.8492, allocations: 28.44 kB / 0.6264 GB, free: 44.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009373/0.8502, allocations: 1.755 MB / 0.6281 GB, free: 42.38 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.8502, allocations: 4 kB / 0.6282 GB, free: 42.37 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001907/0.8521, allocations: 2.019 MB / 0.6301 GB, free: 40.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002913/0.8524, allocations: 270.2 kB / 0.6304 GB, free: 40.01 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001688/0.8526, allocations: 47.59 kB / 0.6304 GB, free: 39.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004695/0.853, allocations: 23.94 kB / 0.6305 GB, free: 39.94 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.095e-05/0.8531, allocations: 52.48 kB / 0.6305 GB, free: 39.89 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.852e-05/0.8532, allocations: 36.83 kB / 0.6305 GB, free: 39.86 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008405/0.854, allocations: 0.8264 MB / 0.6313 GB, free: 39.03 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.854, allocations: 0 / 0.6313 GB, free: 39.03 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003147/0.8572, allocations: 1.288 MB / 0.6326 GB, free: 37.82 MB / 462.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.004166/0.8614, allocations: 1.248 MB / 0.6338 GB, free: 36.78 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002431/0.8638, allocations: 1.252 MB / 0.635 GB, free: 35.53 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.8639, allocations: 6.812 kB / 0.635 GB, free: 35.52 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00148/0.8653, allocations: 0.9176 MB / 0.6359 GB, free: 34.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003354/0.8687, allocations: 0.7388 MB / 0.6367 GB, free: 33.89 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00343/0.8722, allocations: 3.062 MB / 0.6397 GB, free: 30.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004947/0.8727, allocations: 1.316 MB / 0.6409 GB, free: 29.45 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002886/0.873, allocations: 123.4 kB / 0.6411 GB, free: 29.32 MB / 462.1 MB Notification: Performance of SimCode: time 5.51e-07/0.873, allocations: 3.938 kB / 0.6411 GB, free: 29.32 MB / 462.1 MB Notification: Performance of Templates: time 0.05586/0.9289, allocations: 51.18 MB / 0.691 GB, free: 10.16 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,suddenExpansion1.dp,suddenExpansion1.m_flow,suddenExpansion1.port_b_T,suddenExpansion2.dp,suddenExpansion2.m_flow,suddenExpansion2.port_b_T Variables in the result:suddenExpansion1.dp,suddenExpansion1.m_flow,suddenExpansion1.port_b_T,suddenExpansion2.dp,suddenExpansion2.m_flow,suddenExpansion2.port_b_T,time