Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008907/0.0008907, allocations: 98.42 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008606/0.0008606, allocations: 185.7 kB / 17.89 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 223.2 MB / 241.9 MB, free: 356 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1955/0.1955, allocations: 44.22 MB / 337.2 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003146/0.0003147, allocations: 8 kB / 409.7 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.127, allocations: 61.91 MB / 471.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater): time 0.01539/0.1425, allocations: 15.53 MB / 487.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006782/0.1493, allocations: 5.2 MB / 492.4 MB, free: 8.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006985/0.15, allocations: 19.81 kB / 492.4 MB, free: 8.801 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007384/0.1508, allocations: 266.4 kB / 492.7 MB, free: 8.539 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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.001761/0.1525, allocations: 0.7731 MB / 493.4 MB, free: 7.762 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002262/0.1548, allocations: 0.7865 MB / 494.2 MB, free: 6.984 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002345/0.1572, allocations: 2.183 MB / 496.4 MB, free: 4.797 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005533/0.1577, allocations: 381.2 kB / 496.8 MB, free: 4.418 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001034/0.1588, allocations: 0.6499 MB / 497.4 MB, free: 3.766 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000768/0.1596, allocations: 0.6033 MB / 498 MB, free: 3.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.501e-05/0.1597, allocations: 32 kB / 498.1 MB, free: 3.129 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000667/0.1603, allocations: 211.7 kB / 498.3 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000251/0.1606, allocations: 227.3 kB / 498.5 MB, free: 2.699 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.1608, allocations: 165.4 kB / 498.7 MB, free: 2.531 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008064/0.1616, allocations: 0.7951 MB / 499.5 MB, free: 1.734 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1616, allocations: 0 / 499.5 MB, free: 1.734 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1616, allocations: 0 / 499.5 MB, free: 1.734 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.1616, allocations: 0 / 499.5 MB, free: 1.734 MB / 366.1 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.001597/0.1632, allocations: 0.9059 MB / 0.4886 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1633, allocations: 12.56 kB / 0.4886 GB, free: 0.7695 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.1634, allocations: 94.52 kB / 0.4887 GB, free: 0.668 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002951/0.1637, allocations: 99.05 kB / 0.4888 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006594/0.1643, allocations: 0.4927 MB / 0.4893 GB, free: 36 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.1645, allocations: 100.4 kB / 0.4894 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.227e-05/0.1645, allocations: 47.98 kB / 0.4894 GB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.1657, allocations: 0.8307 MB / 0.4903 GB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1657, allocations: 11.84 kB / 0.4903 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.168e-05/0.1658, allocations: 24 kB / 0.4903 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.141e-05/0.1658, allocations: 36.97 kB / 0.4903 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009673/0.1668, allocations: 0.6438 MB / 0.491 GB, free: 14.25 MB / 382.1 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.00424/0.1711, allocations: 4.336 MB / 0.4952 GB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005901/0.1717, allocations: 347.8 kB / 0.4955 GB, free: 9.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002987/0.172, allocations: 169.3 kB / 0.4957 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00198/0.174, allocations: 1.702 MB / 0.4973 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.174, allocations: 38.56 kB / 0.4974 GB, free: 7.094 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.924e-06/0.174, allocations: 0 / 0.4974 GB, free: 7.094 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.003426/0.1774, allocations: 1.398 MB / 0.4988 GB, free: 5.637 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.495e-05/0.1775, allocations: 132.5 kB / 0.4989 GB, free: 5.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008346/0.1784, allocations: 0.6211 MB / 0.4995 GB, free: 4.848 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.1784, allocations: 33.7 kB / 0.4995 GB, free: 4.809 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002823/0.1787, allocations: 410.2 kB / 0.4999 GB, free: 4.402 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.1788, allocations: 134.2 kB / 0.5 GB, free: 4.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.954e-05/0.1789, allocations: 15.94 kB / 0.5 GB, free: 4.254 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.179, allocations: 374.8 kB / 0.5004 GB, free: 3.879 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002996/0.1793, allocations: 185.9 kB / 0.5006 GB, free: 3.699 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005747/0.1799, allocations: 0.552 MB / 0.5011 GB, free: 2.969 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005138/0.1804, allocations: 297.4 kB / 0.5014 GB, free: 2.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.1805, allocations: 4 kB / 0.5014 GB, free: 2.676 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001371/0.1818, allocations: 0.833 MB / 0.5022 GB, free: 1.832 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.1819, allocations: 12 kB / 0.5022 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.1819, allocations: 12 kB / 0.5022 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004046/0.1823, allocations: 93.42 kB / 0.5023 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006049/0.1829, allocations: 191.7 kB / 0.5025 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005622/0.1835, allocations: 0.6694 MB / 0.5032 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004325/0.1839, allocations: 43.91 kB / 0.5032 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.779e-05/0.184, allocations: 47.92 kB / 0.5033 GB, free: 0.7422 MB / 382.1 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.0003089/0.1843, allocations: 258.5 kB / 0.5035 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.786e-05/0.1844, allocations: 67.25 kB / 0.5036 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3028/0.4872, allocations: 0.4987 MB / 0.5041 GB, free: 49.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.767e-05/0.4873, allocations: 7.203 kB / 0.5041 GB, free: 49.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.4873, allocations: 0.8438 kB / 0.5041 GB, free: 49.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.4873, allocations: 2 kB / 0.5041 GB, free: 49.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002319/0.4896, allocations: 1.207 MB / 0.5052 GB, free: 49.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.4897, allocations: 2.812 kB / 0.5052 GB, free: 49.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003209/0.49, allocations: 72.78 kB / 0.5053 GB, free: 49.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002319/0.4902, allocations: 44.62 kB / 0.5054 GB, free: 49.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.209e-05/0.4903, allocations: 16.88 kB / 0.5054 GB, free: 49.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002682/0.4906, allocations: 0.5582 MB / 0.5059 GB, free: 48.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.4906, allocations: 4.875 kB / 0.5059 GB, free: 48.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009825/0.4916, allocations: 0.7209 MB / 0.5066 GB, free: 48.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002812/0.4918, allocations: 186.2 kB / 0.5068 GB, free: 48.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.443e-05/0.492, allocations: 13.98 kB / 0.5068 GB, free: 48.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003991/0.4924, allocations: 29.44 kB / 0.5068 GB, free: 48.44 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.469e-05/0.4924, allocations: 33.77 kB / 0.5069 GB, free: 48.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.175e-05/0.4925, allocations: 21.59 kB / 0.5069 GB, free: 48.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006234/0.4931, allocations: 453 kB / 0.5073 GB, free: 48.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4931, allocations: 0 / 0.5073 GB, free: 48.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008679/0.494, allocations: 207 kB / 0.5075 GB, free: 48.34 MB / 382.1 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.001506/0.4955, allocations: 1.383 MB / 0.5089 GB, free: 47.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.4966, allocations: 0.4971 MB / 0.5094 GB, free: 47.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4966, allocations: 1.531 kB / 0.5094 GB, free: 47.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003322/0.4969, allocations: 181.7 kB / 0.5095 GB, free: 47.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/0.4984, allocations: 317.6 kB / 0.5098 GB, free: 47.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006091/0.5046, allocations: 4.14 MB / 0.5139 GB, free: 45.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.505, allocations: 0.9427 MB / 0.5148 GB, free: 44.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008765/0.5059, allocations: 205.4 kB / 0.515 GB, free: 44.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002992/0.5062, allocations: 228.8 kB / 0.5152 GB, free: 44.31 MB / 382.1 MB Notification: Performance of SimCode: time 6.32e-07/0.5062, allocations: 4 kB / 0.5152 GB, free: 44.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04052/0.5468, allocations: 18.51 MB / 0.5333 GB, free: 33.75 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/0.547, allocations: 311.9 kB / 0.5336 GB, free: 33.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.315/2.862, allocations: 0 / 0.5336 GB, free: 33.38 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat does not exist to compare? outputFormat=mat