Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000822/0.0008221, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005726/0.005727, allocations: 169 kB / 16.26 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.4 MB / 222.5 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2963/0.2963, allocations: 38.04 MB / 308.8 MB, free: 10.25 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005304/0.0005304, allocations: 16.47 kB / 377.1 MB, free: 14.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1063, allocations: 57.52 MB / 434.6 MB, free: 5.195 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.2338/0.3401, allocations: 63.34 MB / 497.9 MB, free: 16.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02073/0.3609, allocations: 23.27 MB / 0.509 GB, free: 220 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001682/0.3626, allocations: 36.22 kB / 0.509 GB, free: 200 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.3643, allocations: 0.6238 MB / 0.5096 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01571/0.38, allocations: 4.715 MB / 0.5142 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01065/0.3907, allocations: 3.021 MB / 0.5172 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01771/0.4085, allocations: 9.564 MB / 0.5265 GB, free: 7.703 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00138/0.4099, allocations: 0.5644 MB / 0.5271 GB, free: 7.492 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002203/0.4121, allocations: 0.9051 MB / 0.5279 GB, free: 7.125 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001102/0.4132, allocations: 0.7847 MB / 0.5287 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001135/0.4133, allocations: 50.08 kB / 0.5288 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0163/0.4296, allocations: 7.535 MB / 0.5361 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005599/0.4302, allocations: 239.2 kB / 0.5363 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001483/0.4317, allocations: 0.6746 MB / 0.537 GB, free: 2.535 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0138/0.4455, allocations: 5.616 MB / 0.5425 GB, free: 14.57 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4456, allocations: 0 / 0.5425 GB, free: 14.57 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4456, allocations: 0 / 0.5425 GB, free: 14.57 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.332e-05/0.4457, allocations: 0 / 0.5425 GB, free: 14.57 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.007111/0.4528, allocations: 2.167 MB / 0.5446 GB, free: 12.35 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.4528, allocations: 8.031 kB / 0.5446 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003852/0.4567, allocations: 0.5612 MB / 0.5452 GB, free: 11.78 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001969/0.4587, allocations: 0.9499 MB / 0.5461 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.294e-05/0.4588, allocations: 70.56 kB / 0.5461 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002237/0.459, allocations: 99.94 kB / 0.5462 GB, free: 10.62 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003903/0.463, allocations: 1.615 MB / 0.5478 GB, free: 8.891 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.029e-05/0.463, allocations: 7.938 kB / 0.5478 GB, free: 8.883 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.4631, allocations: 44 kB / 0.5479 GB, free: 8.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.4632, allocations: 24 kB / 0.5479 GB, free: 8.816 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003079/0.4662, allocations: 1.377 MB / 0.5492 GB, free: 7.434 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009504/0.4758, allocations: 8.249 MB / 0.5573 GB, free: 14.58 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002949/0.4787, allocations: 1.654 MB / 0.5589 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004912/0.4793, allocations: 354.9 kB / 0.5592 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1254/0.6047, allocations: 63.97 MB / 0.6217 GB, free: 4.914 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.282e-05/0.6048, allocations: 43 kB / 0.6218 GB, free: 4.863 MB / 494.1 MB Notification: Performance of pre-optimization done (n=69): time 2.524e-06/0.6048, allocations: 3.938 kB / 0.6218 GB, free: 4.859 MB / 494.1 MB Notification: Performance of matching and sorting (n=69): time 0.005745/0.6106, allocations: 1.881 MB / 0.6236 GB, free: 2.949 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.6107, allocations: 196.3 kB / 0.6238 GB, free: 2.715 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.6121, allocations: 0.9644 MB / 0.6247 GB, free: 1.734 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.976e-05/0.6122, allocations: 37.7 kB / 0.6248 GB, free: 1.691 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004725/0.6127, allocations: 0.5726 MB / 0.6253 GB, free: 1.109 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002595/0.613, allocations: 244.5 kB / 0.6256 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.6131, allocations: 93.66 kB / 0.6256 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.6133, allocations: 345.9 kB / 0.626 GB, free: 436 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004749/0.6138, allocations: 270.5 kB / 0.6262 GB, free: 168 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.198/0.8118, allocations: 0.7048 MB / 0.6269 GB, free: 155 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.8129, allocations: 1.028 MB / 0.6279 GB, free: 154.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.8129, allocations: 2.906 kB / 0.6279 GB, free: 154.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001631/0.8145, allocations: 1.167 MB / 0.6291 GB, free: 154.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.8145, allocations: 9.906 kB / 0.6291 GB, free: 154.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.8146, allocations: 16.69 kB / 0.6291 GB, free: 154.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003151/0.8177, allocations: 0.5256 MB / 0.6296 GB, free: 154.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008461/0.8186, allocations: 260 kB / 0.6299 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000761/0.8194, allocations: 1.372 MB / 0.6312 GB, free: 153.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008074/0.8202, allocations: 160.1 kB / 0.6314 GB, free: 153.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.117e-05/0.8203, allocations: 65.48 kB / 0.6314 GB, free: 153.2 MB / 494.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 (rightAdapter.state_b.phase,rightAdapter.state_a.phase,rightAdapter.state_a_nondes.phase,rightAdapter.state_b_des.phase,leftAdapter.state_b.phase,leftAdapter.state_a.phase,leftAdapter.state_a_nondes.phase,leftAdapter.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 (116): * Single equations (assignments): 114 * 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.0004418/0.8207, allocations: 295.1 kB / 0.6317 GB, free: 153.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.8209, allocations: 120.9 kB / 0.6318 GB, free: 153.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003898/0.8248, allocations: 4.411 MB / 0.6361 GB, free: 152.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.195e-05/0.8248, allocations: 45.8 kB / 0.6362 GB, free: 152.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.8248, allocations: 5.719 kB / 0.6362 GB, free: 152.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.8249, allocations: 8.297 kB / 0.6362 GB, free: 152.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003999/0.8289, allocations: 4.834 MB / 0.6409 GB, free: 149.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.8289, allocations: 0 / 0.6409 GB, free: 149.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006504/0.8295, allocations: 144.6 kB / 0.641 GB, free: 149.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003559/0.8331, allocations: 1.608 MB / 0.6426 GB, free: 149.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.606e-05/0.8332, allocations: 24.78 kB / 0.6426 GB, free: 149.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001051/0.8342, allocations: 1.758 MB / 0.6443 GB, free: 148.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.8342, allocations: 3.938 kB / 0.6443 GB, free: 148.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.836, allocations: 1.944 MB / 0.6462 GB, free: 147 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003452/0.8364, allocations: 354.5 kB / 0.6466 GB, free: 146.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.8365, allocations: 14.84 kB / 0.6466 GB, free: 146.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004997/0.837, allocations: 60.98 kB / 0.6467 GB, free: 146.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.87e-05/0.8371, allocations: 55.55 kB / 0.6467 GB, free: 146.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.212e-05/0.8371, allocations: 33.39 kB / 0.6467 GB, free: 146.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009193/0.838, allocations: 0.8302 MB / 0.6476 GB, free: 146.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8381, allocations: 0 / 0.6476 GB, free: 146.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004427/0.8425, allocations: 1.26 MB / 0.6488 GB, free: 146.3 MB / 494.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 (73): * Single equations (assignments): 63 * 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.004324/0.8468, allocations: 1.264 MB / 0.65 GB, free: 146.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002168/0.849, allocations: 1.168 MB / 0.6512 GB, free: 145.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.849, allocations: 0 / 0.6512 GB, free: 145.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.8502, allocations: 0.8574 MB / 0.652 GB, free: 145.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003278/0.8535, allocations: 0.6836 MB / 0.6527 GB, free: 145.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003893/0.8574, allocations: 3.748 MB / 0.6563 GB, free: 143 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007164/0.8581, allocations: 1.307 MB / 0.6576 GB, free: 142.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001216/0.8593, allocations: 0.6219 MB / 0.6582 GB, free: 142.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/0.8596, allocations: 111.8 kB / 0.6583 GB, free: 142.3 MB / 494.1 MB Notification: Performance of SimCode: time 6.71e-07/0.8596, allocations: 2.953 kB / 0.6583 GB, free: 142.3 MB / 494.1 MB Notification: Performance of Templates: time 0.06806/0.9277, allocations: 55.18 MB / 0.7122 GB, free: 105.1 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1) Environment - environmentSimulation: