Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.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) 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(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearColdWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearColdWater",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.002195/0.002195, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.418/2.418, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 80.92 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.34e-05/2.353e-05, allocations: 0 / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3583, allocations: 47.57 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.081/1.44, allocations: 366.4 MB / 0.7118 GB, free: 111.9 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003662/1.44, allocations: 95.33 kB / 0.7119 GB, free: 111.9 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2597/1.7, allocations: 79.67 MB / 0.7897 GB, free: 40.1 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.904e-06/1.7, allocations: 0 / 0.7897 GB, free: 40.1 MB / 427.1 MB Notification: Performance of Transformations before backend: time 6.647e-05/1.7, allocations: 4 kB / 0.7897 GB, free: 40.09 MB / 427.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001635/1.702, allocations: 0.6008 MB / 0.7903 GB, free: 39.45 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.166e-05/1.702, allocations: 8.031 kB / 0.7903 GB, free: 39.44 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006216/1.702, allocations: 39.7 kB / 0.7903 GB, free: 39.4 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006485/1.703, allocations: 274.5 kB / 0.7906 GB, free: 39.09 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/1.703, allocations: 11.95 kB / 0.7906 GB, free: 39.08 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.726e-05/1.703, allocations: 16 kB / 0.7906 GB, free: 39.07 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006621/1.704, allocations: 169.1 kB / 0.7908 GB, free: 38.9 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008009/1.705, allocations: 266.5 kB / 0.791 GB, free: 38.61 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.072e-05/1.705, allocations: 0 / 0.791 GB, free: 38.61 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.04e-05/1.705, allocations: 0 / 0.791 GB, free: 38.61 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/1.705, allocations: 12 kB / 0.791 GB, free: 38.6 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00301/1.708, allocations: 1.366 MB / 0.7924 GB, free: 37.13 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005579/1.709, allocations: 159.1 kB / 0.7925 GB, free: 36.96 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002474/1.709, allocations: 81.23 kB / 0.7926 GB, free: 36.88 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.324e-05/1.709, allocations: 4.172 kB / 0.7926 GB, free: 36.88 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/1.709, allocations: 38.7 kB / 0.7926 GB, free: 36.83 MB / 427.1 MB Notification: Performance of pre-optimization done (n=21): time 4.208e-06/1.709, allocations: 0 / 0.7926 GB, free: 36.83 MB / 427.1 MB Notification: Performance of matching and sorting (n=26): time 0.003655/1.713, allocations: 0.744 MB / 0.7934 GB, free: 36.03 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/1.713, allocations: 63.41 kB / 0.7934 GB, free: 35.95 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003918/1.713, allocations: 195.1 kB / 0.7936 GB, free: 35.75 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 6.622e-05/1.713, allocations: 25.7 kB / 0.7936 GB, free: 35.71 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/1.713, allocations: 238.3 kB / 0.7939 GB, free: 35.48 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/1.714, allocations: 90.66 kB / 0.794 GB, free: 35.39 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.99e-05/1.714, allocations: 0 / 0.794 GB, free: 35.39 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/1.714, allocations: 326.8 kB / 0.7943 GB, free: 35.06 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/1.714, allocations: 72 kB / 0.7943 GB, free: 34.99 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003585/1.714, allocations: 171 kB / 0.7945 GB, free: 34.79 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003684/1.715, allocations: 100.7 kB / 0.7946 GB, free: 34.69 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/1.715, allocations: 0 / 0.7946 GB, free: 34.69 MB / 427.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001396/1.716, allocations: 338.9 kB / 0.7949 GB, free: 34.34 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.957e-05/1.716, allocations: 6.656 kB / 0.7949 GB, free: 34.34 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/1.716, allocations: 7.938 kB / 0.7949 GB, free: 34.33 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005342/1.717, allocations: 61.67 kB / 0.795 GB, free: 34.27 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007224/1.718, allocations: 72.19 kB / 0.7951 GB, free: 34.2 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003347/1.721, allocations: 2.56 MB / 0.7976 GB, free: 31.41 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007163/1.722, allocations: 12.19 kB / 0.7976 GB, free: 31.4 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.18e-05/1.722, allocations: 16 kB / 0.7976 GB, free: 31.38 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.h:VARIABLE(flow=false min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific mixture enthalpy in the connection point" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002872/1.722, allocations: 113.7 kB / 0.7977 GB, free: 31.27 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001117/1.723, allocations: 264.4 kB / 0.7979 GB, free: 31 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/1.724, allocations: 23.72 kB / 0.798 GB, free: 30.97 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001459/1.724, allocations: 33.95 kB / 0.798 GB, free: 30.94 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/1.724, allocations: 0 / 0.798 GB, free: 30.94 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/1.724, allocations: 7.938 kB / 0.798 GB, free: 30.93 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001018/1.725, allocations: 0.54 MB / 0.7985 GB, free: 30.3 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001981/1.727, allocations: 0.6435 MB / 0.7992 GB, free: 29.61 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/1.727, allocations: 4 kB / 0.7992 GB, free: 29.61 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004696/1.727, allocations: 39.92 kB / 0.7992 GB, free: 29.57 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000445/1.728, allocations: 52.7 kB / 0.7993 GB, free: 29.52 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.109e-05/1.728, allocations: 19.95 kB / 0.7993 GB, free: 29.5 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001689/1.73, allocations: 1.323 MB / 0.8006 GB, free: 28.05 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/1.73, allocations: 0 / 0.8006 GB, free: 28.05 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/1.731, allocations: 446.9 kB / 0.801 GB, free: 27.59 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/1.731, allocations: 100.8 kB / 0.8011 GB, free: 27.47 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.188e-05/1.731, allocations: 8.125 kB / 0.8011 GB, free: 27.46 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005307/1.732, allocations: 12.09 kB / 0.8011 GB, free: 27.45 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.548e-05/1.732, allocations: 19.95 kB / 0.8011 GB, free: 27.43 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.289e-05/1.732, allocations: 8 kB / 0.8011 GB, free: 27.43 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002614/1.732, allocations: 157.6 kB / 0.8013 GB, free: 27.27 MB / 427.1 MB Notification: Performance of sort global known variables: time 5.82e-07/1.732, allocations: 0 / 0.8013 GB, free: 27.27 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001121/1.733, allocations: 95.98 kB / 0.8014 GB, free: 27.18 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001808/1.735, allocations: 1.108 MB / 0.8025 GB, free: 26.04 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001332/1.736, allocations: 443.8 kB / 0.8029 GB, free: 25.59 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 8.657e-06/1.737, allocations: 0 / 0.8029 GB, free: 25.59 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006768/1.737, allocations: 217.6 kB / 0.8031 GB, free: 25.36 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/1.739, allocations: 128.7 kB / 0.8032 GB, free: 25.24 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00252/1.742, allocations: 0.5632 MB / 0.8038 GB, free: 24.63 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/1.742, allocations: 0.7639 MB / 0.8045 GB, free: 23.84 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000306/1.742, allocations: 91.41 kB / 0.8046 GB, free: 23.75 MB / 427.1 MB Notification: Performance of SimCode: time 1.362e-06/1.742, allocations: 0 / 0.8046 GB, free: 23.75 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.957/4.699, allocations: 7.133 MB / 0.8116 GB, free: 16.61 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearColdWater_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearColdWater.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater_res.mat does not exist to compare? outputFormat=mat