Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001348/0.001348, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001351/0.001351, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.608/1.608, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.23/0.23, allocations: 46.11 MB / 344.2 MB, free: 11.56 MB / 286.1 MB Warning: Requested package Modelica 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.002282/0.002283, allocations: 82.55 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.115, allocations: 62.46 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.2561/0.3711, allocations: 63.04 MB / 0.5305 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02592/0.397, allocations: 22.46 MB / 0.5525 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001524/0.3986, allocations: 28.59 kB / 0.5525 GB, free: 9.188 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002207/0.4008, allocations: 0.7364 MB / 0.5532 GB, free: 8.562 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01753/0.4184, allocations: 5.741 MB / 0.5588 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009469/0.4279, allocations: 3.472 MB / 0.5622 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01798/0.4459, allocations: 8.969 MB / 0.571 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001268/0.4472, allocations: 0.6634 MB / 0.5716 GB, free: 9.941 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00216/0.4494, allocations: 1.008 MB / 0.5726 GB, free: 8.93 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001415/0.4508, allocations: 0.7701 MB / 0.5734 GB, free: 8.156 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002039/0.451, allocations: 84 kB / 0.5734 GB, free: 8.074 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01596/0.467, allocations: 7.497 MB / 0.5808 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000504/0.4675, allocations: 274.9 kB / 0.581 GB, free: 308 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00133/0.4689, allocations: 0.6882 MB / 0.5817 GB, free: 15.61 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01392/0.4828, allocations: 5.706 MB / 0.5873 GB, free: 9.891 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4828, allocations: 0 / 0.5873 GB, free: 9.891 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4828, allocations: 0 / 0.5873 GB, free: 9.891 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.001e-05/0.4829, allocations: 0 / 0.5873 GB, free: 9.891 MB / 430.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.00683/0.4897, allocations: 2.455 MB / 0.5897 GB, free: 7.383 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.4898, allocations: 12.03 kB / 0.5897 GB, free: 7.371 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001881/0.49, allocations: 148.3 kB / 0.5898 GB, free: 7.219 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003796/0.4938, allocations: 0.5496 MB / 0.5903 GB, free: 6.668 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/0.4953, allocations: 0.9538 MB / 0.5913 GB, free: 5.672 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.135e-05/0.4954, allocations: 74.38 kB / 0.5913 GB, free: 5.598 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.4955, allocations: 99.94 kB / 0.5914 GB, free: 5.5 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003535/0.4991, allocations: 1.623 MB / 0.593 GB, free: 3.75 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.4991, allocations: 3.938 kB / 0.593 GB, free: 3.746 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.4993, allocations: 48 kB / 0.5931 GB, free: 3.699 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.59e-05/0.4993, allocations: 27.94 kB / 0.5931 GB, free: 3.672 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00338/0.5027, allocations: 1.373 MB / 0.5944 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01057/0.5133, allocations: 8.251 MB / 0.6025 GB, free: 9.441 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003359/0.5167, allocations: 1.656 MB / 0.6041 GB, free: 7.621 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006867/0.5174, allocations: 361.9 kB / 0.6045 GB, free: 7.266 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1427/0.6601, allocations: 70.37 MB / 0.6732 GB, free: 7.973 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.396e-05/0.6602, allocations: 43 kB / 0.6732 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=69): time 2.564e-06/0.6602, allocations: 0 / 0.6732 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of matching and sorting (n=69): time 0.005748/0.6659, allocations: 1.876 MB / 0.6751 GB, free: 6.02 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.6661, allocations: 188.4 kB / 0.6752 GB, free: 5.793 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001325/0.6674, allocations: 0.9799 MB / 0.6762 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.197e-05/0.6675, allocations: 33.7 kB / 0.6762 GB, free: 4.758 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004812/0.668, allocations: 0.5649 MB / 0.6768 GB, free: 4.184 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002316/0.6682, allocations: 252.5 kB / 0.677 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003106/0.6685, allocations: 226.7 kB / 0.6772 GB, free: 3.707 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001717/0.6687, allocations: 341.9 kB / 0.6776 GB, free: 3.367 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004667/0.6692, allocations: 270.5 kB / 0.6778 GB, free: 3.102 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008702/0.6701, allocations: 0.712 MB / 0.6785 GB, free: 2.188 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.6715, allocations: 1.027 MB / 0.6795 GB, free: 0.9688 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.6715, allocations: 8 kB / 0.6795 GB, free: 0.9609 MB / 0.5137 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.002046/0.6735, allocations: 1.165 MB / 0.6807 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.6736, allocations: 13 kB / 0.6807 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.6736, allocations: 12 kB / 0.6807 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003311/0.6769, allocations: 0.5273 MB / 0.6812 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009801/0.6779, allocations: 263.5 kB / 0.6814 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001207/0.6791, allocations: 1.371 MB / 0.6828 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007164/0.6799, allocations: 122.6 kB / 0.6829 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.031e-05/0.68, allocations: 64.03 kB / 0.683 GB, free: 13.37 MB / 0.5294 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.0004729/0.6804, allocations: 304.1 kB / 0.6833 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002307/0.6807, allocations: 118.6 kB / 0.6834 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005073/0.6858, allocations: 4.42 MB / 0.6877 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.998e-05/0.6858, allocations: 39.94 kB / 0.6877 GB, free: 8.457 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.6858, allocations: 0 / 0.6877 GB, free: 8.457 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.6859, allocations: 11.98 kB / 0.6877 GB, free: 8.445 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005566/0.6914, allocations: 4.823 MB / 0.6924 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.6915, allocations: 0 / 0.6924 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007195/0.6922, allocations: 155.8 kB / 0.6926 GB, free: 3.281 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001564/0.6938, allocations: 0.6824 MB / 0.6933 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.994e-05/0.6938, allocations: 27.98 kB / 0.6933 GB, free: 2.566 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001536/0.6954, allocations: 1.755 MB / 0.695 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.6954, allocations: 4 kB / 0.695 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002587/0.698, allocations: 1.948 MB / 0.6969 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004443/0.6985, allocations: 254.6 kB / 0.6972 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.6987, allocations: 51.52 kB / 0.6972 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004142/0.6991, allocations: 16 kB / 0.6972 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.74e-05/0.6992, allocations: 52.48 kB / 0.6973 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.457e-05/0.6992, allocations: 39.92 kB / 0.6973 GB, free: 14.32 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001177/0.7004, allocations: 0.8225 MB / 0.6981 GB, free: 13.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7004, allocations: 0 / 0.6981 GB, free: 13.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004041/0.7045, allocations: 1.28 MB / 0.6994 GB, free: 12.22 MB / 0.545 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.008371/0.7129, allocations: 3.66 MB / 0.7029 GB, free: 8.496 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003237/0.7161, allocations: 1.205 MB / 0.7041 GB, free: 7.293 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.7162, allocations: 8 kB / 0.7041 GB, free: 7.285 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001645/0.7178, allocations: 0.8562 MB / 0.705 GB, free: 6.426 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003691/0.7215, allocations: 0.7274 MB / 0.7057 GB, free: 5.727 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2049/0.9265, allocations: 11.59 MB / 0.717 GB, free: 205.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007173/0.9272, allocations: 1.305 MB / 0.7183 GB, free: 205.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001248/0.9285, allocations: 0.6146 MB / 0.7189 GB, free: 205.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005732/0.9291, allocations: 0.6481 MB / 0.7195 GB, free: 204.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.042e-06/0.9291, allocations: 0 / 0.7195 GB, free: 204.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1065/1.036, allocations: 71.48 MB / 0.7893 GB, free: 147.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.77/15.81, allocations: 15.06 kB / 0.7893 GB, free: 147.2 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.pipe 2>&1)