Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",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.001033/0.001033, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.00129/0.00129, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 223.3 MB / 240 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.551/2.551, allocations: 409.4 MB / 0.684 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003496/0.0003497, allocations: 12 kB / 0.8378 GB, free: 6.504 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7881/0.7885, allocations: 146.8 MB / 0.9811 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.003718/0.7923, allocations: 2.881 MB / 0.9839 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0001023/0.7924, allocations: 51.89 kB / 0.984 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.334e-05/0.7925, allocations: 0 / 0.984 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.7926, allocations: 0 / 0.984 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.925e-05/0.7927, allocations: 15.91 kB / 0.984 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005228/0.7932, allocations: 149.7 kB / 0.9842 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.976e-05/0.7933, allocations: 47.83 kB / 0.9842 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.799e-05/0.7934, allocations: 0 / 0.9842 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.35e-05/0.7934, allocations: 19.97 kB / 0.9842 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.154e-05/0.7935, allocations: 7.938 kB / 0.9842 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.595e-05/0.7935, allocations: 4 kB / 0.9842 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002888/0.7938, allocations: 91.72 kB / 0.9843 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/0.7939, allocations: 8 kB / 0.9843 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.042e-05/0.7939, allocations: 25.7 kB / 0.9843 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001662/0.7941, allocations: 62.19 kB / 0.9844 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.7941, allocations: 0 / 0.9844 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.777e-06/0.7941, allocations: 0 / 0.9844 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.7941, allocations: 3.938 kB / 0.9844 GB, free: 2.859 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000401/0.7945, allocations: 343.3 kB / 0.9847 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.7946, allocations: 11.97 kB / 0.9848 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.7946, allocations: 34.56 kB / 0.9848 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.48e-05/0.7947, allocations: 4 kB / 0.9848 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.7948, allocations: 167 kB / 0.9849 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.824e-05/0.7949, allocations: 33.66 kB / 0.985 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-06/0.7949, allocations: 4 kB / 0.985 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.795, allocations: 41.67 kB / 0.985 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.795, allocations: 0 / 0.985 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.7951, allocations: 0 / 0.985 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.468e-05/0.7951, allocations: 4 kB / 0.985 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.913e-05/0.7951, allocations: 15.98 kB / 0.985 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008548/0.796, allocations: 0.5833 MB / 0.9856 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 5.925e-05/0.7961, allocations: 22.56 kB / 0.9856 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.194e-05/0.7961, allocations: 8.859 kB / 0.9856 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003008/0.7964, allocations: 340.5 kB / 0.986 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.7965, allocations: 30.56 kB / 0.986 GB, free: 0.9102 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.7965, allocations: 4 kB / 0.986 GB, free: 0.9062 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0002448/0.7967, allocations: 45.53 kB / 0.986 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.7968, allocations: 51.41 kB / 0.9861 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/0.7969, allocations: 105.8 kB / 0.9862 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.7969, allocations: 29.7 kB / 0.9862 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.364e-05/0.797, allocations: 84.05 kB / 0.9863 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.046e-05/0.797, allocations: 7.938 kB / 0.9863 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-06/0.797, allocations: 0 / 0.9863 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001524/0.7972, allocations: 318.9 kB / 0.9866 GB, free: 236 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.847e-05/0.7972, allocations: 8 kB / 0.9866 GB, free: 228 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.956e-05/0.7973, allocations: 17.7 kB / 0.9866 GB, free: 204 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.179e-05/0.7973, allocations: 0 / 0.9866 GB, free: 204 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.7973, allocations: 4 kB / 0.9866 GB, free: 200 kB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001005/0.7974, allocations: 49.62 kB / 0.9867 GB, free: 144 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.7974, allocations: 4 kB / 0.9867 GB, free: 140 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.7975, allocations: 4.062 kB / 0.9867 GB, free: 136 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.7975, allocations: 0 / 0.9867 GB, free: 136 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.606e-05/0.7975, allocations: 8 kB / 0.9867 GB, free: 128 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.7976, allocations: 0 / 0.9867 GB, free: 128 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.142e-05/0.7976, allocations: 0 / 0.9867 GB, free: 128 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.7976, allocations: 4 kB / 0.9867 GB, free: 124 kB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.725e-05/0.7977, allocations: 114.4 kB / 0.9868 GB, free: 0 / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.344e-05/0.7978, allocations: 8.047 kB / 0.9868 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001527/0.7979, allocations: 120.9 kB / 0.9869 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.548e-05/0.798, allocations: 180.3 kB / 0.9871 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.021e-05/0.7981, allocations: 188.2 kB / 0.9873 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.56e-05/0.7982, allocations: 180.2 kB / 0.9875 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003013/0.7985, allocations: 405.2 kB / 0.9878 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.332e-05/0.7986, allocations: 105 kB / 0.9879 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.145e-05/0.7986, allocations: 108.9 kB / 0.9881 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.612e-05/0.7987, allocations: 184.2 kB / 0.9882 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.579e-05/0.7988, allocations: 180.3 kB / 0.9884 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.746e-05/0.7989, allocations: 188.2 kB / 0.9886 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.404e-05/0.7989, allocations: 176.3 kB / 0.9887 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001531/0.7991, allocations: 307.8 kB / 0.989 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.704e-05/0.7992, allocations: 186.1 kB / 0.9892 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.597e-05/0.7993, allocations: 184.2 kB / 0.9894 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000164/0.7995, allocations: 113 kB / 0.9895 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.444e-05/0.7996, allocations: 180.3 kB / 0.9897 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.022e-05/0.7996, allocations: 108.9 kB / 0.9898 GB, free: 12.76 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 4.413e-05/0.7997, allocations: 83.28 kB / 0.9899 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.906e-06/0.7997, allocations: 0 / 0.9899 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003282/0.8, allocations: 35.86 kB / 0.9899 GB, free: 12.64 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (0): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000511/0.8005, allocations: 0.852 MB / 0.9907 GB, free: 11.76 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000105/0.8006, allocations: 23.92 kB / 0.9907 GB, free: 11.74 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.8006, allocations: 0 / 0.9907 GB, free: 11.74 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 1.884e-06/0.8007, allocations: 0 / 0.9907 GB, free: 11.74 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004444/0.8011, allocations: 0.5311 MB / 0.9913 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004092/0.8015, allocations: 233.5 kB / 0.9915 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/0.8018, allocations: 0.677 MB / 0.9921 GB, free: 10.23 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.801e-05/0.8018, allocations: 5.406 kB / 0.9922 GB, free: 10.23 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.691e-05/0.8018, allocations: 7.438 kB / 0.9922 GB, free: 10.22 MB / 0.7481 GB Notification: Performance of SimCode: time 2.31e-07/0.8018, allocations: 0 / 0.9922 GB, free: 10.22 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01231/0.8142, allocations: 1.907 MB / 0.994 GB, free: 8.551 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002203/0.8144, allocations: 247.1 kB / 0.9943 GB, free: 8.242 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/2.665, allocations: 0 / 0.9943 GB, free: 8.242 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat does not exist to compare? outputFormat=mat