Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001055/0.001055, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001128/0.001128, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 64.08 kB / 306.9 MB, free: 1.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1096, allocations: 50.53 MB / 357.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2719/0.3816, allocations: 64.68 MB / 422.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02876/0.4104, allocations: 23.63 MB / 445.7 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002226/0.4126, allocations: 39.69 kB / 445.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002302/0.415, allocations: 0.6332 MB / 446.4 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01716/0.4322, allocations: 4.763 MB / 451.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01029/0.4425, allocations: 3.033 MB / 454.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02024/0.4628, allocations: 9.629 MB / 463.8 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001575/0.4644, allocations: 0.6083 MB / 464.4 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002648/0.4671, allocations: 0.9571 MB / 465.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00171/0.4688, allocations: 0.84 MB / 466.2 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004069/0.4693, allocations: 52 kB / 466.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01621/0.4855, allocations: 7.551 MB / 473.8 MB, free: 7.535 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006184/0.4862, allocations: 250.9 kB / 474.1 MB, free: 7.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00155/0.4877, allocations: 0.6724 MB / 474.8 MB, free: 6.613 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008143/0.4959, allocations: 4.011 MB / 478.8 MB, free: 2.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/0.496, allocations: 0 / 478.8 MB, free: 2.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.496, allocations: 0 / 478.8 MB, free: 2.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.697e-05/0.496, allocations: 0 / 478.8 MB, free: 2.594 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.007695/0.5037, allocations: 2.471 MB / 481.2 MB, free: 68 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.5038, allocations: 8.031 kB / 481.2 MB, free: 60 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00526/0.5091, allocations: 0.6597 MB / 481.9 MB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002352/0.5115, allocations: 0.9927 MB / 482.9 MB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.364e-05/0.5116, allocations: 74.58 kB / 483 MB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002585/0.5118, allocations: 99.94 kB / 483.1 MB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004189/0.516, allocations: 1.671 MB / 484.7 MB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.597e-05/0.5161, allocations: 7.938 kB / 484.7 MB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000151/0.5163, allocations: 44 kB / 484.8 MB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.391e-05/0.5163, allocations: 32 kB / 484.8 MB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003563/0.5199, allocations: 1.467 MB / 486.3 MB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0107/0.5306, allocations: 8.39 MB / 494.7 MB, free: 1.812 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003228/0.5338, allocations: 1.707 MB / 496.4 MB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006386/0.5345, allocations: 406.9 kB / 496.8 MB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3255/0.8601, allocations: 70.36 MB / 0.5539 GB, free: 135 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.447e-05/0.8601, allocations: 44.62 kB / 0.5539 GB, free: 135 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.836e-06/0.8602, allocations: 0 / 0.5539 GB, free: 135 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005645/0.8658, allocations: 1.997 MB / 0.5558 GB, free: 134 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.8659, allocations: 188.3 kB / 0.556 GB, free: 133.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009856/0.8669, allocations: 0.9614 MB / 0.557 GB, free: 133.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.499e-05/0.8669, allocations: 41.62 kB / 0.557 GB, free: 133.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002989/0.8672, allocations: 0.5701 MB / 0.5576 GB, free: 132.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.8674, allocations: 277.8 kB / 0.5578 GB, free: 132.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002643/0.8677, allocations: 239.9 kB / 0.5581 GB, free: 132.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.653e-05/0.8678, allocations: 353.8 kB / 0.5584 GB, free: 132.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000459/0.8682, allocations: 300.5 kB / 0.5587 GB, free: 131.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006292/0.8689, allocations: 0.7419 MB / 0.5594 GB, free: 131.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001285/0.8702, allocations: 1.098 MB / 0.5605 GB, free: 130.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.019e-05/0.8702, allocations: 5.438 kB / 0.5605 GB, free: 130.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002033/0.8722, allocations: 1.243 MB / 0.5617 GB, free: 129.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.646e-05/0.8723, allocations: 11.88 kB / 0.5617 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/0.8723, allocations: 11.72 kB / 0.5617 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003203/0.8755, allocations: 0.5274 MB / 0.5622 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.8765, allocations: 280.2 kB / 0.5625 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008024/0.8774, allocations: 1.369 MB / 0.5638 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009701/0.8783, allocations: 162.2 kB / 0.564 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.381e-05/0.8784, allocations: 70.19 kB / 0.5641 GB, free: 127.9 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.0004414/0.8789, allocations: 300.7 kB / 0.5643 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001901/0.8791, allocations: 124.9 kB / 0.5645 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003702/0.8828, allocations: 4.51 MB / 0.5689 GB, free: 124.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-05/0.8828, allocations: 47.92 kB / 0.5689 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.8828, allocations: 3.938 kB / 0.5689 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.8829, allocations: 3.984 kB / 0.5689 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00394/0.8868, allocations: 4.947 MB / 0.5737 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.8868, allocations: 0 / 0.5737 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007657/0.8876, allocations: 171.7 kB / 0.5739 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003608/0.8912, allocations: 1.59 MB / 0.5755 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.902e-05/0.8913, allocations: 23.98 kB / 0.5755 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009789/0.8923, allocations: 1.754 MB / 0.5772 GB, free: 115.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.8923, allocations: 4.031 kB / 0.5772 GB, free: 115.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001978/0.8943, allocations: 2.033 MB / 0.5792 GB, free: 113.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002895/0.8946, allocations: 258.4 kB / 0.5794 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001661/0.8948, allocations: 43.53 kB / 0.5795 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005877/0.8954, allocations: 59.86 kB / 0.5795 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.342e-05/0.8955, allocations: 61.95 kB / 0.5796 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.783e-05/0.8955, allocations: 35.98 kB / 0.5796 GB, free: 113.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008201/0.8963, allocations: 0.8264 MB / 0.5804 GB, free: 112.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8963, allocations: 0 / 0.5804 GB, free: 112.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003177/0.8995, allocations: 1.287 MB / 0.5817 GB, free: 111.3 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.004503/0.904, allocations: 1.257 MB / 0.5829 GB, free: 110.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002435/0.9065, allocations: 1.262 MB / 0.5842 GB, free: 109 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.9065, allocations: 0 / 0.5842 GB, free: 109 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001466/0.908, allocations: 0.9113 MB / 0.585 GB, free: 108.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00329/0.9113, allocations: 0.6952 MB / 0.5857 GB, free: 107.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003695/0.915, allocations: 3.799 MB / 0.5894 GB, free: 103.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004882/0.9155, allocations: 1.308 MB / 0.5907 GB, free: 102.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002871/0.9158, allocations: 127.4 kB / 0.5908 GB, free: 102.2 MB / 446.1 MB Notification: Performance of SimCode: time 7.21e-07/0.9158, allocations: 0 / 0.5908 GB, free: 102.2 MB / 446.1 MB Notification: Performance of Templates: time 0.05141/0.9672, allocations: 51.08 MB / 0.6407 GB, free: 51.12 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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