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.001119/0.001119, allocations: 109.9 kB / 18.25 MB, free: 4.77 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.001042/0.001042, allocations: 195.6 kB / 19.18 MB, free: 3.844 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.349/1.349, allocations: 205.1 MB / 225 MB, free: 12.29 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.001213/0.001213, allocations: 47.94 kB / 281.3 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09052/0.09174, allocations: 46.63 MB / 327.9 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2383/0.3301, allocations: 62.84 MB / 390.8 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02477/0.3549, allocations: 22.45 MB / 413.2 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00186/0.3569, allocations: 36.25 kB / 413.3 MB, free: 8.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002062/0.359, allocations: 0.7276 MB / 414 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01708/0.3761, allocations: 5.787 MB / 419.8 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009208/0.3853, allocations: 3.448 MB / 423.2 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01616/0.4015, allocations: 9.045 MB / 432.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001406/0.403, allocations: 0.6802 MB / 433 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002393/0.4054, allocations: 1.039 MB / 434 MB, free: 13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.4068, allocations: 0.8363 MB / 434.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002093/0.407, allocations: 92 kB / 434.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01674/0.4237, allocations: 7.493 MB / 442.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004794/0.4243, allocations: 282.9 kB / 442.7 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001185/0.4255, allocations: 0.7115 MB / 443.4 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01415/0.4396, allocations: 5.733 MB / 449.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.989e-06/0.4397, allocations: 4 kB / 449.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4397, allocations: 0 / 449.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.399e-05/0.4397, allocations: 0 / 449.1 MB, free: 13.83 MB / 350.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.006945/0.4467, allocations: 2.462 MB / 451.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.4467, allocations: 15.97 kB / 451.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004581/0.4513, allocations: 0.651 MB / 452.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001768/0.4531, allocations: 1.001 MB / 453.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.807e-05/0.4532, allocations: 74.58 kB / 453.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.4533, allocations: 99.94 kB / 453.4 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0036/0.457, allocations: 1.679 MB / 455.1 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.55e-05/0.457, allocations: 3.938 kB / 455.1 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.4571, allocations: 51.98 kB / 455.2 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.51e-05/0.4571, allocations: 24 kB / 455.2 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003236/0.4604, allocations: 1.467 MB / 456.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009902/0.4703, allocations: 8.416 MB / 465.1 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003067/0.4734, allocations: 1.694 MB / 466.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006102/0.4741, allocations: 407.5 kB / 467.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1575/0.6315, allocations: 63.39 MB / 0.5181 GB, free: 3.863 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.904e-05/0.6316, allocations: 51.06 kB / 0.5182 GB, free: 3.805 MB / 430.1 MB Notification: Performance of pre-optimization done (n=77): time 5.36e-06/0.6316, allocations: 3.984 kB / 0.5182 GB, free: 3.801 MB / 430.1 MB Notification: Performance of matching and sorting (n=77): time 0.006395/0.638, allocations: 1.998 MB / 0.5201 GB, free: 1.777 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.6382, allocations: 188.5 kB / 0.5203 GB, free: 1.551 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/0.6396, allocations: 0.9567 MB / 0.5212 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.345e-05/0.6397, allocations: 41.7 kB / 0.5213 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004538/0.6402, allocations: 0.5689 MB / 0.5218 GB, free: 15.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000266/0.6405, allocations: 276.1 kB / 0.5221 GB, free: 15.68 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000329/0.6408, allocations: 234.6 kB / 0.5223 GB, free: 15.44 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.6409, allocations: 349.9 kB / 0.5227 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005696/0.6415, allocations: 302.5 kB / 0.5229 GB, free: 14.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008679/0.6424, allocations: 0.753 MB / 0.5237 GB, free: 13.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/0.6439, allocations: 1.09 MB / 0.5247 GB, free: 12.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.209e-05/0.6439, allocations: 4 kB / 0.5247 GB, free: 12.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002344/0.6463, allocations: 1.245 MB / 0.526 GB, free: 11.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/0.6463, allocations: 16.03 kB / 0.526 GB, free: 11.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.6464, allocations: 12 kB / 0.526 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003447/0.6498, allocations: 0.5273 MB / 0.5265 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.6511, allocations: 283.5 kB / 0.5268 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/0.6523, allocations: 1.372 MB / 0.5281 GB, free: 9.043 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001056/0.6533, allocations: 130.6 kB / 0.5282 GB, free: 8.914 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/0.6535, allocations: 71.97 kB / 0.5283 GB, free: 8.844 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.0005949/0.6541, allocations: 296.2 kB / 0.5286 GB, free: 8.547 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003647/0.6545, allocations: 130.5 kB / 0.5287 GB, free: 8.418 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005202/0.6597, allocations: 4.489 MB / 0.5331 GB, free: 3.918 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.029e-05/0.6597, allocations: 47.92 kB / 0.5331 GB, free: 3.871 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/0.6598, allocations: 4 kB / 0.5331 GB, free: 3.867 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.6598, allocations: 3.984 kB / 0.5332 GB, free: 3.863 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1736/0.8333, allocations: 4.951 MB / 0.538 GB, free: 175.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.978e-05/0.8334, allocations: 2.078 kB / 0.538 GB, free: 175.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008965/0.8343, allocations: 163.7 kB / 0.5381 GB, free: 175.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001906/0.8362, allocations: 0.6722 MB / 0.5388 GB, free: 175.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.646e-05/0.8364, allocations: 23.39 kB / 0.5388 GB, free: 175.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001181/0.8375, allocations: 1.757 MB / 0.5405 GB, free: 174.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.8376, allocations: 3.969 kB / 0.5405 GB, free: 174.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002625/0.8402, allocations: 2.022 MB / 0.5425 GB, free: 173.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000351/0.8406, allocations: 268.8 kB / 0.5428 GB, free: 173.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001933/0.8408, allocations: 45.94 kB / 0.5428 GB, free: 173.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004902/0.8413, allocations: 19.44 kB / 0.5428 GB, free: 173.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.8414, allocations: 55.61 kB / 0.5429 GB, free: 173.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.781e-05/0.8414, allocations: 37.31 kB / 0.5429 GB, free: 173.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001191/0.8426, allocations: 0.8309 MB / 0.5437 GB, free: 172.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8426, allocations: 1.344 kB / 0.5437 GB, free: 172.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004423/0.8471, allocations: 1.279 MB / 0.545 GB, free: 172.6 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.005487/0.8526, allocations: 1.258 MB / 0.5462 GB, free: 172.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003746/0.8563, allocations: 1.299 MB / 0.5475 GB, free: 172 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/0.8564, allocations: 1.094 kB / 0.5475 GB, free: 172 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001786/0.8582, allocations: 0.9228 MB / 0.5484 GB, free: 171.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004141/0.8623, allocations: 0.7281 MB / 0.5491 GB, free: 171.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003953/0.8663, allocations: 3.122 MB / 0.5521 GB, free: 169.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007082/0.867, allocations: 1.311 MB / 0.5534 GB, free: 169.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003176/0.8673, allocations: 133.5 kB / 0.5536 GB, free: 169.2 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.8674, allocations: 0 / 0.5536 GB, free: 169.2 MB / 446.1 MB Notification: Performance of Templates: time 0.05455/0.9219, allocations: 50.94 MB / 0.6033 GB, free: 122 MB / 446.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