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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001125/0.001125, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001847/0.002972, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00117/0.00117, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001641/0.002811, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9568/0.9568, allocations: 177.5 MB / 190 MB, free: 4.762 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1566/1.113, allocations: 53.87 MB / 243.9 MB, free: 14.82 MB / 250.7 MB " [Timeout remaining time 179] 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=5002,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.511e-05/2.725e-05, allocations: 2.312 kB / 245.2 MB, free: 13.54 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.02605/0.02608, allocations: 20.55 MB / 265.7 MB, free: 8.918 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1578/0.1839, allocations: 15.91 MB / 281.7 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001062/0.185, allocations: 42.62 kB / 281.7 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008692/0.1858, allocations: 424.9 kB / 282.1 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0123/0.1981, allocations: 4.881 MB / 287 MB, free: 256 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005395/0.2035, allocations: 2.292 MB / 289.3 MB, free: 68 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01264/0.2162, allocations: 7.793 MB / 297.1 MB, free: 13.26 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00122/0.2174, allocations: 0.6078 MB / 297.7 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01088/0.2283, allocations: 6.344 MB / 304 MB, free: 9.109 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001562/0.2298, allocations: 0.706 MB / 304.7 MB, free: 8.461 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002021/0.23, allocations: 88 kB / 304.8 MB, free: 8.375 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01279/0.2428, allocations: 7.478 MB / 312.3 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002763/0.2431, allocations: 224.3 kB / 312.5 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007072/0.2438, allocations: 427.2 kB / 312.9 MB, free: 360 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01077/0.2546, allocations: 4.773 MB / 317.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.627e-05/0.2546, allocations: 0 / 317.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2546, allocations: 0 / 317.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.224e-05/0.2546, allocations: 4 kB / 317.7 MB, free: 11.79 MB / 298.7 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.005501/0.2601, allocations: 3.035 MB / 320.7 MB, free: 8.805 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.2602, allocations: 12.61 kB / 320.8 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002734/0.2629, allocations: 1.02 MB / 321.8 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.2643, allocations: 0.787 MB / 322.6 MB, free: 6.996 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.759e-05/0.2644, allocations: 82.33 kB / 322.6 MB, free: 6.914 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.2645, allocations: 111.1 kB / 322.7 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001904/0.2664, allocations: 1.705 MB / 324.5 MB, free: 4.926 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.2664, allocations: 11.88 kB / 324.5 MB, free: 4.914 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.296e-05/0.2664, allocations: 44 kB / 324.5 MB, free: 4.871 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.2665, allocations: 28 kB / 324.5 MB, free: 4.844 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.2677, allocations: 0.8483 MB / 325.4 MB, free: 3.992 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004444/0.2722, allocations: 5.25 MB / 330.6 MB, free: 14.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.2735, allocations: 0.8285 MB / 331.5 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.2737, allocations: 158 kB / 331.6 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.307/0.5807, allocations: 96.47 MB / 428.1 MB, free: 123.7 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.5807, allocations: 45.23 kB / 428.1 MB, free: 123.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 1.933e-06/0.5807, allocations: 3.812 kB / 428.1 MB, free: 123.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=77): time 0.003055/0.5838, allocations: 1.423 MB / 429.6 MB, free: 123.7 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/0.5838, allocations: 95.23 kB / 429.7 MB, free: 123.6 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005882/0.5844, allocations: 0.7404 MB / 430.4 MB, free: 123.4 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.074e-05/0.5844, allocations: 37.27 kB / 430.4 MB, free: 123.4 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.5847, allocations: 0.4894 MB / 430.9 MB, free: 123.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.5848, allocations: 295.6 kB / 431.2 MB, free: 123.1 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.585, allocations: 230.9 kB / 431.4 MB, free: 123.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.628e-05/0.585, allocations: 348.7 kB / 431.8 MB, free: 122.8 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.5852, allocations: 108.9 kB / 431.9 MB, free: 122.8 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002974/0.5855, allocations: 0.6728 MB / 432.6 MB, free: 122.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005354/0.586, allocations: 0.8147 MB / 433.4 MB, free: 121.6 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.586, allocations: 4.125 kB / 433.4 MB, free: 121.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0007243/0.5867, allocations: 0.7094 MB / 434.1 MB, free: 121.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.5867, allocations: 11.19 kB / 434.1 MB, free: 121.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/0.5868, allocations: 15.38 kB / 434.1 MB, free: 121.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/0.5881, allocations: 491.6 kB / 434.6 MB, free: 121.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000553/0.5886, allocations: 313 kB / 434.9 MB, free: 121.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003932/0.589, allocations: 1.234 MB / 436.1 MB, free: 120.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004201/0.5895, allocations: 114.4 kB / 436.2 MB, free: 120.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.597e-05/0.5895, allocations: 52.06 kB / 436.3 MB, free: 120.4 MB / 394.7 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 (leftBoundary1.medium.phase,rightBoundary1.medium.phase,suddenExpansion1.state_b_des.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_b.phase,leftBoundary2.medium.phase,rightBoundary2.medium.phase,suddenExpansion2.state_b_des.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_b.phase,leftAdaptor.state_b_des.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.state_a.phase,leftAdaptor.state_b.phase,rightAdaptor.state_b_des.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_a.phase,rightAdaptor.state_b.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.0001998/0.5897, allocations: 208.4 kB / 436.5 MB, free: 120.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.5898, allocations: 95.36 kB / 436.6 MB, free: 120.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001593/0.5914, allocations: 2.432 MB / 439 MB, free: 119.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-05/0.5915, allocations: 45.5 kB / 439.1 MB, free: 119.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.5915, allocations: 6.938 kB / 439.1 MB, free: 119.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.5915, allocations: 4.547 kB / 439.1 MB, free: 119.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.5933, allocations: 2.482 MB / 441.6 MB, free: 119.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.5933, allocations: 4 kB / 441.6 MB, free: 119.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003787/0.5937, allocations: 187.6 kB / 441.7 MB, free: 119.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.5938, allocations: 173.7 kB / 441.9 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005888/0.5944, allocations: 0.5539 MB / 442.5 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.759e-05/0.5945, allocations: 17.91 kB / 442.5 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004557/0.5949, allocations: 1.422 MB / 443.9 MB, free: 118 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5949, allocations: 0.5156 kB / 443.9 MB, free: 118 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007427/0.5957, allocations: 1.258 MB / 445.2 MB, free: 117.6 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.049e-05/0.5957, allocations: 43.19 kB / 445.2 MB, free: 117.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002143/0.596, allocations: 22.75 kB / 445.2 MB, free: 117.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/0.596, allocations: 54.77 kB / 445.3 MB, free: 117.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.527e-05/0.596, allocations: 21.69 kB / 445.3 MB, free: 117.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002574/0.5963, allocations: 441.5 kB / 445.7 MB, free: 117.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.5963, allocations: 0 / 445.7 MB, free: 117.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002189/0.5985, allocations: 1.31 MB / 447 MB, free: 117.4 MB / 394.7 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.002436/0.6009, allocations: 1.487 MB / 448.5 MB, free: 117.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008448/0.6018, allocations: 0.7217 MB / 449.3 MB, free: 117.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-05/0.6018, allocations: 28.19 kB / 449.3 MB, free: 117.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005/0.6023, allocations: 0.518 MB / 449.8 MB, free: 117 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.6039, allocations: 3.318 MB / 453.1 MB, free: 113.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.615, allocations: 2.814 MB / 455.9 MB, free: 112.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001564/0.6152, allocations: 320.8 kB / 456.2 MB, free: 111.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007533/0.6159, allocations: 0.6032 MB / 456.8 MB, free: 111.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006704/0.6166, allocations: 481.7 kB / 457.3 MB, free: 111.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.243e-06/0.6166, allocations: 0 / 457.3 MB, free: 111.1 MB / 394.7 MB Notification: Performance of Templates: time 0.04491/0.6615, allocations: 57.47 MB / 0.5027 GB, free: 55.37 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.5799111565575]