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.001363/0.001363, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 247 MB, free: 10.42 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.2227/0.2227, allocations: 46.12 MB / 344.4 MB, free: 11.43 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.002308/0.002308, allocations: 79.86 kB / 480.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.347, allocations: 62.44 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.06835/0.4154, allocations: 63.07 MB / 0.5922 GB, free: 2.445 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02933/0.4448, allocations: 22.46 MB / 0.6141 GB, free: 11.9 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00145/0.4463, allocations: 31.75 kB / 0.6142 GB, free: 11.87 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002029/0.4484, allocations: 0.7374 MB / 0.6149 GB, free: 11.13 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01648/0.4649, allocations: 5.74 MB / 0.6205 GB, free: 5.383 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009196/0.4741, allocations: 3.466 MB / 0.6239 GB, free: 1.918 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01825/0.4924, allocations: 8.979 MB / 0.6326 GB, free: 8.824 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001314/0.4937, allocations: 0.6533 MB / 0.6333 GB, free: 8.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002124/0.4959, allocations: 1.016 MB / 0.6343 GB, free: 7.141 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001065/0.4969, allocations: 0.7817 MB / 0.635 GB, free: 6.355 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001522/0.4971, allocations: 84 kB / 0.6351 GB, free: 6.273 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01606/0.5132, allocations: 7.66 MB / 0.6426 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005527/0.5138, allocations: 270.9 kB / 0.6428 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001278/0.515, allocations: 0.6842 MB / 0.6435 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01609/0.5311, allocations: 5.739 MB / 0.6491 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.5312, allocations: 0 / 0.6491 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.843e-06/0.5312, allocations: 0 / 0.6491 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.443e-05/0.5312, allocations: 4 kB / 0.6491 GB, free: 7.895 MB / 0.4981 GB 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.006567/0.5378, allocations: 2.508 MB / 0.6516 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.5379, allocations: 12.03 kB / 0.6516 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000193/0.5381, allocations: 152.3 kB / 0.6517 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003919/0.542, allocations: 0.562 MB / 0.6523 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001737/0.5437, allocations: 1.009 MB / 0.6533 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.302e-05/0.5438, allocations: 78.12 kB / 0.6533 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.544, allocations: 92 kB / 0.6534 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00354/0.5475, allocations: 1.612 MB / 0.655 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/0.5475, allocations: 7.938 kB / 0.655 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/0.5477, allocations: 44 kB / 0.655 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.929e-05/0.5477, allocations: 28 kB / 0.6551 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003165/0.5509, allocations: 1.369 MB / 0.6564 GB, free: 192 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009579/0.5605, allocations: 8.249 MB / 0.6645 GB, free: 7.332 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00307/0.5636, allocations: 1.654 MB / 0.6661 GB, free: 5.516 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005487/0.5641, allocations: 366.2 kB / 0.6664 GB, free: 5.156 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4165/0.9807, allocations: 70.66 MB / 0.7354 GB, free: 185.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.9807, allocations: 39.03 kB / 0.7355 GB, free: 185.6 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=69): time 2.575e-06/0.9807, allocations: 3.844 kB / 0.7355 GB, free: 185.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69): time 0.00588/0.9866, allocations: 1.882 MB / 0.7373 GB, free: 185.2 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.597e-05/0.9867, allocations: 190.7 kB / 0.7375 GB, free: 185 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001455/0.9882, allocations: 0.9693 MB / 0.7384 GB, free: 184.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.03e-05/0.9883, allocations: 41.19 kB / 0.7385 GB, free: 184.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004049/0.9887, allocations: 0.5754 MB / 0.739 GB, free: 184 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00021/0.9889, allocations: 270.2 kB / 0.7393 GB, free: 183.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003168/0.9893, allocations: 225 kB / 0.7395 GB, free: 183.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.59e-05/0.9894, allocations: 346.7 kB / 0.7398 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004303/0.9898, allocations: 270.2 kB / 0.7401 GB, free: 183.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006864/0.9905, allocations: 0.706 MB / 0.7408 GB, free: 182.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.9917, allocations: 1.026 MB / 0.7418 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.184e-05/0.9917, allocations: 4.75 kB / 0.7418 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=132) (initialization): time 0.002226/0.9939, allocations: 1.171 MB / 0.7429 GB, free: 181 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.326e-05/0.994, allocations: 15.16 kB / 0.743 GB, free: 181 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.175e-05/0.994, allocations: 14.5 kB / 0.743 GB, free: 181 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003151/0.9972, allocations: 0.521 MB / 0.7435 GB, free: 180.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008647/0.9981, allocations: 263.6 kB / 0.7437 GB, free: 180.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007741/0.9988, allocations: 1.372 MB / 0.7451 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007641/0.9996, allocations: 131.8 kB / 0.7452 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.273e-05/0.9997, allocations: 66.66 kB / 0.7453 GB, free: 179.3 MB / 0.5762 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.0004112/1, allocations: 291.6 kB / 0.7455 GB, free: 179.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/1, allocations: 130.4 kB / 0.7457 GB, free: 179.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003407/1.004, allocations: 4.397 MB / 0.75 GB, free: 176.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-05/1.004, allocations: 47.95 kB / 0.75 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/1.004, allocations: 0 / 0.75 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/1.004, allocations: 3.984 kB / 0.75 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003843/1.008, allocations: 4.821 MB / 0.7547 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/1.008, allocations: 4 kB / 0.7547 GB, free: 173.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006827/1.008, allocations: 151.8 kB / 0.7549 GB, free: 173.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001261/1.01, allocations: 0.6746 MB / 0.7555 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.708e-05/1.01, allocations: 31.92 kB / 0.7556 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009313/1.011, allocations: 1.748 MB / 0.7573 GB, free: 170.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.011, allocations: 7.938 kB / 0.7573 GB, free: 170.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/1.012, allocations: 1.958 MB / 0.7592 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002472/1.013, allocations: 268.5 kB / 0.7594 GB, free: 168.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/1.013, allocations: 45.12 kB / 0.7595 GB, free: 168.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003831/1.013, allocations: 19.89 kB / 0.7595 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/1.013, allocations: 52.48 kB / 0.7595 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.243e-05/1.013, allocations: 31.98 kB / 0.7596 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008177/1.014, allocations: 0.8264 MB / 0.7604 GB, free: 167.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/1.014, allocations: 0 / 0.7604 GB, free: 167.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003069/1.017, allocations: 1.289 MB / 0.7616 GB, free: 166.1 MB / 0.5762 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.005687/1.023, allocations: 3.694 MB / 0.7652 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002107/1.025, allocations: 1.163 MB / 0.7664 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/1.025, allocations: 4 kB / 0.7664 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001125/1.026, allocations: 0.8601 MB / 0.7672 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003139/1.029, allocations: 0.7113 MB / 0.7679 GB, free: 159.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01152/1.041, allocations: 10.87 MB / 0.7785 GB, free: 148.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005041/1.041, allocations: 1.312 MB / 0.7798 GB, free: 147.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009744/1.042, allocations: 0.6299 MB / 0.7804 GB, free: 146.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005128/1.043, allocations: 0.6477 MB / 0.7811 GB, free: 145.8 MB / 0.5762 GB Notification: Performance of SimCode: time 7.01e-07/1.043, allocations: 0 / 0.7811 GB, free: 145.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09423/1.137, allocations: 71.8 MB / 0.8512 GB, free: 74.29 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.19/18.33, allocations: 11.58 kB / 0.8512 GB, free: 74.27 MB / 0.5762 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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)