Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=500,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001646/0.001646, allocations: 113.5 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001672/0.001672, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.513/1.513, allocations: 230.4 MB / 251.1 MB, free: 8.426 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 71.81 kB / 368.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2596, allocations: 53.32 MB / 422.3 MB, free: 7.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06837/0.328, allocations: 63.42 MB / 485.7 MB, free: 8.234 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03014/0.3581, allocations: 22.51 MB / 0.4963 GB, free: 1.648 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00126/0.3594, allocations: 31.81 kB / 0.4963 GB, free: 1.617 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002068/0.3614, allocations: 0.7374 MB / 0.497 GB, free: 0.875 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01679/0.3782, allocations: 5.819 MB / 0.5027 GB, free: 11.05 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009927/0.3882, allocations: 3.473 MB / 0.5061 GB, free: 7.578 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01706/0.4052, allocations: 9.079 MB / 0.515 GB, free: 14.38 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001411/0.4066, allocations: 0.6025 MB / 0.5156 GB, free: 13.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002281/0.4089, allocations: 1.07 MB / 0.5166 GB, free: 12.7 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001321/0.4102, allocations: 0.8518 MB / 0.5174 GB, free: 11.84 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001692/0.4104, allocations: 95.98 kB / 0.5175 GB, free: 11.75 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01635/0.4268, allocations: 7.688 MB / 0.525 GB, free: 4.051 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004117/0.4272, allocations: 286.8 kB / 0.5253 GB, free: 3.77 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009626/0.4281, allocations: 0.7153 MB / 0.526 GB, free: 3.051 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01238/0.4405, allocations: 5.778 MB / 0.5317 GB, free: 13.25 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.4405, allocations: 4 kB / 0.5317 GB, free: 13.25 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4405, allocations: 0 / 0.5317 GB, free: 13.25 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.223e-05/0.4405, allocations: 0 / 0.5317 GB, free: 13.25 MB / 462.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.006712/0.4473, allocations: 2.539 MB / 0.5341 GB, free: 10.65 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.4473, allocations: 12.03 kB / 0.5342 GB, free: 10.64 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004945/0.4522, allocations: 0.6556 MB / 0.5348 GB, free: 9.98 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002236/0.4545, allocations: 1.06 MB / 0.5358 GB, free: 8.875 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.564e-05/0.4545, allocations: 74.39 kB / 0.5359 GB, free: 8.801 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.4547, allocations: 99.94 kB / 0.536 GB, free: 8.703 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003661/0.4583, allocations: 1.671 MB / 0.5376 GB, free: 6.879 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/0.4584, allocations: 7.938 kB / 0.5376 GB, free: 6.871 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.4585, allocations: 51.94 kB / 0.5377 GB, free: 6.82 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.998e-05/0.4585, allocations: 28 kB / 0.5377 GB, free: 6.793 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003485/0.462, allocations: 1.467 MB / 0.5391 GB, free: 5.324 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1999/0.6619, allocations: 8.395 MB / 0.5473 GB, free: 118.6 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003157/0.665, allocations: 1.633 MB / 0.5489 GB, free: 117.9 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005532/0.6656, allocations: 356.5 kB / 0.5493 GB, free: 117.7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1069/0.7725, allocations: 70.66 MB / 0.6183 GB, free: 46.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.7725, allocations: 39.12 kB / 0.6183 GB, free: 46.71 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.335e-06/0.7725, allocations: 4 kB / 0.6183 GB, free: 46.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005215/0.7777, allocations: 1.996 MB / 0.6203 GB, free: 44.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.7778, allocations: 188.5 kB / 0.6205 GB, free: 44.52 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000897/0.7787, allocations: 0.9676 MB / 0.6214 GB, free: 43.55 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.349e-05/0.7787, allocations: 37.7 kB / 0.6214 GB, free: 43.51 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.779, allocations: 0.5796 MB / 0.622 GB, free: 42.97 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.7791, allocations: 293 kB / 0.6223 GB, free: 42.73 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002335/0.7794, allocations: 234.8 kB / 0.6225 GB, free: 42.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.724e-05/0.7794, allocations: 353.9 kB / 0.6228 GB, free: 42.14 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004451/0.7799, allocations: 298.5 kB / 0.6231 GB, free: 41.85 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006066/0.7805, allocations: 0.7499 MB / 0.6239 GB, free: 40.91 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.7815, allocations: 1.092 MB / 0.6249 GB, free: 39.65 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.7815, allocations: 7.938 kB / 0.6249 GB, free: 39.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001665/0.7832, allocations: 1.249 MB / 0.6261 GB, free: 38.39 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.7832, allocations: 12 kB / 0.6262 GB, free: 38.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.7832, allocations: 12 kB / 0.6262 GB, free: 38.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003185/0.7864, allocations: 0.5303 MB / 0.6267 GB, free: 37.83 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009952/0.7874, allocations: 275.6 kB / 0.627 GB, free: 37.56 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007117/0.7881, allocations: 1.379 MB / 0.6283 GB, free: 36.14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006799/0.7888, allocations: 138.8 kB / 0.6284 GB, free: 36.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.399e-05/0.7889, allocations: 64.03 kB / 0.6285 GB, free: 35.97 MB / 462.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.0003491/0.7892, allocations: 296.5 kB / 0.6288 GB, free: 35.69 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.7894, allocations: 131.2 kB / 0.6289 GB, free: 35.56 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003471/0.7929, allocations: 4.424 MB / 0.6332 GB, free: 31.18 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-05/0.7929, allocations: 47.92 kB / 0.6333 GB, free: 31.13 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.7929, allocations: 0 / 0.6333 GB, free: 31.13 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.7929, allocations: 3.984 kB / 0.6333 GB, free: 31.12 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0038/0.7967, allocations: 4.894 MB / 0.638 GB, free: 26.13 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.7967, allocations: 4 kB / 0.6381 GB, free: 26.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000737/0.7975, allocations: 163.7 kB / 0.6382 GB, free: 25.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.7987, allocations: 0.6723 MB / 0.6389 GB, free: 25.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.718e-05/0.7988, allocations: 23.92 kB / 0.6389 GB, free: 25.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000877/0.7996, allocations: 1.751 MB / 0.6406 GB, free: 23.46 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.7996, allocations: 12.03 kB / 0.6406 GB, free: 23.45 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.8013, allocations: 1.984 MB / 0.6425 GB, free: 21.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001877/0.8015, allocations: 272.8 kB / 0.6428 GB, free: 21.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/0.8017, allocations: 44.8 kB / 0.6429 GB, free: 21.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004801/0.8022, allocations: 20 kB / 0.6429 GB, free: 21.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.479e-05/0.8022, allocations: 52.48 kB / 0.6429 GB, free: 21.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-05/0.8023, allocations: 39.98 kB / 0.643 GB, free: 21.02 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007733/0.8031, allocations: 0.8303 MB / 0.6438 GB, free: 20.18 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.8031, allocations: 0 / 0.6438 GB, free: 20.18 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002627/0.8057, allocations: 1.299 MB / 0.645 GB, free: 18.91 MB / 462.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.003393/0.8091, allocations: 1.261 MB / 0.6463 GB, free: 17.76 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002053/0.8111, allocations: 1.211 MB / 0.6475 GB, free: 16.55 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.8111, allocations: 7.516 kB / 0.6475 GB, free: 16.55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.8123, allocations: 0.7289 MB / 0.6482 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002714/0.815, allocations: 0.7178 MB / 0.6489 GB, free: 15.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003134/0.8182, allocations: 3.085 MB / 0.6519 GB, free: 12.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004746/0.8186, allocations: 1.324 MB / 0.6532 GB, free: 10.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009539/0.8196, allocations: 0.6258 MB / 0.6538 GB, free: 10.04 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002127/0.8198, allocations: 119.4 kB / 0.6539 GB, free: 9.922 MB / 462.1 MB Notification: Performance of SimCode: time 6.01e-07/0.8198, allocations: 0 / 0.6539 GB, free: 9.922 MB / 462.1 MB Notification: Performance of Templates: time 0.08276/0.9026, allocations: 58.36 MB / 0.7109 GB, free: 15.85 MB / 0.5137 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches