Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion",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.0009643/0.0009643, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0009294/0.0009294, allocations: 193.4 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.235/1.235, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001955/0.001955, allocations: 283.1 kB / 290.2 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8738/0.8738, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 91.7 kB / 0.5946 GB, free: 28.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1371, allocations: 86.98 MB / 0.6795 GB, free: 1.094 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.3885/0.5257, allocations: 146 MB / 0.8221 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001037/0.5258, allocations: 48.86 kB / 0.8222 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.606e-05/0.5258, allocations: 0 / 0.8222 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.163e-05/0.5259, allocations: 4.594 kB / 0.8222 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.665e-05/0.526, allocations: 16.98 kB / 0.8222 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000538/0.5266, allocations: 200.8 kB / 0.8224 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.488e-05/0.5266, allocations: 58.38 kB / 0.8224 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.374e-05/0.5267, allocations: 11.61 kB / 0.8224 GB, free: 0.8789 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.779e-05/0.5267, allocations: 9.281 kB / 0.8225 GB, free: 0.8789 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.519e-05/0.5268, allocations: 16 kB / 0.8225 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.5268, allocations: 0.9062 kB / 0.8225 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003558/0.5271, allocations: 235 kB / 0.8227 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.828e-05/0.5272, allocations: 9.594 kB / 0.8227 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.787e-05/0.5272, allocations: 12.94 kB / 0.8227 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002122/0.5274, allocations: 121 kB / 0.8228 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.5275, allocations: 0 / 0.8228 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of FrontEnd: time 7.01e-07/0.5275, allocations: 0 / 0.8228 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.046e-06/0.5275, allocations: 1.438 kB / 0.8228 GB, free: 0.8359 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003398/0.5278, allocations: 344 kB / 0.8232 GB, free: 16.48 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.5279, allocations: 9.344 kB / 0.8232 GB, free: 16.48 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.974e-05/0.5279, allocations: 42.08 kB / 0.8232 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002646/0.5282, allocations: 24.02 kB / 0.8232 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.68e-05/0.5283, allocations: 166.9 kB / 0.8234 GB, free: 16.23 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.636e-05/0.5283, allocations: 32.52 kB / 0.8234 GB, free: 16.2 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.876e-06/0.5283, allocations: 0 / 0.8234 GB, free: 16.2 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/0.5284, allocations: 50.16 kB / 0.8235 GB, free: 16.16 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.31e-06/0.5285, allocations: 0 / 0.8235 GB, free: 16.16 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.5285, allocations: 9.156 kB / 0.8235 GB, free: 16.16 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.5285, allocations: 7.953 kB / 0.8235 GB, free: 16.16 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.662e-05/0.5285, allocations: 24.53 kB / 0.8235 GB, free: 16.15 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002743/0.5288, allocations: 255.2 kB / 0.8238 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 3.858e-05/0.5289, allocations: 22.11 kB / 0.8238 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.658e-05/0.5289, allocations: 7.578 kB / 0.8238 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001516/0.529, allocations: 102.7 kB / 0.8239 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.5291, allocations: 31.22 kB / 0.8239 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.5291, allocations: 0 / 0.8239 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0002107/0.5293, allocations: 49.94 kB / 0.824 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.5293, allocations: 54.3 kB / 0.824 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.888e-05/0.5294, allocations: 114 kB / 0.8241 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.5294, allocations: 26.33 kB / 0.8241 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.335e-05/0.5295, allocations: 85.14 kB / 0.8242 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.961e-06/0.5295, allocations: 7.094 kB / 0.8242 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.595e-05/0.5295, allocations: 19.02 kB / 0.8242 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.629e-05/0.5296, allocations: 315.7 kB / 0.8246 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.581e-05/0.5296, allocations: 5.453 kB / 0.8246 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.186e-05/0.5296, allocations: 25.2 kB / 0.8246 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.912e-05/0.5297, allocations: 36.19 kB / 0.8246 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.5297, allocations: 0.5 kB / 0.8246 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.02e-05/0.5298, allocations: 51.47 kB / 0.8247 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.5298, allocations: 5.312 kB / 0.8247 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.5298, allocations: 5.25 kB / 0.8247 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.5298, allocations: 1.031 kB / 0.8247 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.093e-05/0.5299, allocations: 8.172 kB / 0.8247 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.5299, allocations: 5.094 kB / 0.8247 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.577e-05/0.5299, allocations: 2.125 kB / 0.8247 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-06/0.5299, allocations: 1.438 kB / 0.8247 GB, free: 14.96 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.16e-05/0.53, allocations: 117 kB / 0.8248 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.53, allocations: 7.188 kB / 0.8248 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.585e-05/0.53, allocations: 4.25 kB / 0.8248 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.53, allocations: 4.531 kB / 0.8248 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.53, allocations: 8.469 kB / 0.8248 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.5301, allocations: 0.5938 kB / 0.8248 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002306/0.5303, allocations: 361.7 kB / 0.8252 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.5303, allocations: 4.469 kB / 0.8252 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.595e-05/0.5303, allocations: 2.719 kB / 0.8252 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.5303, allocations: 4.938 kB / 0.8252 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.5303, allocations: 1.125 kB / 0.8252 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.5304, allocations: 6.891 kB / 0.8252 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.5304, allocations: 0.5625 kB / 0.8252 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.597e-05/0.5304, allocations: 69.8 kB / 0.8253 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.842e-05/0.5305, allocations: 86.08 kB / 0.8253 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.5305, allocations: 1.906 kB / 0.8253 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.78e-05/0.5306, allocations: 8.891 kB / 0.8253 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.079e-05/0.5306, allocations: 5.156 kB / 0.8254 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.5306, allocations: 0.5625 kB / 0.8254 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.657e-05/0.5306, allocations: 86.34 kB / 0.8254 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5306, allocations: 0 / 0.8254 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001826/0.5308, allocations: 5.906 kB / 0.8254 GB, free: 14.18 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002798/0.5311, allocations: 0.6112 MB / 0.826 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 6.965e-05/0.5312, allocations: 19.95 kB / 0.8261 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.5312, allocations: 0.5312 kB / 0.8261 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.13e-05/0.5312, allocations: 3.844 kB / 0.8261 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002036/0.5314, allocations: 15.94 kB / 0.8261 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003077/0.5317, allocations: 155.8 kB / 0.8262 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001768/0.5319, allocations: 0.6759 MB / 0.8269 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 5.555e-05/0.532, allocations: 10.5 kB / 0.8269 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.124e-05/0.532, allocations: 8.969 kB / 0.8269 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of SimCode: time 2.2e-07/0.532, allocations: 0.5 kB / 0.8269 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.019/1.551, allocations: 1.317 MB / 0.8282 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001979/1.551, allocations: 219.7 kB / 0.8284 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.567/3.118, allocations: 0 / 0.8284 GB, free: 12.21 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)