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.8354/0.8354, allocations: 143.4 MB / 158.3 MB, free: 5.762 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.001056/0.001056, allocations: 177.1 kB / 191.5 MB, free: 5.742 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.441/1.441, allocations: 223.1 MB / 447.7 MB, free: 4.727 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.0008945/0.0008944, allocations: 84.33 kB / 0.5187 GB, free: 1.082 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001947/0.001947, allocations: 275.6 kB / 0.6005 GB, free: 48.7 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004292/0.0004291, allocations: 17.66 kB / 0.6929 GB, free: 59.64 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1546, allocations: 82.8 MB / 0.7738 GB, free: 13.72 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6377/0.7923, allocations: 348.5 MB / 1.114 GB, free: 5.621 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.7926, allocations: 68.03 kB / 1.114 GB, free: 5.586 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02744/0.82, allocations: 13.33 MB / 1.127 GB, free: 11.1 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8201, allocations: 0 / 1.127 GB, free: 11.1 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.535e-06/0.8201, allocations: 0 / 1.127 GB, free: 11.1 MB / 0.698 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.0003606/0.8205, allocations: 338.9 kB / 1.128 GB, free: 10.73 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.8205, allocations: 12.03 kB / 1.128 GB, free: 10.71 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.022e-05/0.8206, allocations: 34.56 kB / 1.128 GB, free: 10.67 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.561e-05/0.8206, allocations: 0 / 1.128 GB, free: 10.67 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.8208, allocations: 167.8 kB / 1.128 GB, free: 10.47 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.386e-05/0.8208, allocations: 33.69 kB / 1.128 GB, free: 10.43 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.909e-06/0.8208, allocations: 0 / 1.128 GB, free: 10.43 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001399/0.821, allocations: 41.38 kB / 1.128 GB, free: 10.39 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.821, allocations: 0 / 1.128 GB, free: 10.39 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.821, allocations: 0 / 1.128 GB, free: 10.39 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/0.8211, allocations: 8 kB / 1.128 GB, free: 10.38 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.4e-05/0.8211, allocations: 11.61 kB / 1.128 GB, free: 10.37 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004243/0.8215, allocations: 345 kB / 1.128 GB, free: 9.973 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.173e-05/0.8216, allocations: 14.58 kB / 1.128 GB, free: 9.949 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.197e-05/0.8217, allocations: 85.17 kB / 1.128 GB, free: 9.848 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.8217, allocations: 34.56 kB / 1.128 GB, free: 9.805 MB / 0.698 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.8217, allocations: 0 / 1.128 GB, free: 9.805 MB / 0.698 GB Notification: Performance of matching and sorting (n=1): time 0.0001397/0.8218, allocations: 45.06 kB / 1.128 GB, free: 9.758 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.8219, allocations: 51.41 kB / 1.128 GB, free: 9.695 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.643e-05/0.822, allocations: 96.56 kB / 1.128 GB, free: 9.598 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.822, allocations: 29.69 kB / 1.129 GB, free: 9.562 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.534e-05/0.822, allocations: 88.03 kB / 1.129 GB, free: 9.473 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.17e-06/0.8221, allocations: 4 kB / 1.129 GB, free: 9.469 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.8221, allocations: 128 / 1.129 GB, free: 9.469 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.8222, allocations: 322.2 kB / 1.129 GB, free: 9.148 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.338e-05/0.8222, allocations: 4 kB / 1.129 GB, free: 9.145 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.112e-05/0.8222, allocations: 17.7 kB / 1.129 GB, free: 9.121 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.906e-05/0.8223, allocations: 7.875 kB / 1.129 GB, free: 9.117 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.8223, allocations: 0 / 1.129 GB, free: 9.117 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.919e-05/0.8223, allocations: 45.62 kB / 1.129 GB, free: 9.066 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.8224, allocations: 8.062 kB / 1.129 GB, free: 9.059 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.8224, allocations: 0 / 1.129 GB, free: 9.059 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.8224, allocations: 4 kB / 1.129 GB, free: 9.055 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.547e-05/0.8224, allocations: 7.375 kB / 1.129 GB, free: 9.051 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.8224, allocations: 0 / 1.129 GB, free: 9.051 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.094e-05/0.8225, allocations: 7.844 kB / 1.129 GB, free: 9.043 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.8225, allocations: 4 kB / 1.129 GB, free: 9.039 MB / 0.698 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 7.223e-05/0.8226, allocations: 116.9 kB / 1.129 GB, free: 8.918 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.331e-05/0.8226, allocations: 0 / 1.129 GB, free: 8.918 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.8227, allocations: 132.1 kB / 1.129 GB, free: 8.785 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.058e-05/0.8228, allocations: 180.3 kB / 1.129 GB, free: 8.602 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-05/0.8228, allocations: 184.2 kB / 1.13 GB, free: 8.414 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.013e-05/0.8229, allocations: 180.2 kB / 1.13 GB, free: 8.23 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.8231, allocations: 412.7 kB / 1.13 GB, free: 7.773 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.292e-05/0.8232, allocations: 109 kB / 1.13 GB, free: 7.66 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.153e-05/0.8232, allocations: 101 kB / 1.13 GB, free: 7.555 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-05/0.8233, allocations: 187.8 kB / 1.131 GB, free: 7.367 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.224e-05/0.8234, allocations: 176.3 kB / 1.131 GB, free: 7.188 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-05/0.8234, allocations: 184.2 kB / 1.131 GB, free: 7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.411e-05/0.8235, allocations: 180.3 kB / 1.131 GB, free: 6.816 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.8237, allocations: 311.3 kB / 1.131 GB, free: 6.492 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.152e-05/0.8237, allocations: 186.1 kB / 1.132 GB, free: 6.285 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.675e-05/0.8238, allocations: 180.2 kB / 1.132 GB, free: 6.102 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001425/0.824, allocations: 112.7 kB / 1.132 GB, free: 5.988 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.011e-05/0.824, allocations: 180.2 kB / 1.132 GB, free: 5.805 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.701e-05/0.8241, allocations: 108.9 kB / 1.132 GB, free: 5.691 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.128e-05/0.8241, allocations: 79.28 kB / 1.132 GB, free: 5.613 MB / 0.698 GB Notification: Performance of sort global known variables: time 9e-08/0.8241, allocations: 0 / 1.132 GB, free: 5.613 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002606/0.8244, allocations: 23.44 kB / 1.132 GB, free: 5.594 MB / 0.698 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.0004476/0.8249, allocations: 0.8394 MB / 1.133 GB, free: 4.73 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 6.037e-05/0.8249, allocations: 15.92 kB / 1.133 GB, free: 4.715 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.8249, allocations: 0 / 1.133 GB, free: 4.715 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.163e-06/0.8249, allocations: 0 / 1.133 GB, free: 4.715 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.8253, allocations: 0.5221 MB / 1.134 GB, free: 4.191 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003813/0.8256, allocations: 237.7 kB / 1.134 GB, free: 3.918 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.8259, allocations: 0.677 MB / 1.134 GB, free: 3.215 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.208e-05/0.8259, allocations: 4 kB / 1.134 GB, free: 3.211 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.734e-05/0.826, allocations: 11.42 kB / 1.134 GB, free: 3.199 MB / 0.698 GB Notification: Performance of SimCode: time 2.11e-07/0.826, allocations: 0 / 1.134 GB, free: 3.199 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01154/0.8375, allocations: 1.61 MB / 1.136 GB, free: 1.766 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.8377, allocations: 201.1 kB / 1.136 GB, free: 1.523 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.498/2.336, allocations: 0 / 1.136 GB, free: 1.523 MB / 0.698 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)