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.0009834/0.000983, allocations: 93.3 kB / 16.98 MB, free: 5.938 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.0008921/0.0008921, allocations: 186.3 kB / 17.88 MB, free: 5.594 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.436/1.436, allocations: 223.2 MB / 241.8 MB, free: 380 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.2378/0.2378, allocations: 44.23 MB / 337.1 MB, free: 2.891 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003223, allocations: 8 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1379, allocations: 61.91 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater): time 0.01551/0.1535, allocations: 14.13 MB / 485.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007361/0.1609, allocations: 4.753 MB / 490.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000911/0.1618, allocations: 23.81 kB / 490.5 MB, free: 10.67 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008461/0.1627, allocations: 270.7 kB / 490.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001996/0.1647, allocations: 0.6815 MB / 491.4 MB, free: 9.723 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002309/0.167, allocations: 0.7846 MB / 492.2 MB, free: 8.949 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00159/0.1686, allocations: 1.028 MB / 493.2 MB, free: 7.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000604/0.1692, allocations: 381.3 kB / 493.6 MB, free: 7.543 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.1703, allocations: 0.5608 MB / 494.1 MB, free: 6.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005676/0.1708, allocations: 398.6 kB / 494.5 MB, free: 6.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.943e-05/0.1709, allocations: 32 kB / 494.6 MB, free: 6.559 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007725/0.1717, allocations: 239.8 kB / 494.8 MB, free: 6.324 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000235/0.172, allocations: 215.4 kB / 495 MB, free: 6.113 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001717/0.1721, allocations: 165.3 kB / 495.2 MB, free: 5.945 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009053/0.173, allocations: 0.7834 MB / 496 MB, free: 5.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1731, allocations: 0 / 496 MB, free: 5.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1731, allocations: 3.938 kB / 496 MB, free: 5.156 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.1731, allocations: 4 kB / 496 MB, free: 5.152 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.001859/0.175, allocations: 0.9076 MB / 496.9 MB, free: 4.195 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.175, allocations: 8.562 kB / 496.9 MB, free: 4.188 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001346/0.1751, allocations: 102.5 kB / 497 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003218/0.1755, allocations: 91.06 kB / 497.1 MB, free: 3.988 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008362/0.1763, allocations: 0.4889 MB / 497.6 MB, free: 3.457 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001134/0.1764, allocations: 100.4 kB / 497.7 MB, free: 3.348 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-05/0.1765, allocations: 51.98 kB / 497.7 MB, free: 3.297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.1778, allocations: 0.823 MB / 498.5 MB, free: 2.395 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.1778, allocations: 11.83 kB / 498.5 MB, free: 2.383 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.582e-05/0.1779, allocations: 27.98 kB / 498.6 MB, free: 2.355 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.059e-05/0.178, allocations: 40.98 kB / 498.6 MB, free: 2.312 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.179, allocations: 0.6399 MB / 499.2 MB, free: 1.676 MB / 366.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.004837/0.1838, allocations: 4.367 MB / 0.4918 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006066/0.1845, allocations: 339.9 kB / 0.4921 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001938/0.1864, allocations: 1.721 MB / 0.4938 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/0.1865, allocations: 38.56 kB / 0.4939 GB, free: 10.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.814e-06/0.1865, allocations: 4 kB / 0.4939 GB, free: 10.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.003503/0.19, allocations: 1.398 MB / 0.4952 GB, free: 9.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.507e-05/0.1901, allocations: 132.5 kB / 0.4953 GB, free: 9.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007466/0.1908, allocations: 0.6211 MB / 0.496 GB, free: 8.391 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.313e-05/0.1909, allocations: 41.64 kB / 0.496 GB, free: 8.344 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002874/0.1912, allocations: 402.2 kB / 0.4964 GB, free: 7.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.1913, allocations: 134.2 kB / 0.4965 GB, free: 7.812 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.723e-05/0.1914, allocations: 15.94 kB / 0.4965 GB, free: 7.797 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.1916, allocations: 378.8 kB / 0.4969 GB, free: 7.418 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002947/0.1919, allocations: 181.9 kB / 0.4971 GB, free: 7.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005767/0.1924, allocations: 0.5442 MB / 0.4976 GB, free: 6.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000432/0.1929, allocations: 301.1 kB / 0.4979 GB, free: 6.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.1929, allocations: 4 kB / 0.4979 GB, free: 6.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00138/0.1943, allocations: 0.8298 MB / 0.4987 GB, free: 5.383 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.1943, allocations: 8 kB / 0.4987 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.1943, allocations: 12 kB / 0.4987 GB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004276/0.1948, allocations: 105.5 kB / 0.4988 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006483/0.1954, allocations: 179.7 kB / 0.499 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005878/0.196, allocations: 0.6694 MB / 0.4996 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005047/0.1966, allocations: 39.97 kB / 0.4997 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-05/0.1966, allocations: 43.98 kB / 0.4997 GB, free: 4.305 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.0003579/0.197, allocations: 257.4 kB / 0.5 GB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.1971, allocations: 67.23 kB / 0.5 GB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008492/0.198, allocations: 0.5069 MB / 0.5005 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.198, allocations: 7.953 kB / 0.5005 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.198, allocations: 0 / 0.5005 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.198, allocations: 0 / 0.5005 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001849/0.1998, allocations: 1.22 MB / 0.5017 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.1999, allocations: 8.172 kB / 0.5017 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002903/0.2002, allocations: 67.91 kB / 0.5018 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001845/0.2004, allocations: 48.81 kB / 0.5018 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/0.2004, allocations: 8 kB / 0.5018 GB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003833/0.2008, allocations: 0.5717 MB / 0.5024 GB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.2008, allocations: 4 kB / 0.5024 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.2019, allocations: 0.8506 MB / 0.5032 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003255/0.2022, allocations: 192.2 kB / 0.5034 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.2023, allocations: 19.98 kB / 0.5034 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003997/0.2028, allocations: 36.06 kB / 0.5035 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.231e-05/0.2028, allocations: 27.91 kB / 0.5035 GB, free: 136 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.445e-05/0.2029, allocations: 23.98 kB / 0.5035 GB, free: 112 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2833/0.4862, allocations: 447 kB / 0.5039 GB, free: 49.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4862, allocations: 0 / 0.5039 GB, free: 49.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001431/0.4877, allocations: 207.1 kB / 0.5041 GB, free: 49.29 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.001914/0.4896, allocations: 2.35 MB / 0.5064 GB, free: 47.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001237/0.4908, allocations: 0.4933 MB / 0.5069 GB, free: 47.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.4909, allocations: 5.594 kB / 0.5069 GB, free: 47.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000348/0.4912, allocations: 176 kB / 0.5071 GB, free: 47.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.4929, allocations: 298.9 kB / 0.5074 GB, free: 47.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008981/0.5019, allocations: 12.11 MB / 0.5192 GB, free: 37.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006229/0.5025, allocations: 0.9524 MB / 0.5201 GB, free: 36.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001079/0.5036, allocations: 207.2 kB / 0.5203 GB, free: 36.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000377/0.504, allocations: 228.6 kB / 0.5206 GB, free: 36.79 MB / 382.1 MB Notification: Performance of SimCode: time 1.714e-06/0.504, allocations: 1.469 kB / 0.5206 GB, free: 36.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04138/0.5454, allocations: 18.46 MB / 0.5386 GB, free: 27.71 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.5456, allocations: 290.9 kB / 0.5389 GB, free: 27.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.176/2.722, allocations: 4 kB / 0.5389 GB, free: 27.35 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