Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001193/0.001193, allocations: 110.9 kB / 17.74 MB, free: 5.359 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.001222/0.001222, allocations: 176.5 kB / 18.66 MB, free: 4.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 51.91 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3185, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06733/0.3858, allocations: 62.85 MB / 464.2 MB, free: 9.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03042/0.4163, allocations: 22.46 MB / 486.7 MB, free: 3.285 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0021/0.4184, allocations: 27.81 kB / 486.7 MB, free: 3.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002592/0.4211, allocations: 0.7257 MB / 487.5 MB, free: 2.527 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0197/0.4408, allocations: 5.797 MB / 493.3 MB, free: 12.72 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01092/0.4518, allocations: 3.45 MB / 496.7 MB, free: 9.277 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01723/0.469, allocations: 9.044 MB / 0.4939 GB, free: 116 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001623/0.4707, allocations: 0.7 MB / 0.4946 GB, free: 15.41 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002591/0.4733, allocations: 1.066 MB / 0.4956 GB, free: 14.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001707/0.4751, allocations: 0.8324 MB / 0.4964 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004578/0.4755, allocations: 92 kB / 0.4965 GB, free: 13.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01678/0.4923, allocations: 7.664 MB / 0.504 GB, free: 5.738 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006562/0.493, allocations: 282.9 kB / 0.5043 GB, free: 5.461 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001692/0.4947, allocations: 0.7154 MB / 0.505 GB, free: 4.742 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01477/0.5095, allocations: 5.753 MB / 0.5106 GB, free: 14.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.5096, allocations: 0 / 0.5106 GB, free: 14.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5096, allocations: 0 / 0.5106 GB, free: 14.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.735e-05/0.5097, allocations: 0 / 0.5106 GB, free: 14.98 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.007385/0.517, allocations: 2.474 MB / 0.513 GB, free: 12.45 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.5171, allocations: 8.031 kB / 0.513 GB, free: 12.44 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005063/0.5222, allocations: 0.651 MB / 0.5137 GB, free: 11.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002409/0.5246, allocations: 1.043 MB / 0.5147 GB, free: 10.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.525e-05/0.5247, allocations: 78.38 kB / 0.5148 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002606/0.525, allocations: 103.9 kB / 0.5148 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004187/0.5292, allocations: 1.667 MB / 0.5165 GB, free: 8.695 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.749e-05/0.5292, allocations: 3.938 kB / 0.5165 GB, free: 8.691 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001675/0.5294, allocations: 59.98 kB / 0.5165 GB, free: 8.633 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.522e-05/0.5294, allocations: 24 kB / 0.5166 GB, free: 8.609 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00347/0.5329, allocations: 1.463 MB / 0.518 GB, free: 7.148 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01036/0.5433, allocations: 8.388 MB / 0.5262 GB, free: 14.14 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003171/0.5465, allocations: 1.69 MB / 0.5278 GB, free: 12.29 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006446/0.5472, allocations: 407.6 kB / 0.5282 GB, free: 11.89 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3771/0.9243, allocations: 63.66 MB / 0.5904 GB, free: 70.25 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.9244, allocations: 45.38 kB / 0.5904 GB, free: 70.21 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.775e-06/0.9244, allocations: 4.703 kB / 0.5904 GB, free: 70.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005338/0.9298, allocations: 1.998 MB / 0.5924 GB, free: 68.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.851e-05/0.9299, allocations: 196.5 kB / 0.5926 GB, free: 68.47 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009776/0.9309, allocations: 0.9559 MB / 0.5935 GB, free: 67.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.425e-05/0.9309, allocations: 36.7 kB / 0.5935 GB, free: 67.71 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003071/0.9312, allocations: 0.5761 MB / 0.5941 GB, free: 67.42 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.9314, allocations: 274.6 kB / 0.5944 GB, free: 67.19 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002644/0.9317, allocations: 233.7 kB / 0.5946 GB, free: 67.04 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.844e-05/0.9318, allocations: 355.2 kB / 0.5949 GB, free: 66.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004339/0.9322, allocations: 305 kB / 0.5952 GB, free: 66.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006142/0.9328, allocations: 0.7399 MB / 0.5959 GB, free: 65.71 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.9339, allocations: 1.1 MB / 0.597 GB, free: 64.77 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.934, allocations: 4 kB / 0.597 GB, free: 64.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001848/0.9358, allocations: 1.245 MB / 0.5982 GB, free: 63.93 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.9358, allocations: 16.25 kB / 0.5983 GB, free: 63.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.9359, allocations: 15.98 kB / 0.5983 GB, free: 63.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003085/0.939, allocations: 0.5182 MB / 0.5988 GB, free: 63.42 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009977/0.94, allocations: 279.6 kB / 0.599 GB, free: 63.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007901/0.9408, allocations: 1.38 MB / 0.6004 GB, free: 61.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008392/0.9416, allocations: 122.1 kB / 0.6005 GB, free: 61.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.758e-05/0.9417, allocations: 69.09 kB / 0.6006 GB, free: 61.71 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.0004628/0.9422, allocations: 304.6 kB / 0.6009 GB, free: 61.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.9424, allocations: 126.6 kB / 0.601 GB, free: 61.38 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003649/0.946, allocations: 4.475 MB / 0.6054 GB, free: 57.65 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-05/0.9461, allocations: 47.92 kB / 0.6054 GB, free: 57.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.9461, allocations: 0 / 0.6054 GB, free: 57.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.9461, allocations: 7.984 kB / 0.6054 GB, free: 57.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004707/0.9508, allocations: 4.952 MB / 0.6102 GB, free: 52.49 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.9509, allocations: 0 / 0.6102 GB, free: 52.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008037/0.9517, allocations: 166.3 kB / 0.6104 GB, free: 52.33 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001265/0.953, allocations: 0.6718 MB / 0.6111 GB, free: 51.66 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.347e-05/0.953, allocations: 23.98 kB / 0.6111 GB, free: 51.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/0.9541, allocations: 1.755 MB / 0.6128 GB, free: 49.84 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.9541, allocations: 3.984 kB / 0.6128 GB, free: 49.83 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/0.9563, allocations: 2.026 MB / 0.6148 GB, free: 47.75 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003277/0.9566, allocations: 266.3 kB / 0.615 GB, free: 47.47 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001725/0.9568, allocations: 43.62 kB / 0.6151 GB, free: 47.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004754/0.9573, allocations: 23.98 kB / 0.6151 GB, free: 47.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.307e-05/0.9574, allocations: 56.5 kB / 0.6152 GB, free: 47.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.796e-05/0.9574, allocations: 27.98 kB / 0.6152 GB, free: 47.32 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008702/0.9583, allocations: 0.8342 MB / 0.616 GB, free: 46.49 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.9583, allocations: 0 / 0.616 GB, free: 46.49 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00354/0.9618, allocations: 1.281 MB / 0.6172 GB, free: 45.29 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.004615/0.9665, allocations: 1.256 MB / 0.6185 GB, free: 44.26 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002494/0.969, allocations: 1.257 MB / 0.6197 GB, free: 43.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.969, allocations: 3.5 kB / 0.6197 GB, free: 43.04 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001402/0.9704, allocations: 0.9138 MB / 0.6206 GB, free: 42.15 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003314/0.9738, allocations: 0.724 MB / 0.6213 GB, free: 41.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003714/0.9775, allocations: 3.064 MB / 0.6243 GB, free: 38.36 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005408/0.9781, allocations: 1.316 MB / 0.6256 GB, free: 37.01 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003039/0.9784, allocations: 119.4 kB / 0.6257 GB, free: 36.89 MB / 462.1 MB Notification: Performance of SimCode: time 1.272e-06/0.9784, allocations: 0 / 0.6257 GB, free: 36.89 MB / 462.1 MB Notification: Performance of Templates: time 0.06121/1.04, allocations: 51.09 MB / 0.6756 GB, free: 1.914 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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