Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.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.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",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.761/0.761, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 182.5 kB / 187.3 MB, free: 11.89 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.546/1.546, allocations: 221.3 MB / 441.4 MB, free: 4.602 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.0009626/0.0009626, allocations: 97.62 kB / 0.5124 GB, free: 24.2 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002141/0.002141, allocations: 282.7 kB / 0.594 GB, free: 7.949 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.555e-05/5.586e-05, allocations: 4 kB / 0.6835 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5682/0.5683, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.847/1.415, allocations: 348.5 MB / 1.105 GB, free: 9.398 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/1.416, allocations: 64.03 kB / 1.105 GB, free: 9.367 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02866/1.444, allocations: 13.28 MB / 1.118 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.532e-06/1.444, allocations: 0 / 1.118 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 6.642e-06/1.444, allocations: 0 / 1.118 GB, free: 14.9 MB / 0.6511 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.0003441/1.445, allocations: 326.5 kB / 1.118 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/1.445, allocations: 8.031 kB / 1.118 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.852e-05/1.445, allocations: 38.19 kB / 1.118 GB, free: 14.49 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.084e-05/1.445, allocations: 4 kB / 1.118 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/1.445, allocations: 167 kB / 1.118 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.027e-05/1.445, allocations: 33.7 kB / 1.118 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/1.445, allocations: 0 / 1.118 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/1.445, allocations: 45.25 kB / 1.118 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/1.445, allocations: 0 / 1.118 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/1.445, allocations: 0 / 1.118 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/1.445, allocations: 0 / 1.118 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.739e-05/1.445, allocations: 11.98 kB / 1.118 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004657/1.446, allocations: 341.6 kB / 1.119 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 3.619e-05/1.446, allocations: 21.95 kB / 1.119 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.806e-05/1.446, allocations: 12.91 kB / 1.119 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 8.17e-05/1.446, allocations: 81.11 kB / 1.119 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/1.446, allocations: 30.56 kB / 1.119 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/1.446, allocations: 0 / 1.119 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of matching and sorting (n=1): time 0.0001343/1.446, allocations: 41.55 kB / 1.119 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/1.446, allocations: 51.41 kB / 1.119 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.995e-05/1.446, allocations: 100.6 kB / 1.119 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/1.446, allocations: 25.7 kB / 1.119 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.405e-05/1.446, allocations: 95.92 kB / 1.119 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.3e-06/1.446, allocations: 0 / 1.119 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-06/1.446, allocations: 0 / 1.119 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001228/1.447, allocations: 318.8 kB / 1.119 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.422e-05/1.447, allocations: 4 kB / 1.119 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.028e-05/1.447, allocations: 21.16 kB / 1.119 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.091e-05/1.447, allocations: 4 kB / 1.119 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/1.447, allocations: 0 / 1.119 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.28e-05/1.447, allocations: 49.5 kB / 1.119 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/1.447, allocations: 8 kB / 1.119 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/1.447, allocations: 0 / 1.119 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/1.447, allocations: 0 / 1.119 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.748e-05/1.447, allocations: 4 kB / 1.119 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/1.447, allocations: 64 / 1.119 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.367e-05/1.447, allocations: 11.98 kB / 1.119 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/1.447, allocations: 0 / 1.119 GB, free: 12.85 MB / 0.6511 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 () * 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 7.376e-05/1.447, allocations: 104.9 kB / 1.12 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/1.447, allocations: 8.188 kB / 1.12 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/1.447, allocations: 120.2 kB / 1.12 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.217e-05/1.447, allocations: 184.2 kB / 1.12 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.814e-05/1.447, allocations: 184.2 kB / 1.12 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-05/1.447, allocations: 180.2 kB / 1.12 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002428/1.448, allocations: 412.8 kB / 1.121 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.284e-05/1.448, allocations: 101 kB / 1.121 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.907e-05/1.448, allocations: 105 kB / 1.121 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.843e-05/1.448, allocations: 188 kB / 1.121 GB, free: 11.19 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.215e-05/1.448, allocations: 180.2 kB / 1.121 GB, free: 11 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.92e-05/1.448, allocations: 184.3 kB / 1.121 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.607e-05/1.448, allocations: 180.3 kB / 1.121 GB, free: 10.63 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001502/1.448, allocations: 311.5 kB / 1.122 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.032e-05/1.448, allocations: 182.1 kB / 1.122 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.091e-05/1.448, allocations: 180.2 kB / 1.122 GB, free: 9.922 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/1.449, allocations: 109 kB / 1.122 GB, free: 9.809 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.093e-05/1.449, allocations: 183.8 kB / 1.122 GB, free: 9.625 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.269e-05/1.449, allocations: 106.1 kB / 1.123 GB, free: 9.516 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.559e-05/1.449, allocations: 87.28 kB / 1.123 GB, free: 9.43 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.2e-07/1.449, allocations: 0 / 1.123 GB, free: 9.43 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002188/1.449, allocations: 27.62 kB / 1.123 GB, free: 9.406 MB / 0.6511 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 () * 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.0005372/1.449, allocations: 0.8348 MB / 1.123 GB, free: 8.551 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 6.678e-05/1.45, allocations: 11.94 kB / 1.123 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/1.45, allocations: 0 / 1.123 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.885e-06/1.45, allocations: 7.922 kB / 1.123 GB, free: 8.531 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000355/1.45, allocations: 0.5221 MB / 1.124 GB, free: 8.008 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003197/1.45, allocations: 177.4 kB / 1.124 GB, free: 7.801 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002826/1.451, allocations: 0.677 MB / 1.125 GB, free: 7.098 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.483e-05/1.451, allocations: 15.88 kB / 1.125 GB, free: 7.082 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.701e-05/1.451, allocations: 11.44 kB / 1.125 GB, free: 7.07 MB / 0.6511 GB Notification: Performance of SimCode: time 3.91e-07/1.451, allocations: 0 / 1.125 GB, free: 7.07 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01321/1.464, allocations: 1.653 MB / 1.126 GB, free: 5.598 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001787/1.464, allocations: 173.5 kB / 1.127 GB, free: 5.371 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.546/3.01, allocations: 0 / 1.127 GB, free: 5.371 MB / 0.6511 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)