Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002416/0.002421, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.2/2.2, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001224/0.001223, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2933/0.2933, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004786/0.000479, allocations: 12 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1236, allocations: 58.86 MB / 490.3 MB, free: 9.234 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater): time 0.02644/0.1501, allocations: 14.12 MB / 0.4926 GB, free: 11.06 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01071/0.1608, allocations: 4.753 MB / 0.4973 GB, free: 6.297 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001121/0.162, allocations: 23.81 kB / 0.4973 GB, free: 6.273 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001487/0.1635, allocations: 274.6 kB / 0.4976 GB, free: 6.004 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003373/0.167, allocations: 0.6738 MB / 0.4982 GB, free: 5.328 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00377/0.1708, allocations: 0.7912 MB / 0.499 GB, free: 4.535 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002647/0.1734, allocations: 1.016 MB / 0.5 GB, free: 3.516 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.1746, allocations: 393.5 kB / 0.5004 GB, free: 3.125 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00193/0.1766, allocations: 0.5491 MB / 0.5009 GB, free: 2.574 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001153/0.1778, allocations: 406.5 kB / 0.5013 GB, free: 2.176 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001935/0.178, allocations: 32 kB / 0.5013 GB, free: 2.145 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001397/0.1794, allocations: 247.7 kB / 0.5015 GB, free: 1.902 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005424/0.18, allocations: 215.4 kB / 0.5018 GB, free: 1.691 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003599/0.1804, allocations: 165.3 kB / 0.5019 GB, free: 1.523 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001957/0.1824, allocations: 0.7832 MB / 0.5027 GB, free: 0.7383 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1824, allocations: 0 / 0.5027 GB, free: 0.7383 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.05e-05/0.1824, allocations: 0 / 0.5027 GB, free: 0.7383 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.236e-05/0.1825, allocations: 3.938 kB / 0.5027 GB, free: 0.7344 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002936/0.1854, allocations: 0.9075 MB / 0.5036 GB, free: 15.78 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.1855, allocations: 12.02 kB / 0.5036 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002822/0.1858, allocations: 98.52 kB / 0.5037 GB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00054/0.1864, allocations: 91.14 kB / 0.5038 GB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001439/0.1878, allocations: 0.4927 MB / 0.5042 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001732/0.188, allocations: 100.4 kB / 0.5043 GB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/0.1882, allocations: 44 kB / 0.5044 GB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/0.1904, allocations: 0.8347 MB / 0.5052 GB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.674e-05/0.1905, allocations: 7.953 kB / 0.5052 GB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001231/0.1907, allocations: 24 kB / 0.5052 GB, free: 13.94 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000105/0.1908, allocations: 36.98 kB / 0.5053 GB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001987/0.1928, allocations: 0.6399 MB / 0.5059 GB, free: 13.26 MB / 362.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.008284/0.2011, allocations: 4.367 MB / 0.5101 GB, free: 8.586 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/0.2023, allocations: 347.7 kB / 0.5105 GB, free: 8.238 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003163/0.2055, allocations: 1.717 MB / 0.5122 GB, free: 6.273 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.678e-05/0.2056, allocations: 46.5 kB / 0.5122 GB, free: 6.219 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 2.685e-06/0.2056, allocations: 4 kB / 0.5122 GB, free: 6.215 MB / 362.7 MB Notification: Performance of matching and sorting (n=37): time 0.006224/0.2118, allocations: 1.386 MB / 0.5136 GB, free: 4.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.926e-05/0.212, allocations: 136.5 kB / 0.5137 GB, free: 4.605 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/0.2132, allocations: 0.625 MB / 0.5143 GB, free: 3.973 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001032/0.2133, allocations: 29.7 kB / 0.5143 GB, free: 3.938 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004245/0.2138, allocations: 436.8 kB / 0.5147 GB, free: 3.508 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.214, allocations: 138.1 kB / 0.5149 GB, free: 3.371 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.026e-05/0.214, allocations: 16 kB / 0.5149 GB, free: 3.355 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.2142, allocations: 342.8 kB / 0.5152 GB, free: 3.012 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005682/0.2148, allocations: 181.9 kB / 0.5154 GB, free: 2.836 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008941/0.2157, allocations: 0.5481 MB / 0.5159 GB, free: 2.117 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008038/0.2165, allocations: 297.1 kB / 0.5162 GB, free: 1.828 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.2166, allocations: 4 kB / 0.5162 GB, free: 1.824 MB / 362.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00239/0.219, allocations: 0.7904 MB / 0.517 GB, free: 1.023 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.413e-05/0.219, allocations: 14.97 kB / 0.517 GB, free: 1.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.571e-05/0.2191, allocations: 19.89 kB / 0.517 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006285/0.2197, allocations: 101.5 kB / 0.5171 GB, free: 0.8906 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/0.2209, allocations: 183.7 kB / 0.5173 GB, free: 0.7109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009417/0.2219, allocations: 0.6616 MB / 0.5179 GB, free: 24 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.3207/0.5426, allocations: 38.56 kB / 0.518 GB, free: 45.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/0.5428, allocations: 38.72 kB / 0.518 GB, free: 45.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005878/0.5434, allocations: 260 kB / 0.5183 GB, free: 45.26 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000197/0.5436, allocations: 72.47 kB / 0.5183 GB, free: 45.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.5453, allocations: 0.5047 MB / 0.5188 GB, free: 45.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/0.5454, allocations: 3.547 kB / 0.5188 GB, free: 45.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.5454, allocations: 3.594 kB / 0.5188 GB, free: 45.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.5454, allocations: 3.562 kB / 0.5188 GB, free: 45.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003417/0.5488, allocations: 1.214 MB / 0.52 GB, free: 44.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.5489, allocations: 3 kB / 0.52 GB, free: 44.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006109/0.5495, allocations: 75.2 kB / 0.5201 GB, free: 44.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002791/0.5498, allocations: 40.52 kB / 0.5201 GB, free: 44.78 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.06e-05/0.5499, allocations: 9.422 kB / 0.5201 GB, free: 44.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003967/0.5503, allocations: 0.5691 MB / 0.5207 GB, free: 44.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-06/0.5503, allocations: 4 kB / 0.5207 GB, free: 44.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001651/0.5519, allocations: 0.8592 MB / 0.5215 GB, free: 43.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004675/0.5525, allocations: 198.8 kB / 0.5217 GB, free: 43.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.5526, allocations: 11 kB / 0.5217 GB, free: 43.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007452/0.5534, allocations: 32.06 kB / 0.5218 GB, free: 43.53 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.5535, allocations: 38.47 kB / 0.5218 GB, free: 43.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.036e-05/0.5536, allocations: 22.02 kB / 0.5218 GB, free: 43.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008618/0.5545, allocations: 448.9 kB / 0.5223 GB, free: 43.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5545, allocations: 0 / 0.5223 GB, free: 43.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001348/0.5558, allocations: 201.3 kB / 0.5224 GB, free: 43.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 1 (volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 35 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002599/0.5585, allocations: 2.362 MB / 0.5248 GB, free: 41.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.5602, allocations: 0.4983 MB / 0.5252 GB, free: 41.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/0.5603, allocations: 1.094 kB / 0.5252 GB, free: 41.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006062/0.5609, allocations: 183.9 kB / 0.5254 GB, free: 41.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002828/0.5637, allocations: 298.9 kB / 0.5257 GB, free: 41.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/0.5757, allocations: 12.15 MB / 0.5376 GB, free: 30.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000692/0.5765, allocations: 0.9483 MB / 0.5385 GB, free: 29.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005804/0.5771, allocations: 235.1 kB / 0.5387 GB, free: 29.78 MB / 362.7 MB Notification: Performance of SimCode: time 2.063e-06/0.5771, allocations: 1.375 kB / 0.5387 GB, free: 29.78 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.203/3.78, allocations: 16.69 MB / 0.555 GB, free: 20.8 MB / 362.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat does not exist to compare? outputFormat=mat