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.001136/0.001136, allocations: 114.5 kB / 17.93 MB, free: 5.566 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.001174/0.001174, allocations: 189.9 kB / 18.86 MB, free: 4.645 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.426/1.426, allocations: 205.1 MB / 224.7 MB, free: 12.36 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.001137/0.001137, allocations: 52.25 kB / 280.8 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09442/0.09557, allocations: 46.63 MB / 327.4 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.245/0.3406, allocations: 63.63 MB / 391.1 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02517/0.3658, allocations: 22.58 MB / 413.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002163/0.3681, allocations: 35 kB / 413.7 MB, free: 8.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002213/0.3703, allocations: 0.6464 MB / 414.3 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01633/0.3867, allocations: 5.154 MB / 419.5 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009364/0.3961, allocations: 3.145 MB / 422.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01371/0.4098, allocations: 9.063 MB / 431.7 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/0.4112, allocations: 0.6838 MB / 432.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002308/0.4136, allocations: 1.055 MB / 433.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001432/0.415, allocations: 0.844 MB / 434.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001859/0.4152, allocations: 92 kB / 434.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01559/0.4308, allocations: 7.559 MB / 441.9 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004937/0.4314, allocations: 294.9 kB / 442.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001185/0.4326, allocations: 0.7153 MB / 442.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008571/0.4411, allocations: 4.027 MB / 446.9 MB, free: 68 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.4412, allocations: 0 / 446.9 MB, free: 68 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4412, allocations: 0 / 446.9 MB, free: 68 kB / 334.1 MB Notification: Performance of Transformations before backend: time 2.764e-05/0.4412, allocations: 0 / 446.9 MB, free: 68 kB / 334.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.006888/0.4481, allocations: 2.463 MB / 449.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.4482, allocations: 16.03 kB / 449.4 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004674/0.4529, allocations: 0.651 MB / 450.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001957/0.4549, allocations: 0.9928 MB / 451.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.581e-05/0.455, allocations: 78.52 kB / 451.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/0.4551, allocations: 99.94 kB / 451.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003733/0.4589, allocations: 1.679 MB / 452.9 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.4589, allocations: 7.938 kB / 452.9 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.459, allocations: 44 kB / 453 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.388e-05/0.4591, allocations: 31.94 kB / 453 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003332/0.4624, allocations: 1.471 MB / 454.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01011/0.4725, allocations: 8.381 MB / 462.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003132/0.4757, allocations: 1.708 MB / 464.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006417/0.4764, allocations: 403.6 kB / 465 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1537/0.6301, allocations: 63.38 MB / 0.516 GB, free: 6.129 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.905e-05/0.6302, allocations: 47.06 kB / 0.516 GB, free: 6.074 MB / 430.1 MB Notification: Performance of pre-optimization done (n=77): time 3.176e-06/0.6302, allocations: 0 / 0.516 GB, free: 6.074 MB / 430.1 MB Notification: Performance of matching and sorting (n=77): time 0.00588/0.6361, allocations: 1.99 MB / 0.5179 GB, free: 4.055 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.6363, allocations: 192.5 kB / 0.5181 GB, free: 3.824 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001339/0.6376, allocations: 0.9683 MB / 0.5191 GB, free: 2.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.389e-05/0.6377, allocations: 41.7 kB / 0.5191 GB, free: 2.793 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004149/0.6381, allocations: 0.5688 MB / 0.5197 GB, free: 2.215 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002654/0.6384, allocations: 268.1 kB / 0.5199 GB, free: 1.949 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003174/0.6387, allocations: 238.7 kB / 0.5201 GB, free: 1.711 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.6389, allocations: 345.9 kB / 0.5205 GB, free: 1.367 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005458/0.6394, allocations: 302.5 kB / 0.5208 GB, free: 1.074 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008577/0.6403, allocations: 0.7492 MB / 0.5215 GB, free: 120 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001472/0.6418, allocations: 1.094 MB / 0.5226 GB, free: 14.83 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.6418, allocations: 7.938 kB / 0.5226 GB, free: 14.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002257/0.6441, allocations: 1.248 MB / 0.5238 GB, free: 13.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.6441, allocations: 12 kB / 0.5238 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/0.6441, allocations: 16 kB / 0.5238 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003271/0.6474, allocations: 0.5349 MB / 0.5243 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.6486, allocations: 279.6 kB / 0.5246 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.6497, allocations: 1.368 MB / 0.5259 GB, free: 11.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.6508, allocations: 170.6 kB / 0.5261 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000162/0.6509, allocations: 63.98 kB / 0.5262 GB, free: 11.08 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.0005972/0.6515, allocations: 292.2 kB / 0.5264 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003329/0.6519, allocations: 126.6 kB / 0.5266 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004882/0.6568, allocations: 4.505 MB / 0.531 GB, free: 6.145 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.092e-05/0.6568, allocations: 39.94 kB / 0.531 GB, free: 6.105 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.6569, allocations: 4 kB / 0.531 GB, free: 6.102 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.504e-05/0.6569, allocations: 7.969 kB / 0.531 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005859/0.6628, allocations: 4.943 MB / 0.5358 GB, free: 0.957 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.75e-05/0.6628, allocations: 4 kB / 0.5358 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009187/0.6638, allocations: 167.7 kB / 0.536 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001623/0.6654, allocations: 0.6723 MB / 0.5367 GB, free: 116 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.6655, allocations: 23.98 kB / 0.5367 GB, free: 92 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1553/0.8209, allocations: 1.752 MB / 0.5384 GB, free: 175.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.8209, allocations: 0 / 0.5384 GB, free: 175.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002753/0.8237, allocations: 2.021 MB / 0.5404 GB, free: 174.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003568/0.8241, allocations: 273.4 kB / 0.5406 GB, free: 174.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001729/0.8243, allocations: 43.75 kB / 0.5407 GB, free: 174.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005913/0.8249, allocations: 62.45 kB / 0.5407 GB, free: 174.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.825, allocations: 51.45 kB / 0.5408 GB, free: 174.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.852e-05/0.825, allocations: 39.34 kB / 0.5408 GB, free: 174.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001036/0.8261, allocations: 0.8301 MB / 0.5416 GB, free: 174.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.8261, allocations: 1.25 kB / 0.5416 GB, free: 174.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00399/0.8301, allocations: 1.275 MB / 0.5429 GB, free: 174 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.005032/0.8351, allocations: 1.26 MB / 0.5441 GB, free: 173.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003628/0.8388, allocations: 1.303 MB / 0.5454 GB, free: 173.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.8388, allocations: 1.375 kB / 0.5454 GB, free: 173.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001854/0.8407, allocations: 0.915 MB / 0.5463 GB, free: 173 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003737/0.8445, allocations: 0.7279 MB / 0.547 GB, free: 172.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004657/0.8491, allocations: 3.809 MB / 0.5507 GB, free: 170.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008616/0.85, allocations: 1.319 MB / 0.552 GB, free: 169.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000354/0.8504, allocations: 123.9 kB / 0.5521 GB, free: 169.9 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.8504, allocations: 0.9844 kB / 0.5521 GB, free: 169.9 MB / 446.1 MB Notification: Performance of Templates: time 0.05273/0.9032, allocations: 50.96 MB / 0.6019 GB, free: 123.8 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","../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