Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",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.0008693/0.0008695, allocations: 90.75 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.001081/0.001082, 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.458/1.458, allocations: 223.2 MB / 240 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.582/2.582, allocations: 409.4 MB / 0.684 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003806, allocations: 11.98 kB / 0.8378 GB, free: 6.539 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7689/0.7693, allocations: 146.8 MB / 0.9811 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004324/0.7737, allocations: 3.571 MB / 0.9846 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0001782/0.7739, allocations: 147.6 kB / 0.9847 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.31e-05/0.7739, allocations: 0 / 0.9847 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.413e-05/0.774, allocations: 0 / 0.9847 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.611e-05/0.7741, allocations: 15.91 kB / 0.9848 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002899/0.7744, allocations: 67.78 kB / 0.9848 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.94e-05/0.7745, allocations: 43.83 kB / 0.9849 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.459e-05/0.7746, allocations: 4 kB / 0.9849 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.78e-05/0.7746, allocations: 11.98 kB / 0.9849 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.807e-05/0.7747, allocations: 15.92 kB / 0.9849 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.7747, allocations: 0 / 0.9849 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.7749, allocations: 23.92 kB / 0.9849 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.989e-05/0.7749, allocations: 19.97 kB / 0.9849 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.26e-05/0.775, allocations: 29.7 kB / 0.985 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.707e-05/0.7751, allocations: 22.23 kB / 0.985 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.7751, allocations: 0 / 0.985 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7751, allocations: 0 / 0.985 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.7751, allocations: 0 / 0.985 GB, free: 2.305 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.0003815/0.7755, allocations: 335.3 kB / 0.9853 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.7755, allocations: 12.03 kB / 0.9853 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.321e-05/0.7756, allocations: 38.5 kB / 0.9854 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.613e-05/0.7756, allocations: 4 kB / 0.9854 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.7757, allocations: 167.1 kB / 0.9855 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.874e-05/0.7758, allocations: 29.66 kB / 0.9856 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.7758, allocations: 0 / 0.9856 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001547/0.776, allocations: 45.69 kB / 0.9856 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.776, allocations: 0 / 0.9856 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.776, allocations: 3.984 kB / 0.9856 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.776, allocations: 0 / 0.9856 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.396e-05/0.7761, allocations: 11.98 kB / 0.9856 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004607/0.7766, allocations: 346 kB / 0.9859 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 4.098e-05/0.7766, allocations: 26.52 kB / 0.986 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.544e-05/0.7766, allocations: 4.859 kB / 0.986 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 8.47e-05/0.7767, allocations: 85.16 kB / 0.9861 GB, free: 1.012 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.7768, allocations: 34.56 kB / 0.9861 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.7768, allocations: 4 kB / 0.9861 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0001483/0.7769, allocations: 37.55 kB / 0.9861 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.777, allocations: 51.41 kB / 0.9862 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.046e-05/0.7771, allocations: 105.8 kB / 0.9863 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.7771, allocations: 25.7 kB / 0.9863 GB, free: 0.7148 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.385e-05/0.7771, allocations: 88.05 kB / 0.9864 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.998e-06/0.7772, allocations: 0 / 0.9864 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-06/0.7772, allocations: 0 / 0.9864 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.7773, allocations: 322.9 kB / 0.9867 GB, free: 308 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.498e-05/0.7773, allocations: 3.984 kB / 0.9867 GB, free: 304 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.254e-05/0.7774, allocations: 17.72 kB / 0.9867 GB, free: 280 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.95e-05/0.7774, allocations: 4 kB / 0.9867 GB, free: 276 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.7774, allocations: 0 / 0.9867 GB, free: 276 kB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.615e-05/0.7775, allocations: 53.62 kB / 0.9868 GB, free: 216 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.7775, allocations: 4 kB / 0.9868 GB, free: 212 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.7775, allocations: 4.062 kB / 0.9868 GB, free: 208 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.7775, allocations: 0 / 0.9868 GB, free: 208 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.689e-05/0.7776, allocations: 4 kB / 0.9868 GB, free: 204 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.7776, allocations: 4 kB / 0.9868 GB, free: 200 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.976e-05/0.7776, allocations: 7.922 kB / 0.9868 GB, free: 192 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.7776, allocations: 0 / 0.9868 GB, free: 192 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.574e-05/0.7777, allocations: 113.8 kB / 0.9869 GB, free: 68 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.701e-05/0.7777, allocations: 3.906 kB / 0.9869 GB, free: 64 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001324/0.7779, allocations: 124.9 kB / 0.987 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.515e-05/0.778, allocations: 180.2 kB / 0.9872 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.71e-05/0.778, allocations: 188.1 kB / 0.9874 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.355e-05/0.7781, allocations: 176.3 kB / 0.9875 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002378/0.7784, allocations: 413.1 kB / 0.9879 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.983e-05/0.7784, allocations: 105 kB / 0.988 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.387e-05/0.7785, allocations: 101 kB / 0.9881 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.149e-05/0.7785, allocations: 184.2 kB / 0.9883 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.341e-05/0.7786, allocations: 188.3 kB / 0.9885 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.038e-05/0.7787, allocations: 184.1 kB / 0.9887 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.217e-05/0.7788, allocations: 176.3 kB / 0.9888 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001491/0.7789, allocations: 311.8 kB / 0.9891 GB, free: 13.62 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 8.789e-05/0.779, allocations: 186 kB / 0.9893 GB, free: 13.42 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.612e-05/0.7791, allocations: 180.2 kB / 0.9895 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.7793, allocations: 113 kB / 0.9896 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-05/0.7794, allocations: 184.2 kB / 0.9898 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-05/0.7794, allocations: 105 kB / 0.9899 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 5.751e-05/0.7795, allocations: 87.27 kB / 0.9899 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7795, allocations: 0 / 0.9899 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002453/0.7797, allocations: 12 kB / 0.99 GB, free: 12.72 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.0004758/0.7802, allocations: 0.8243 MB / 0.9908 GB, free: 11.87 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 7.663e-05/0.7803, allocations: 11.98 kB / 0.9908 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.7803, allocations: 0 / 0.9908 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 1.252e-06/0.7803, allocations: 4 kB / 0.9908 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004594/0.7808, allocations: 0.5186 MB / 0.9913 GB, free: 11.33 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004178/0.7812, allocations: 229.3 kB / 0.9915 GB, free: 11.07 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002692/0.7815, allocations: 0.677 MB / 0.9922 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.202e-05/0.7815, allocations: 7.938 kB / 0.9922 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.846e-05/0.7816, allocations: 11.44 kB / 0.9922 GB, free: 10.34 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.7816, allocations: 3.938 kB / 0.9922 GB, free: 10.34 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01256/0.7941, allocations: 1.228 MB / 0.9934 GB, free: 9.262 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.7944, allocations: 202.4 kB / 0.9936 GB, free: 9.02 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/2.63, allocations: 1.547 kB / 0.9936 GB, free: 9.02 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat does not exist to compare? outputFormat=mat