Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.001086/0.001085, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001122/0.001122, allocations: 193.9 kB / 16.25 MB, free: 6.621 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.684/1.684, allocations: 205.1 MB / 222.1 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4107/0.4107, allocations: 39.93 MB / 309.4 MB, free: 8.918 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.2. 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.001396/0.001396, allocations: 71.88 kB / 377.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1364, allocations: 56.88 MB / 434 MB, free: 3.746 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.3297/0.4662, allocations: 63.67 MB / 497.7 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02398/0.4902, allocations: 22.57 MB / 0.508 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002483/0.4928, allocations: 37.62 kB / 0.5081 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002395/0.4953, allocations: 0.6448 MB / 0.5087 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02246/0.5177, allocations: 5.112 MB / 0.5137 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01249/0.5303, allocations: 3.157 MB / 0.5168 GB, free: 9.375 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01916/0.5494, allocations: 8.966 MB / 0.5255 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00174/0.5512, allocations: 0.6566 MB / 0.5262 GB, free: 4.895 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002834/0.5541, allocations: 1.015 MB / 0.5272 GB, free: 4.367 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001441/0.5555, allocations: 0.8051 MB / 0.528 GB, free: 3.902 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001693/0.5557, allocations: 85.03 kB / 0.528 GB, free: 3.902 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01856/0.5743, allocations: 7.551 MB / 0.5354 GB, free: 48 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005525/0.5749, allocations: 272.8 kB / 0.5357 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001498/0.5764, allocations: 0.6943 MB / 0.5363 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01798/0.5944, allocations: 5.704 MB / 0.5419 GB, free: 10.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.5944, allocations: 0 / 0.5419 GB, free: 10.43 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5944, allocations: 3.938 kB / 0.5419 GB, free: 10.43 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.458e-05/0.5944, allocations: 0 / 0.5419 GB, free: 10.43 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.006992/0.6014, allocations: 2.444 MB / 0.5443 GB, free: 7.926 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.6015, allocations: 11.89 kB / 0.5443 GB, free: 7.914 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003828/0.6053, allocations: 0.5496 MB / 0.5449 GB, free: 7.363 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/0.6069, allocations: 0.95 MB / 0.5458 GB, free: 6.371 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.765e-05/0.607, allocations: 74.56 kB / 0.5459 GB, free: 6.301 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.6071, allocations: 99.94 kB / 0.5459 GB, free: 6.203 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003371/0.6105, allocations: 1.615 MB / 0.5475 GB, free: 4.465 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.6105, allocations: 7.875 kB / 0.5475 GB, free: 4.457 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.956e-05/0.6106, allocations: 48 kB / 0.5476 GB, free: 4.41 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.301e-05/0.6106, allocations: 24 kB / 0.5476 GB, free: 4.387 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003016/0.6137, allocations: 1.373 MB / 0.5489 GB, free: 3.016 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009078/0.6227, allocations: 8.242 MB / 0.557 GB, free: 10.17 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002895/0.6257, allocations: 1.658 MB / 0.5586 GB, free: 8.352 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004834/0.6262, allocations: 350.9 kB / 0.5589 GB, free: 8.004 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1182/0.7444, allocations: 63.4 MB / 0.6209 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.522e-05/0.7445, allocations: 46.91 kB / 0.6209 GB, free: 1.027 MB / 494.1 MB Notification: Performance of pre-optimization done (n=69): time 2.535e-06/0.7445, allocations: 0 / 0.6209 GB, free: 1.027 MB / 494.1 MB Notification: Performance of matching and sorting (n=69): time 0.005888/0.7504, allocations: 1.879 MB / 0.6227 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.7506, allocations: 184.4 kB / 0.6229 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001389/0.752, allocations: 0.9684 MB / 0.6239 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.143e-05/0.7521, allocations: 37.7 kB / 0.6239 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004235/0.7525, allocations: 0.5648 MB / 0.6244 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002308/0.7527, allocations: 256.4 kB / 0.6247 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003003/0.753, allocations: 218.8 kB / 0.6249 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.7532, allocations: 349.9 kB / 0.6252 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004247/0.7536, allocations: 270.5 kB / 0.6255 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008755/0.7545, allocations: 0.7119 MB / 0.6262 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/0.7558, allocations: 1.031 MB / 0.6272 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.7558, allocations: 7.938 kB / 0.6272 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.001939/0.7578, allocations: 1.16 MB / 0.6283 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.7578, allocations: 12 kB / 0.6283 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/0.7578, allocations: 20.16 kB / 0.6284 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003267/0.7611, allocations: 0.5228 MB / 0.6289 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009254/0.762, allocations: 267.6 kB / 0.6291 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/0.7632, allocations: 1.365 MB / 0.6305 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009558/0.7642, allocations: 156.2 kB / 0.6306 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-05/0.7643, allocations: 63.98 kB / 0.6307 GB, free: 6.453 MB / 0.4981 GB 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.0005009/0.7648, allocations: 296.5 kB / 0.631 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000202/0.765, allocations: 118.6 kB / 0.6311 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00452/0.7695, allocations: 4.408 MB / 0.6354 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.235e-05/0.7696, allocations: 47.92 kB / 0.6354 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.7696, allocations: 0 / 0.6354 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.7696, allocations: 7.984 kB / 0.6354 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2656/1.035, allocations: 4.83 MB / 0.6401 GB, free: 170.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/1.035, allocations: 0.8438 kB / 0.6401 GB, free: 170.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007097/1.036, allocations: 152.8 kB / 0.6403 GB, free: 170.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001362/1.037, allocations: 0.6835 MB / 0.641 GB, free: 170.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.129e-05/1.037, allocations: 21.66 kB / 0.641 GB, free: 170.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/1.038, allocations: 1.76 MB / 0.6427 GB, free: 168.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/1.038, allocations: 0.6875 kB / 0.6427 GB, free: 168.9 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001995/1.04, allocations: 1.946 MB / 0.6446 GB, free: 168 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004036/1.041, allocations: 263.9 kB / 0.6449 GB, free: 167.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001676/1.041, allocations: 43.14 kB / 0.6449 GB, free: 167.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005164/1.042, allocations: 50.86 kB / 0.6449 GB, free: 167.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.281e-05/1.042, allocations: 56.77 kB / 0.645 GB, free: 167.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.293e-05/1.042, allocations: 32.3 kB / 0.645 GB, free: 167.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009258/1.043, allocations: 0.8412 MB / 0.6458 GB, free: 167.4 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.043, allocations: 3.969 kB / 0.6459 GB, free: 167.4 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003788/1.046, allocations: 1.263 MB / 0.6471 GB, free: 167.3 MB / 0.4981 GB 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.004627/1.051, allocations: 1.247 MB / 0.6483 GB, free: 167.2 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003102/1.054, allocations: 1.204 MB / 0.6495 GB, free: 166.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/1.054, allocations: 0.5938 kB / 0.6495 GB, free: 166.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001239/1.055, allocations: 0.8626 MB / 0.6503 GB, free: 166.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003261/1.059, allocations: 0.7307 MB / 0.651 GB, free: 166.3 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003816/1.063, allocations: 3.706 MB / 0.6547 GB, free: 164.1 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005355/1.063, allocations: 1.313 MB / 0.6559 GB, free: 163.4 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001298/1.064, allocations: 0.6101 MB / 0.6565 GB, free: 163.4 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002346/1.065, allocations: 111.5 kB / 0.6566 GB, free: 163.4 MB / 0.4981 GB Notification: Performance of SimCode: time 9.22e-07/1.065, allocations: 0 / 0.6566 GB, free: 163.4 MB / 0.4981 GB Notification: Performance of Templates: time 0.07822/1.143, allocations: 56.47 MB / 0.7118 GB, free: 131.3 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1)