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.00125/0.001256, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001449/0.00145, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 247.1 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 59.47 kB / 307.1 MB, free: 0.9844 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1135, allocations: 50.54 MB / 357.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2553/0.3688, allocations: 63.83 MB / 421.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02816/0.397, allocations: 22.58 MB / 444.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002425/0.3995, allocations: 35.75 kB / 444.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002725/0.4023, allocations: 0.6449 MB / 444.7 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01823/0.4205, allocations: 5.17 MB / 449.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009997/0.4305, allocations: 3.158 MB / 453.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01588/0.4464, allocations: 9.063 MB / 462.1 MB, free: 3.043 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001474/0.448, allocations: 0.6795 MB / 462.8 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002338/0.4503, allocations: 1.058 MB / 463.9 MB, free: 1.297 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001206/0.4515, allocations: 0.8519 MB / 464.7 MB, free: 452 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001612/0.4517, allocations: 92 kB / 464.8 MB, free: 360 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01452/0.4662, allocations: 7.563 MB / 472.4 MB, free: 8.781 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005128/0.4668, allocations: 294.9 kB / 472.7 MB, free: 8.492 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.468, allocations: 0.727 MB / 473.4 MB, free: 7.762 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008238/0.4763, allocations: 4.023 MB / 477.4 MB, free: 3.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.688e-06/0.4763, allocations: 0 / 477.4 MB, free: 3.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4763, allocations: 3.938 kB / 477.4 MB, free: 3.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.49e-05/0.4764, allocations: 7.984 kB / 477.4 MB, free: 3.719 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.006807/0.4832, allocations: 2.474 MB / 479.9 MB, free: 1.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.4833, allocations: 15.97 kB / 479.9 MB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004882/0.4881, allocations: 0.6579 MB / 480.6 MB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/0.4901, allocations: 0.9812 MB / 481.5 MB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.822e-05/0.4902, allocations: 78.52 kB / 481.6 MB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002352/0.4905, allocations: 103.9 kB / 481.7 MB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004193/0.4947, allocations: 1.671 MB / 483.4 MB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.977e-05/0.4947, allocations: 7.938 kB / 483.4 MB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/0.4949, allocations: 51.94 kB / 483.5 MB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.829e-05/0.4949, allocations: 32 kB / 483.5 MB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003608/0.4985, allocations: 1.459 MB / 484.9 MB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01105/0.5096, allocations: 8.392 MB / 493.3 MB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003288/0.5129, allocations: 1.703 MB / 495 MB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006784/0.5136, allocations: 409.8 kB / 495.4 MB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3246/0.8383, allocations: 70.36 MB / 0.5525 GB, free: 135.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.8384, allocations: 50.36 kB / 0.5526 GB, free: 135.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.364e-06/0.8384, allocations: 0 / 0.5526 GB, free: 135.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005615/0.844, allocations: 1.993 MB / 0.5545 GB, free: 134.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.111e-05/0.8441, allocations: 188.2 kB / 0.5547 GB, free: 134.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.8452, allocations: 0.9642 MB / 0.5557 GB, free: 133.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.844e-05/0.8453, allocations: 41.58 kB / 0.5557 GB, free: 133.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003146/0.8456, allocations: 0.5638 MB / 0.5562 GB, free: 133.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.8458, allocations: 286.3 kB / 0.5565 GB, free: 133.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002598/0.846, allocations: 235.3 kB / 0.5567 GB, free: 132.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.714e-05/0.8461, allocations: 344.5 kB / 0.5571 GB, free: 132.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004412/0.8465, allocations: 312.9 kB / 0.5574 GB, free: 132.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006077/0.8472, allocations: 0.7417 MB / 0.5581 GB, free: 131.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.8483, allocations: 1.097 MB / 0.5592 GB, free: 130.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.8483, allocations: 3.969 kB / 0.5592 GB, free: 130.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001813/0.8501, allocations: 1.236 MB / 0.5604 GB, free: 130.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.8501, allocations: 12.88 kB / 0.5604 GB, free: 130.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.8502, allocations: 11.88 kB / 0.5604 GB, free: 130.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003098/0.8533, allocations: 0.5425 MB / 0.5609 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009504/0.8542, allocations: 279.4 kB / 0.5612 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007479/0.855, allocations: 1.365 MB / 0.5625 GB, free: 128.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008756/0.8559, allocations: 157.6 kB / 0.5627 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.264e-05/0.856, allocations: 66.89 kB / 0.5627 GB, free: 128.4 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.0004175/0.8564, allocations: 309 kB / 0.563 GB, free: 128.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002012/0.8566, allocations: 125.5 kB / 0.5632 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003635/0.8602, allocations: 4.494 MB / 0.5675 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.937e-05/0.8603, allocations: 47.92 kB / 0.5676 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.8603, allocations: 10.25 kB / 0.5676 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.8603, allocations: 7.984 kB / 0.5676 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003928/0.8642, allocations: 4.939 MB / 0.5724 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.8643, allocations: 0 / 0.5724 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007321/0.865, allocations: 175.7 kB / 0.5726 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001249/0.8663, allocations: 0.6646 MB / 0.5732 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.659e-05/0.8663, allocations: 27.98 kB / 0.5733 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009239/0.8673, allocations: 1.758 MB / 0.575 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.8673, allocations: 0 / 0.575 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001872/0.8692, allocations: 2.022 MB / 0.577 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002973/0.8695, allocations: 266.4 kB / 0.5772 GB, free: 115.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.8696, allocations: 51.45 kB / 0.5773 GB, free: 115.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005603/0.8702, allocations: 60.94 kB / 0.5773 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.491e-05/0.8703, allocations: 60.42 kB / 0.5774 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.786e-05/0.8704, allocations: 36.86 kB / 0.5774 GB, free: 115.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008225/0.8712, allocations: 0.8303 MB / 0.5782 GB, free: 114.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8712, allocations: 0 / 0.5782 GB, free: 114.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00347/0.8747, allocations: 1.278 MB / 0.5795 GB, free: 113.1 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.004779/0.8795, allocations: 1.264 MB / 0.5807 GB, free: 112.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002987/0.8825, allocations: 1.303 MB / 0.582 GB, free: 110.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.8825, allocations: 7.062 kB / 0.582 GB, free: 110.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.8839, allocations: 0.9122 MB / 0.5829 GB, free: 109.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003178/0.8871, allocations: 0.7207 MB / 0.5836 GB, free: 109.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003676/0.8908, allocations: 3.811 MB / 0.5873 GB, free: 105.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005188/0.8913, allocations: 1.312 MB / 0.5886 GB, free: 104 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002807/0.8916, allocations: 123.4 kB / 0.5887 GB, free: 103.9 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/0.8916, allocations: 0 / 0.5887 GB, free: 103.9 MB / 446.1 MB Notification: Performance of Templates: time 0.05477/0.9464, allocations: 51.08 MB / 0.6386 GB, free: 52.8 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