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.001328/0.001329, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 194 kB / 16.53 MB, free: 6.699 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.601/1.601, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.4006/0.4006, allocations: 39.93 MB / 309.7 MB, free: 9.297 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.001647/0.001647, allocations: 66.41 kB / 377.6 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1324, allocations: 56.89 MB / 434.5 MB, free: 3.684 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.2892/0.4217, allocations: 62.87 MB / 497.4 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02291/0.4446, allocations: 22.44 MB / 0.5076 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001726/0.4464, allocations: 27.97 kB / 0.5077 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002318/0.4488, allocations: 0.7296 MB / 0.5084 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01949/0.4683, allocations: 5.737 MB / 0.514 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01253/0.4809, allocations: 3.45 MB / 0.5173 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02228/0.5032, allocations: 8.962 MB / 0.5261 GB, free: 5.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001869/0.5051, allocations: 0.662 MB / 0.5267 GB, free: 4.848 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002973/0.5081, allocations: 0.9984 MB / 0.5277 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001265/0.5094, allocations: 0.7822 MB / 0.5285 GB, free: 3.855 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001902/0.5096, allocations: 88.38 kB / 0.5286 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01847/0.5281, allocations: 7.49 MB / 0.5359 GB, free: 28 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004598/0.5286, allocations: 262.9 kB / 0.5361 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001276/0.5299, allocations: 0.6896 MB / 0.5368 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01357/0.5434, allocations: 5.692 MB / 0.5424 GB, free: 10.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.5435, allocations: 0 / 0.5424 GB, free: 10.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.5435, allocations: 0 / 0.5424 GB, free: 10.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.5435, allocations: 0 / 0.5424 GB, free: 10.23 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.005977/0.5495, allocations: 2.442 MB / 0.5447 GB, free: 7.738 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.5495, allocations: 11.89 kB / 0.5448 GB, free: 7.727 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003571/0.5531, allocations: 0.5574 MB / 0.5453 GB, free: 7.168 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00139/0.5545, allocations: 0.9538 MB / 0.5462 GB, free: 6.172 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.549e-05/0.5546, allocations: 70.56 kB / 0.5463 GB, free: 6.105 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.5547, allocations: 99.94 kB / 0.5464 GB, free: 6.008 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003163/0.5579, allocations: 1.615 MB / 0.548 GB, free: 4.27 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.5579, allocations: 7.875 kB / 0.548 GB, free: 4.262 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-05/0.558, allocations: 48 kB / 0.548 GB, free: 4.215 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.113e-05/0.5581, allocations: 24 kB / 0.548 GB, free: 4.191 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0029/0.561, allocations: 1.377 MB / 0.5494 GB, free: 2.816 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008988/0.57, allocations: 8.26 MB / 0.5575 GB, free: 9.949 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002884/0.5729, allocations: 1.65 MB / 0.5591 GB, free: 8.137 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005133/0.5734, allocations: 362.8 kB / 0.5594 GB, free: 7.777 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1298/0.7032, allocations: 63.4 MB / 0.6213 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.858e-05/0.7033, allocations: 39 kB / 0.6214 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of pre-optimization done (n=69): time 3.016e-06/0.7033, allocations: 0 / 0.6214 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of matching and sorting (n=69): time 0.00603/0.7093, allocations: 1.877 MB / 0.6232 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/0.7095, allocations: 196.3 kB / 0.6234 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001762/0.7113, allocations: 0.9644 MB / 0.6243 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 9.119e-05/0.7114, allocations: 41.7 kB / 0.6244 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000529/0.7119, allocations: 0.5649 MB / 0.6249 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003001/0.7122, allocations: 248.5 kB / 0.6252 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003878/0.7126, allocations: 230.7 kB / 0.6254 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001762/0.7128, allocations: 349.8 kB / 0.6257 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005332/0.7134, allocations: 274.4 kB / 0.626 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009129/0.7143, allocations: 0.7042 MB / 0.6267 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.7158, allocations: 1.027 MB / 0.6277 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.66e-05/0.7158, allocations: 8 kB / 0.6277 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.002327/0.7181, allocations: 1.16 MB / 0.6288 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.7182, allocations: 9.406 kB / 0.6288 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.729e-05/0.7182, allocations: 16.88 kB / 0.6288 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003333/0.7215, allocations: 0.5242 MB / 0.6293 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009554/0.7225, allocations: 263.6 kB / 0.6296 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001176/0.7237, allocations: 1.372 MB / 0.6309 GB, free: 6.445 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009645/0.7247, allocations: 130.5 kB / 0.631 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.7248, allocations: 64.03 kB / 0.6311 GB, free: 6.254 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.0005773/0.7254, allocations: 296.1 kB / 0.6314 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003806/0.7258, allocations: 118.6 kB / 0.6315 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004975/0.7308, allocations: 4.409 MB / 0.6358 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.863e-05/0.7308, allocations: 47.92 kB / 0.6359 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.7309, allocations: 0 / 0.6359 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.7309, allocations: 3.984 kB / 0.6359 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2384/0.9693, allocations: 4.831 MB / 0.6406 GB, free: 170.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.717e-06/0.9694, allocations: 0 / 0.6406 GB, free: 170.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006896/0.9701, allocations: 154.4 kB / 0.6407 GB, free: 170.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001331/0.9714, allocations: 0.6839 MB / 0.6414 GB, free: 170.7 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-05/0.9715, allocations: 23.77 kB / 0.6414 GB, free: 170.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001056/0.9725, allocations: 1.757 MB / 0.6431 GB, free: 169.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.9725, allocations: 3.281 kB / 0.6431 GB, free: 169.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002253/0.9748, allocations: 1.946 MB / 0.645 GB, free: 168.4 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004421/0.9753, allocations: 262.8 kB / 0.6453 GB, free: 168.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.9754, allocations: 36.61 kB / 0.6453 GB, free: 168.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004028/0.9758, allocations: 21.91 kB / 0.6453 GB, free: 168.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.109e-05/0.9759, allocations: 54.62 kB / 0.6454 GB, free: 168.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.922e-05/0.976, allocations: 29.66 kB / 0.6454 GB, free: 168.1 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009437/0.9769, allocations: 0.833 MB / 0.6462 GB, free: 167.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9769, allocations: 0 / 0.6462 GB, free: 167.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003691/0.9806, allocations: 1.267 MB / 0.6475 GB, free: 167.7 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.00437/0.985, allocations: 1.261 MB / 0.6487 GB, free: 167.5 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002953/0.988, allocations: 1.203 MB / 0.6499 GB, free: 167.2 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.988, allocations: 6.406 kB / 0.6499 GB, free: 167.2 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.9893, allocations: 0.85 MB / 0.6507 GB, free: 166.8 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003409/0.9927, allocations: 0.726 MB / 0.6514 GB, free: 166.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003511/0.9962, allocations: 3.025 MB / 0.6544 GB, free: 165.2 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006243/0.9969, allocations: 1.304 MB / 0.6557 GB, free: 164.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001188/0.9981, allocations: 0.6154 MB / 0.6563 GB, free: 164.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.9983, allocations: 118 kB / 0.6564 GB, free: 164.4 MB / 0.4981 GB Notification: Performance of SimCode: time 1.112e-06/0.9983, allocations: 0.7656 kB / 0.6564 GB, free: 164.4 MB / 0.4981 GB Notification: Performance of Templates: time 0.08555/1.084, allocations: 56.58 MB / 0.7116 GB, free: 131.6 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)