Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9868/0.9868, allocations: 143.3 MB / 158.3 MB, free: 5.742 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 185 kB / 191.5 MB, free: 5.738 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.2 MB / 447.7 MB, free: 4.812 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 76.41 kB / 0.5187 GB, free: 1.184 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001701/0.001702, allocations: 266 kB / 0.6005 GB, free: 48.73 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004245/0.0004246, allocations: 10.03 kB / 0.6929 GB, free: 59.61 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1762, allocations: 82.8 MB / 0.7738 GB, free: 13.72 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7795/0.9558, allocations: 313.7 MB / 1.08 GB, free: 7.426 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004068/0.9563, allocations: 85.77 kB / 1.08 GB, free: 7.379 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.02322/0.9795, allocations: 9.196 MB / 1.089 GB, free: 15.96 MB / 0.6667 GB Notification: Performance of FrontEnd: time 3.557e-06/0.9796, allocations: 4 kB / 1.089 GB, free: 15.96 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 6.913e-06/0.9796, allocations: 0 / 1.089 GB, free: 15.96 MB / 0.6667 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.0003717/0.98, allocations: 355.2 kB / 1.09 GB, free: 15.57 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.98, allocations: 8.031 kB / 1.09 GB, free: 15.56 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.864e-05/0.9801, allocations: 38.5 kB / 1.09 GB, free: 15.51 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.089e-05/0.9801, allocations: 4 kB / 1.09 GB, free: 15.51 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.9803, allocations: 167.8 kB / 1.09 GB, free: 15.3 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.225e-05/0.9803, allocations: 25.7 kB / 1.09 GB, free: 15.27 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.347e-06/0.9803, allocations: 0 / 1.09 GB, free: 15.27 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/0.9805, allocations: 53.28 kB / 1.09 GB, free: 15.22 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.9805, allocations: 0 / 1.09 GB, free: 15.22 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.9805, allocations: 3.938 kB / 1.09 GB, free: 15.21 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.9805, allocations: 0 / 1.09 GB, free: 15.21 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.491e-05/0.9806, allocations: 19.55 kB / 1.09 GB, free: 15.2 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006342/0.9812, allocations: 0.5853 MB / 1.09 GB, free: 14.5 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 3.798e-05/0.9813, allocations: 18.58 kB / 1.09 GB, free: 14.48 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002445/0.9815, allocations: 343.3 kB / 1.091 GB, free: 14.07 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.9816, allocations: 30.56 kB / 1.091 GB, free: 14.04 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.9816, allocations: 4 kB / 1.091 GB, free: 14.03 MB / 0.6667 GB Notification: Performance of matching and sorting (n=1): time 0.0001337/0.9817, allocations: 40.89 kB / 1.091 GB, free: 13.99 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.9818, allocations: 51.41 kB / 1.091 GB, free: 13.93 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.726e-05/0.9819, allocations: 100.5 kB / 1.091 GB, free: 13.82 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.9819, allocations: 29.7 kB / 1.091 GB, free: 13.79 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 4.175e-05/0.9819, allocations: 84.05 kB / 1.091 GB, free: 13.7 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 5.42e-06/0.9819, allocations: 0 / 1.091 GB, free: 13.7 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.9819, allocations: 3.938 kB / 1.091 GB, free: 13.7 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.9821, allocations: 322.4 kB / 1.091 GB, free: 13.38 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.165e-05/0.9821, allocations: 8 kB / 1.091 GB, free: 13.37 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.36e-05/0.9821, allocations: 13.72 kB / 1.091 GB, free: 13.35 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.053e-05/0.9821, allocations: 7.812 kB / 1.091 GB, free: 13.35 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.9821, allocations: 0 / 1.091 GB, free: 13.35 MB / 0.6667 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.91e-05/0.9822, allocations: 48.88 kB / 1.091 GB, free: 13.3 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.9822, allocations: 8 kB / 1.091 GB, free: 13.29 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.9823, allocations: 64 / 1.091 GB, free: 13.29 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.9823, allocations: 4 kB / 1.091 GB, free: 13.29 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.906e-05/0.9823, allocations: 7.984 kB / 1.091 GB, free: 13.28 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.9823, allocations: 0 / 1.091 GB, free: 13.28 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.085e-05/0.9824, allocations: 7.906 kB / 1.091 GB, free: 13.27 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.9824, allocations: 0 / 1.091 GB, free: 13.27 MB / 0.6667 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.234e-05/0.9825, allocations: 114.3 kB / 1.092 GB, free: 13.15 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.527e-05/0.9825, allocations: 0 / 1.092 GB, free: 13.15 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001254/0.9826, allocations: 138.1 kB / 1.092 GB, free: 13.02 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.268e-05/0.9827, allocations: 176.3 kB / 1.092 GB, free: 12.84 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.391e-05/0.9828, allocations: 180.2 kB / 1.092 GB, free: 12.65 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.946e-05/0.9828, allocations: 180.3 kB / 1.092 GB, free: 12.47 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002235/0.983, allocations: 408.9 kB / 1.093 GB, free: 12.02 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.532e-05/0.9831, allocations: 105 kB / 1.093 GB, free: 11.91 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.549e-05/0.9831, allocations: 109 kB / 1.093 GB, free: 11.79 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-05/0.9832, allocations: 183.5 kB / 1.093 GB, free: 11.61 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.079e-05/0.9833, allocations: 176.3 kB / 1.093 GB, free: 11.43 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.813e-05/0.9833, allocations: 188.2 kB / 1.093 GB, free: 11.24 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.882e-05/0.9834, allocations: 176.3 kB / 1.094 GB, free: 11.06 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001348/0.9835, allocations: 315.4 kB / 1.094 GB, free: 10.73 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 6.892e-05/0.9836, allocations: 178.1 kB / 1.094 GB, free: 10.53 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.423e-05/0.9837, allocations: 187.8 kB / 1.094 GB, free: 10.34 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.9839, allocations: 113.2 kB / 1.094 GB, free: 10.23 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.023e-05/0.9839, allocations: 180.3 kB / 1.094 GB, free: 10.04 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.69e-05/0.984, allocations: 104.9 kB / 1.095 GB, free: 9.934 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 4.777e-05/0.984, allocations: 87.2 kB / 1.095 GB, free: 9.852 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.4e-07/0.984, allocations: 0 / 1.095 GB, free: 9.852 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0003015/0.9843, allocations: 35.94 kB / 1.095 GB, free: 9.816 MB / 0.6667 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.000591/0.9849, allocations: 0.8666 MB / 1.096 GB, free: 8.926 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 7.485e-05/0.985, allocations: 19.38 kB / 1.096 GB, free: 8.91 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.985, allocations: 0 / 1.096 GB, free: 8.91 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 1.232e-06/0.985, allocations: 0 / 1.096 GB, free: 8.91 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.9854, allocations: 0.5195 MB / 1.096 GB, free: 8.387 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004327/0.9858, allocations: 249.2 kB / 1.096 GB, free: 8.102 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.9861, allocations: 0.677 MB / 1.097 GB, free: 7.398 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 4.436e-05/0.9862, allocations: 5.562 kB / 1.097 GB, free: 7.395 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.844e-05/0.9862, allocations: 11.44 kB / 1.097 GB, free: 7.383 MB / 0.6667 GB Notification: Performance of SimCode: time 2.5e-07/0.9862, allocations: 0 / 1.097 GB, free: 7.383 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01332/0.9995, allocations: 1.88 MB / 1.099 GB, free: 5.734 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002181/0.9998, allocations: 248.2 kB / 1.099 GB, free: 5.492 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/2.623, allocations: 6.516 kB / 1.099 GB, free: 5.488 MB / 0.6667 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1)