Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 114 kB / 18.4 MB, free: 4.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002109/0.00211, allocations: 182.4 kB / 19.33 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.596/1.596, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 55.92 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1056, allocations: 46.61 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2734/0.3791, allocations: 62.85 MB / 438.7 MB, free: 452 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03029/0.4094, allocations: 22.45 MB / 461.1 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00209/0.4115, allocations: 31.75 kB / 461.1 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002635/0.4142, allocations: 0.7335 MB / 461.9 MB, free: 9.445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01975/0.434, allocations: 5.777 MB / 467.6 MB, free: 3.652 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01125/0.4453, allocations: 3.447 MB / 471.1 MB, free: 196 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01917/0.4645, allocations: 9.044 MB / 480.1 MB, free: 7.031 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001706/0.4662, allocations: 0.6886 MB / 480.8 MB, free: 6.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002555/0.4688, allocations: 1.059 MB / 481.9 MB, free: 5.277 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001734/0.4706, allocations: 0.8401 MB / 482.7 MB, free: 4.434 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004341/0.471, allocations: 92 kB / 482.8 MB, free: 4.344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0166/0.4876, allocations: 7.66 MB / 490.5 MB, free: 12.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005746/0.4882, allocations: 278.9 kB / 490.7 MB, free: 12.4 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001416/0.4897, allocations: 0.7153 MB / 491.5 MB, free: 11.68 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01436/0.5041, allocations: 5.745 MB / 497.2 MB, free: 5.926 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.5041, allocations: 4 kB / 497.2 MB, free: 5.922 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5041, allocations: 0 / 497.2 MB, free: 5.922 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.176e-05/0.5042, allocations: 0 / 497.2 MB, free: 5.922 MB / 414.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.007098/0.5113, allocations: 2.471 MB / 499.7 MB, free: 3.395 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.5114, allocations: 12.03 kB / 499.7 MB, free: 3.383 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004961/0.5163, allocations: 0.6471 MB / 0.4886 GB, free: 2.734 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00228/0.5187, allocations: 1.043 MB / 0.4896 GB, free: 1.645 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.255e-05/0.5188, allocations: 78.58 kB / 0.4897 GB, free: 1.566 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000312/0.5191, allocations: 99.94 kB / 0.4898 GB, free: 1.469 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00409/0.5232, allocations: 1.675 MB / 0.4914 GB, free: 15.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.5232, allocations: 8 kB / 0.4914 GB, free: 15.63 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001358/0.5234, allocations: 51.94 kB / 0.4915 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.628e-05/0.5234, allocations: 28 kB / 0.4915 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00345/0.5269, allocations: 1.463 MB / 0.4929 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01052/0.5374, allocations: 8.385 MB / 0.5011 GB, free: 5.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003278/0.5407, allocations: 1.704 MB / 0.5028 GB, free: 3.223 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006656/0.5414, allocations: 404.4 kB / 0.5032 GB, free: 2.824 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3079/0.8494, allocations: 63.65 MB / 0.5653 GB, free: 150.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.8495, allocations: 43.77 kB / 0.5654 GB, free: 150.1 MB / 478.1 MB Notification: Performance of pre-optimization done (n=77): time 3.046e-06/0.8495, allocations: 0 / 0.5654 GB, free: 150.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=77): time 0.005948/0.8554, allocations: 1.993 MB / 0.5673 GB, free: 149.9 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.49e-05/0.8555, allocations: 190.2 kB / 0.5675 GB, free: 149.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.8567, allocations: 0.9661 MB / 0.5685 GB, free: 149.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.121e-05/0.8568, allocations: 41.83 kB / 0.5685 GB, free: 149.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003188/0.8571, allocations: 0.562 MB / 0.569 GB, free: 148.9 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.8573, allocations: 279.2 kB / 0.5693 GB, free: 148.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002911/0.8576, allocations: 234.5 kB / 0.5695 GB, free: 148.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.582e-05/0.8577, allocations: 354.7 kB / 0.5699 GB, free: 148.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000487/0.8582, allocations: 306.2 kB / 0.5702 GB, free: 148.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000724/0.8589, allocations: 0.7453 MB / 0.5709 GB, free: 147.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.8601, allocations: 1.097 MB / 0.572 GB, free: 146.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.09e-05/0.8601, allocations: 4.156 kB / 0.572 GB, free: 146.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002036/0.8622, allocations: 1.242 MB / 0.5732 GB, free: 146.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.8622, allocations: 11.44 kB / 0.5732 GB, free: 146.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.8623, allocations: 14.47 kB / 0.5732 GB, free: 146.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003186/0.8654, allocations: 0.5288 MB / 0.5737 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.8665, allocations: 280.9 kB / 0.574 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008412/0.8674, allocations: 1.377 MB / 0.5753 GB, free: 144.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008756/0.8683, allocations: 134.8 kB / 0.5755 GB, free: 144.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/0.8684, allocations: 68.95 kB / 0.5755 GB, free: 144.6 MB / 478.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.0004593/0.8689, allocations: 299.2 kB / 0.5758 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002315/0.8691, allocations: 120.4 kB / 0.5759 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004386/0.8735, allocations: 4.482 MB / 0.5803 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-05/0.8736, allocations: 42.75 kB / 0.5803 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.8736, allocations: 5.219 kB / 0.5804 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.8736, allocations: 7.969 kB / 0.5804 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004302/0.8779, allocations: 4.935 MB / 0.5852 GB, free: 138.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.878, allocations: 0 / 0.5852 GB, free: 138.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007165/0.8787, allocations: 165.5 kB / 0.5853 GB, free: 138.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001254/0.88, allocations: 0.6768 MB / 0.586 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.437e-05/0.88, allocations: 24.23 kB / 0.586 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.881, allocations: 1.752 MB / 0.5877 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.8811, allocations: 4.094 kB / 0.5877 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001979/0.883, allocations: 2.027 MB / 0.5897 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002827/0.8833, allocations: 266.3 kB / 0.59 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.8835, allocations: 35.69 kB / 0.59 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004612/0.884, allocations: 20 kB / 0.59 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.051e-05/0.8841, allocations: 67.17 kB / 0.5901 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.69e-05/0.8841, allocations: 36.67 kB / 0.5901 GB, free: 135.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008335/0.885, allocations: 0.8318 MB / 0.5909 GB, free: 134.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.885, allocations: 0 / 0.5909 GB, free: 134.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003175/0.8881, allocations: 1.28 MB / 0.5922 GB, free: 133.2 MB / 478.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.004468/0.8926, allocations: 1.254 MB / 0.5934 GB, free: 132.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002313/0.895, allocations: 1.255 MB / 0.5946 GB, free: 130.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/0.895, allocations: 4 kB / 0.5946 GB, free: 130.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.8964, allocations: 0.9164 MB / 0.5955 GB, free: 130 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003215/0.8996, allocations: 0.7291 MB / 0.5962 GB, free: 129.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003761/0.9034, allocations: 3.072 MB / 0.5992 GB, free: 126.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005665/0.904, allocations: 1.324 MB / 0.6005 GB, free: 124.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000331/0.9043, allocations: 127.4 kB / 0.6007 GB, free: 124.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.032e-06/0.9043, allocations: 0 / 0.6007 GB, free: 124.7 MB / 478.1 MB Notification: Performance of Templates: time 0.04908/0.9534, allocations: 51.04 MB / 0.6505 GB, free: 73.56 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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