Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestInitialization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001032/0.001037, allocations: 200.6 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.5 MB / 243.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007479/0.000748, allocations: 96.23 kB / 295.5 MB, free: 6.699 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2956/0.2956, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002496/0.0002496, allocations: 8 kB / 465.4 MB, free: 12.6 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2736, allocations: 62.96 MB / 0.516 GB, free: 37.34 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization): time 0.1329/0.4065, allocations: 138.8 MB / 0.6515 GB, free: 14.27 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.01246/0.419, allocations: 9.875 MB / 0.6612 GB, free: 4.383 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009537/0.42, allocations: 39.69 kB / 0.6612 GB, free: 4.344 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001081/0.4211, allocations: 333.9 kB / 0.6615 GB, free: 4.016 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.003398/0.4246, allocations: 1.408 MB / 0.6629 GB, free: 2.602 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005118/0.4297, allocations: 2.135 MB / 0.665 GB, free: 488 kB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.00328/0.433, allocations: 3.235 MB / 0.6682 GB, free: 13.23 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008301/0.4338, allocations: 0.6483 MB / 0.6688 GB, free: 12.57 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001253/0.4351, allocations: 0.9109 MB / 0.6697 GB, free: 11.66 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001329/0.4364, allocations: 1.094 MB / 0.6708 GB, free: 10.56 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001576/0.4366, allocations: 56 kB / 0.6708 GB, free: 10.5 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003469/0.4401, allocations: 1.914 MB / 0.6727 GB, free: 8.586 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003952/0.4405, allocations: 351 kB / 0.673 GB, free: 8.242 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006144/0.4411, allocations: 0.5229 MB / 0.6735 GB, free: 7.711 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002398/0.4435, allocations: 1.847 MB / 0.6753 GB, free: 5.859 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4435, allocations: 0 / 0.6753 GB, free: 5.859 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4435, allocations: 8 kB / 0.6753 GB, free: 5.852 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.303e-05/0.4436, allocations: 0 / 0.6753 GB, free: 5.852 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 179 * Number of variables: 179 Notification: Performance of Generate backend data structure: time 0.002851/0.4464, allocations: 1.371 MB / 0.6767 GB, free: 4.43 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.4465, allocations: 12.03 kB / 0.6767 GB, free: 4.418 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001649/0.4466, allocations: 126.5 kB / 0.6768 GB, free: 4.285 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000328/0.447, allocations: 118.8 kB / 0.6769 GB, free: 4.168 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.448, allocations: 0.7098 MB / 0.6776 GB, free: 3.414 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.4481, allocations: 112.7 kB / 0.6777 GB, free: 3.293 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.4482, allocations: 67.97 kB / 0.6778 GB, free: 3.227 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001781/0.45, allocations: 1.204 MB / 0.679 GB, free: 1.988 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.693e-05/0.4501, allocations: 7.844 kB / 0.679 GB, free: 1.98 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.77e-05/0.4502, allocations: 27.98 kB / 0.679 GB, free: 1.953 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/0.4503, allocations: 73.94 kB / 0.6791 GB, free: 1.879 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/0.4522, allocations: 1.202 MB / 0.6802 GB, free: 0.6758 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.209/0.6612, allocations: 4.93 MB / 0.6851 GB, free: 140.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.6623, allocations: 0.6779 MB / 0.6857 GB, free: 140.5 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005134/0.6628, allocations: 425.8 kB / 0.6861 GB, free: 140.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002636/0.6655, allocations: 2.441 MB / 0.6885 GB, free: 138.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.6655, allocations: 45.28 kB / 0.6885 GB, free: 138.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=52): time 1.804e-06/0.6655, allocations: 0 / 0.6885 GB, free: 138.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=57): time 0.005979/0.6715, allocations: 3.028 MB / 0.6915 GB, free: 137 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.6715, allocations: 166.8 kB / 0.6917 GB, free: 136.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009631/0.6725, allocations: 0.9492 MB / 0.6926 GB, free: 136.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.879e-05/0.6726, allocations: 36.45 kB / 0.6926 GB, free: 136.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.6728, allocations: 469.7 kB / 0.6931 GB, free: 136 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.6729, allocations: 206.3 kB / 0.6933 GB, free: 135.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-05/0.673, allocations: 21.62 kB / 0.6933 GB, free: 135.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.911e-05/0.6731, allocations: 340.5 kB / 0.6936 GB, free: 135.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00059/0.6737, allocations: 450.3 kB / 0.694 GB, free: 135.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006721/0.6743, allocations: 0.694 MB / 0.6947 GB, free: 134.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.6755, allocations: 1.051 MB / 0.6957 GB, free: 134.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.6755, allocations: 2.906 kB / 0.6958 GB, free: 134.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.001975/0.6775, allocations: 1.529 MB / 0.6972 GB, free: 133.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001045/0.6776, allocations: 297 kB / 0.6975 GB, free: 133.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.6776, allocations: 12.78 kB / 0.6975 GB, free: 133.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001385/0.679, allocations: 0.5146 MB / 0.698 GB, free: 133.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000635/0.6797, allocations: 184.8 kB / 0.6982 GB, free: 133.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.6815, allocations: 2.933 MB / 0.7011 GB, free: 130.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000831/0.6823, allocations: 57.28 kB / 0.7011 GB, free: 130.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.919e-05/0.6824, allocations: 49.27 kB / 0.7012 GB, free: 130.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.493e-06/0.6824, allocations: 6.375 kB / 0.7012 GB, free: 130.5 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001971/0.6844, allocations: 1.384 MB / 0.7025 GB, free: 129.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.6844, allocations: 12.12 kB / 0.7026 GB, free: 129.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008975/0.6853, allocations: 415.6 kB / 0.7029 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00066/0.686, allocations: 196.6 kB / 0.7031 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/0.6876, allocations: 2.821 MB / 0.7059 GB, free: 127.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007797/0.6884, allocations: 50.45 kB / 0.7059 GB, free: 127.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.109e-05/0.6885, allocations: 48.92 kB / 0.706 GB, free: 127.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 4 (vol1.inFlow[1],vol1.inFlow[2],vol1.regularFlow[2],vol1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 2 {2 5,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.000471/0.6889, allocations: 378.8 kB / 0.7063 GB, free: 126.8 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.6891, allocations: 98.03 kB / 0.7064 GB, free: 126.8 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001968/0.691, allocations: 1.396 MB / 0.7078 GB, free: 126.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.809e-06/0.6911, allocations: 5.594 kB / 0.7078 GB, free: 126.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.6911, allocations: 7.25 kB / 0.7078 GB, free: 126.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.6911, allocations: 3.094 kB / 0.7078 GB, free: 126.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003272/0.6944, allocations: 2.333 MB / 0.7101 GB, free: 125 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.6944, allocations: 0 / 0.7101 GB, free: 125 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004985/0.6949, allocations: 90.81 kB / 0.7102 GB, free: 125 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001495/0.6964, allocations: 0.5114 MB / 0.7107 GB, free: 124.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.848e-05/0.6965, allocations: 17.7 kB / 0.7107 GB, free: 124.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001916/0.6984, allocations: 2.925 MB / 0.7136 GB, free: 122.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.6984, allocations: 1.188 kB / 0.7136 GB, free: 122.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002547/0.701, allocations: 1.75 MB / 0.7153 GB, free: 121.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005203/0.7015, allocations: 312.9 kB / 0.7156 GB, free: 121.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.7016, allocations: 16.09 kB / 0.7156 GB, free: 121.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005904/0.7022, allocations: 39.39 kB / 0.7156 GB, free: 121.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.7024, allocations: 53.34 kB / 0.7157 GB, free: 121.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.166e-05/0.7025, allocations: 32.11 kB / 0.7157 GB, free: 121.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0008678/0.7034, allocations: 0.6678 MB / 0.7164 GB, free: 120.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7034, allocations: 0 / 0.7164 GB, free: 120.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002041/0.7054, allocations: 0.8124 MB / 0.7171 GB, free: 120.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (vol1.medium.p,vol1.medium.T) * Number of discrete variables: 2 (vol1.inFlow[1],vol1.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 2 {2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.004117/0.7096, allocations: 2.852 MB / 0.7199 GB, free: 119.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0035/0.7131, allocations: 1.897 MB / 0.7218 GB, free: 118.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.7131, allocations: 1.031 kB / 0.7218 GB, free: 118.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.7141, allocations: 0.5666 MB / 0.7223 GB, free: 118.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.7163, allocations: 412.1 kB / 0.7227 GB, free: 118.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.7266, allocations: 6.907 MB / 0.7295 GB, free: 114.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.727, allocations: 1.054 MB / 0.7305 GB, free: 113.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004746/0.7275, allocations: 373.7 kB / 0.7309 GB, free: 113.3 MB / 490.7 MB Notification: Performance of SimCode: time 5.81e-07/0.7275, allocations: 0 / 0.7309 GB, free: 113.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.428/6.156, allocations: 33.2 MB / 0.7633 GB, free: 81.6 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestInitialization_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestInitialization.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe 2>&1)