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.000833/0.0008332, allocations: 91.8 kB / 17.31 MB, free: 6.535 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.0009911/0.0009911, allocations: 175.3 kB / 18.21 MB, free: 5.68 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.446/1.446, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000275/0.0002752, allocations: 12.94 kB / 302.1 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1088, allocations: 50.42 MB / 352.5 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2569/0.3658, allocations: 63.32 MB / 415.8 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0281/0.3939, allocations: 23.29 MB / 439.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001713/0.3957, allocations: 35.69 kB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001962/0.3977, allocations: 0.6332 MB / 439.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01538/0.4131, allocations: 4.741 MB / 444.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009287/0.4224, allocations: 3.04 MB / 447.5 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01591/0.4383, allocations: 9.625 MB / 457.2 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001381/0.4397, allocations: 0.6018 MB / 457.8 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002055/0.4418, allocations: 0.9452 MB / 458.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001237/0.443, allocations: 0.8401 MB / 459.6 MB, free: 9.836 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000134/0.4432, allocations: 52 kB / 459.6 MB, free: 9.785 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01517/0.4584, allocations: 7.532 MB / 467.1 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005192/0.4589, allocations: 242.9 kB / 467.4 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00107/0.46, allocations: 0.7014 MB / 468.1 MB, free: 1.297 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007711/0.4677, allocations: 3.964 MB / 472 MB, free: 13.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.4678, allocations: 0 / 472 MB, free: 13.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4678, allocations: 0 / 472 MB, free: 13.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.533e-05/0.4678, allocations: 0 / 472 MB, free: 13.32 MB / 382.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.00626/0.4741, allocations: 2.183 MB / 474.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.4741, allocations: 8.031 kB / 474.2 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00463/0.4788, allocations: 0.6626 MB / 474.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001891/0.4807, allocations: 0.989 MB / 475.9 MB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.873e-05/0.4808, allocations: 78.58 kB / 476 MB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.4809, allocations: 103.9 kB / 476.1 MB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003691/0.4846, allocations: 1.674 MB / 477.7 MB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/0.4846, allocations: 11.94 kB / 477.8 MB, free: 7.363 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/0.4848, allocations: 44 kB / 477.8 MB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.435e-05/0.4848, allocations: 28 kB / 477.8 MB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003242/0.488, allocations: 1.459 MB / 479.3 MB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009673/0.4977, allocations: 8.416 MB / 487.7 MB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003031/0.5008, allocations: 1.695 MB / 489.4 MB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006193/0.5014, allocations: 399.6 kB / 489.8 MB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3189/0.8203, allocations: 63.98 MB / 0.5408 GB, free: 152.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/0.8204, allocations: 42.45 kB / 0.5408 GB, free: 152.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 4.097e-06/0.8204, allocations: 0 / 0.5408 GB, free: 152.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.00637/0.8268, allocations: 2.003 MB / 0.5428 GB, free: 152.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/0.8269, allocations: 189.8 kB / 0.543 GB, free: 152 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001753/0.8286, allocations: 0.9686 MB / 0.5439 GB, free: 151.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001083/0.8288, allocations: 38.61 kB / 0.5439 GB, free: 151.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004226/0.8292, allocations: 0.5708 MB / 0.5445 GB, free: 151.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002768/0.8295, allocations: 275.3 kB / 0.5448 GB, free: 151.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.8296, allocations: 104 kB / 0.5449 GB, free: 151.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.911e-05/0.8297, allocations: 343.5 kB / 0.5452 GB, free: 151 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006242/0.8304, allocations: 302.4 kB / 0.5455 GB, free: 150.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008643/0.8312, allocations: 0.7419 MB / 0.5462 GB, free: 150.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.8327, allocations: 1.096 MB / 0.5473 GB, free: 149.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.539e-05/0.8328, allocations: 6.344 kB / 0.5473 GB, free: 149.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002395/0.8352, allocations: 1.251 MB / 0.5485 GB, free: 148.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.301e-05/0.8352, allocations: 18.97 kB / 0.5485 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.902e-05/0.8352, allocations: 13.38 kB / 0.5485 GB, free: 148.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003425/0.8387, allocations: 0.5175 MB / 0.549 GB, free: 148.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.8398, allocations: 272.4 kB / 0.5493 GB, free: 148.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009783/0.8408, allocations: 1.375 MB / 0.5506 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.842, allocations: 163.8 kB / 0.5508 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001622/0.8422, allocations: 69.02 kB / 0.5509 GB, free: 147.3 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.0006071/0.8428, allocations: 301.4 kB / 0.5512 GB, free: 147.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003042/0.8431, allocations: 124.9 kB / 0.5513 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004247/0.8474, allocations: 4.506 MB / 0.5557 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.257e-05/0.8474, allocations: 47.64 kB / 0.5557 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.8474, allocations: 0 / 0.5557 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.8475, allocations: 11.44 kB / 0.5557 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004284/0.8517, allocations: 4.941 MB / 0.5606 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.8518, allocations: 0 / 0.5606 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007214/0.8525, allocations: 177.1 kB / 0.5607 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003619/0.8561, allocations: 1.59 MB / 0.5623 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.277e-05/0.8562, allocations: 20 kB / 0.5623 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009861/0.8572, allocations: 1.762 MB / 0.564 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.8572, allocations: 0 / 0.564 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.8591, allocations: 2.033 MB / 0.566 GB, free: 137.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004385/0.8596, allocations: 353.8 kB / 0.5663 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001378/0.8597, allocations: 16 kB / 0.5664 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005797/0.8603, allocations: 59.81 kB / 0.5664 GB, free: 136.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.692e-05/0.8604, allocations: 56.48 kB / 0.5665 GB, free: 136.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.692e-05/0.8605, allocations: 31.92 kB / 0.5665 GB, free: 136.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008503/0.8613, allocations: 0.8342 MB / 0.5673 GB, free: 135.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.82e-07/0.8613, allocations: 4 kB / 0.5673 GB, free: 135.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00332/0.8647, allocations: 1.278 MB / 0.5686 GB, free: 134.5 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.004263/0.8689, allocations: 1.269 MB / 0.5698 GB, free: 133.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002319/0.8713, allocations: 1.26 MB / 0.571 GB, free: 132.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.8713, allocations: 1.094 kB / 0.571 GB, free: 132.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.8727, allocations: 0.9073 MB / 0.5719 GB, free: 131.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003569/0.8763, allocations: 0.6887 MB / 0.5726 GB, free: 130.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003945/0.8803, allocations: 3.86 MB / 0.5764 GB, free: 126.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005474/0.8808, allocations: 1.308 MB / 0.5776 GB, free: 125.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002858/0.8811, allocations: 131.4 kB / 0.5778 GB, free: 125.3 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.8811, allocations: 0 / 0.5778 GB, free: 125.3 MB / 446.1 MB Notification: Performance of Templates: time 0.05572/0.9369, allocations: 50.77 MB / 0.6273 GB, free: 74.55 MB / 446.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