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.8524/0.8524, allocations: 141.8 MB / 149.3 MB, free: 9.188 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.001189/0.001189, allocations: 180.8 kB / 182.2 MB, free: 9.434 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.599/1.599, allocations: 221.5 MB / 436.4 MB, free: 13.34 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.001037/0.001037, allocations: 92.02 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002095/0.002096, allocations: 276.4 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.909e-05/2.914e-05, allocations: 8 kB / 0.6766 GB, free: 12.74 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5279/0.528, allocations: 82.77 MB / 0.7575 GB, free: 31.92 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.979/1.507, allocations: 347.8 MB / 1.097 GB, free: 0.9492 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003493/1.507, allocations: 74.08 kB / 1.097 GB, free: 0.9102 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03268/1.54, allocations: 13.23 MB / 1.11 GB, free: 6.59 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.284e-06/1.54, allocations: 0 / 1.11 GB, free: 6.59 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 8.897e-06/1.54, allocations: 0 / 1.11 GB, free: 6.59 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.0004342/1.541, allocations: 333.9 kB / 1.11 GB, free: 6.223 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.102e-05/1.541, allocations: 8.031 kB / 1.11 GB, free: 6.215 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.758e-05/1.541, allocations: 0 / 1.11 GB, free: 6.215 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001828/1.541, allocations: 167 kB / 1.111 GB, free: 6.012 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.442e-05/1.541, allocations: 29.69 kB / 1.111 GB, free: 5.977 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/1.541, allocations: 0 / 1.111 GB, free: 5.977 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001067/1.541, allocations: 14.81 kB / 1.111 GB, free: 5.965 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.672e-05/1.541, allocations: 40.56 kB / 1.111 GB, free: 5.922 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/1.541, allocations: 0 / 1.111 GB, free: 5.922 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/1.541, allocations: 0 / 1.111 GB, free: 5.922 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.922e-05/1.541, allocations: 8 kB / 1.111 GB, free: 5.914 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005665/1.542, allocations: 320.4 kB / 1.111 GB, free: 5.551 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 4.455e-05/1.542, allocations: 14.64 kB / 1.111 GB, free: 5.527 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.293e-05/1.542, allocations: 15.86 kB / 1.111 GB, free: 5.512 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001064/1.542, allocations: 85.05 kB / 1.111 GB, free: 5.41 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/1.542, allocations: 38.55 kB / 1.111 GB, free: 5.363 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=1): time 1.573e-06/1.542, allocations: 0 / 1.111 GB, free: 5.363 MB / 0.6511 GB Notification: Performance of matching and sorting (n=1): time 0.0002278/1.543, allocations: 33.7 kB / 1.111 GB, free: 5.324 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/1.543, allocations: 51.41 kB / 1.111 GB, free: 5.262 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/1.543, allocations: 95.92 kB / 1.111 GB, free: 5.164 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/1.543, allocations: 25.7 kB / 1.111 GB, free: 5.133 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.089e-05/1.543, allocations: 95.34 kB / 1.111 GB, free: 5.039 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.142e-06/1.543, allocations: 0 / 1.111 GB, free: 5.039 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-06/1.543, allocations: 0 / 1.111 GB, free: 5.039 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001779/1.543, allocations: 318.8 kB / 1.112 GB, free: 4.719 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.601e-05/1.543, allocations: 4 kB / 1.112 GB, free: 4.715 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.243e-05/1.543, allocations: 17.41 kB / 1.112 GB, free: 4.695 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.023e-05/1.543, allocations: 11.92 kB / 1.112 GB, free: 4.684 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/1.543, allocations: 0 / 1.112 GB, free: 4.684 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001194/1.543, allocations: 41.69 kB / 1.112 GB, free: 4.637 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/1.543, allocations: 12.06 kB / 1.112 GB, free: 4.625 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/1.543, allocations: 3.938 kB / 1.112 GB, free: 4.621 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/1.543, allocations: 0 / 1.112 GB, free: 4.621 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.525e-05/1.543, allocations: 4 kB / 1.112 GB, free: 4.617 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/1.543, allocations: 4 kB / 1.112 GB, free: 4.613 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.132e-05/1.543, allocations: 3.906 kB / 1.112 GB, free: 4.609 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/1.544, allocations: 3.438 kB / 1.112 GB, free: 4.609 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 0.0001042/1.544, allocations: 116.9 kB / 1.112 GB, free: 4.488 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.318e-05/1.544, allocations: 29.7 kB / 1.112 GB, free: 4.453 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/1.544, allocations: 8.031 kB / 1.112 GB, free: 4.445 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000138/1.544, allocations: 117.6 kB / 1.112 GB, free: 4.32 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.815e-05/1.544, allocations: 180.2 kB / 1.112 GB, free: 4.137 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.075e-05/1.544, allocations: 179 kB / 1.112 GB, free: 3.957 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.392e-05/1.544, allocations: 176.3 kB / 1.113 GB, free: 3.777 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002855/1.544, allocations: 396.4 kB / 1.113 GB, free: 3.348 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.37e-05/1.545, allocations: 101 kB / 1.113 GB, free: 3.242 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.708e-05/1.545, allocations: 105 kB / 1.113 GB, free: 3.133 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001051/1.545, allocations: 188.1 kB / 1.113 GB, free: 2.941 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/1.545, allocations: 176.3 kB / 1.113 GB, free: 2.762 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001057/1.545, allocations: 176.3 kB / 1.114 GB, free: 2.582 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.998e-05/1.545, allocations: 184.2 kB / 1.114 GB, free: 2.395 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002089/1.545, allocations: 313.6 kB / 1.114 GB, free: 2.07 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/1.545, allocations: 189.9 kB / 1.114 GB, free: 1.859 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.819e-05/1.545, allocations: 176.3 kB / 1.114 GB, free: 1.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/1.546, allocations: 113 kB / 1.115 GB, free: 1.562 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/1.546, allocations: 180.2 kB / 1.115 GB, free: 1.379 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-05/1.546, allocations: 102.2 kB / 1.115 GB, free: 1.273 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.729e-05/1.546, allocations: 93.83 kB / 1.115 GB, free: 1.184 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.5e-07/1.546, allocations: 0 / 1.115 GB, free: 1.184 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002711/1.546, allocations: 19.94 kB / 1.115 GB, free: 1.164 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.0007027/1.547, allocations: 0.8458 MB / 1.116 GB, free: 304 kB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 6.728e-05/1.547, allocations: 4 kB / 1.116 GB, free: 300 kB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/1.547, allocations: 0 / 1.116 GB, free: 300 kB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.326e-06/1.547, allocations: 0 / 1.116 GB, free: 300 kB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004603/1.547, allocations: 0.5215 MB / 1.116 GB, free: 15.77 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004109/1.548, allocations: 165 kB / 1.116 GB, free: 15.57 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/1.548, allocations: 0.6806 MB / 1.117 GB, free: 14.86 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 4.976e-05/1.548, allocations: 4 kB / 1.117 GB, free: 14.86 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.698e-05/1.548, allocations: 14.81 kB / 1.117 GB, free: 14.85 MB / 0.6667 GB Notification: Performance of SimCode: time 3.91e-07/1.548, allocations: 3.938 kB / 1.117 GB, free: 14.84 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3029/1.851, allocations: 1.141 MB / 1.118 GB, free: 13.72 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003022/1.852, allocations: 162.1 kB / 1.118 GB, free: 13.53 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.564/3.416, allocations: 0 / 1.118 GB, free: 13.53 MB / 0.6667 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)