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.0007273/0.0007273, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004239/0.004239, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.247/1.247, allocations: 223.2 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001938/0.001938, allocations: 270.4 kB / 291.7 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8957/0.8957, allocations: 169.5 MB / 0.5004 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000446/0.0004458, allocations: 9.688 kB / 0.5987 GB, free: 28.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1459, allocations: 88.55 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.4231/0.569, allocations: 144.1 MB / 0.826 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 9.685e-05/0.5691, allocations: 51.33 kB / 0.826 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.6e-05/0.5691, allocations: 4 kB / 0.826 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.828e-05/0.5692, allocations: 1.031 kB / 0.826 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.476e-05/0.5693, allocations: 11.08 kB / 0.826 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005939/0.5699, allocations: 199.8 kB / 0.8262 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.435e-05/0.57, allocations: 63.25 kB / 0.8263 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 2.945e-05/0.57, allocations: 5.188 kB / 0.8263 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.93e-05/0.5701, allocations: 13.06 kB / 0.8263 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.794e-05/0.5701, allocations: 16.77 kB / 0.8263 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.708e-06/0.5702, allocations: 1.25 kB / 0.8263 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003732/0.5705, allocations: 227.9 kB / 0.8265 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.546e-05/0.5706, allocations: 10.19 kB / 0.8266 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.545e-05/0.5706, allocations: 38.11 kB / 0.8266 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002063/0.5708, allocations: 133.7 kB / 0.8267 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.5708, allocations: 0 / 0.8267 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.242e-06/0.5709, allocations: 0 / 0.8267 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.336e-06/0.5709, allocations: 4 kB / 0.8267 GB, free: 15.65 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.0003032/0.5712, allocations: 330.7 kB / 0.827 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.5712, allocations: 9.156 kB / 0.8271 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.72e-05/0.5713, allocations: 40.28 kB / 0.8271 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002737/0.5715, allocations: 23.5 kB / 0.8271 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.552e-05/0.5716, allocations: 162.5 kB / 0.8273 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.863e-05/0.5717, allocations: 31.08 kB / 0.8273 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.035e-06/0.5717, allocations: 5.094 kB / 0.8273 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/0.5718, allocations: 53.42 kB / 0.8274 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.5718, allocations: 2 kB / 0.8274 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.5719, allocations: 1.031 kB / 0.8274 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.5719, allocations: 2.062 kB / 0.8274 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.207e-05/0.5719, allocations: 24.45 kB / 0.8274 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002967/0.5722, allocations: 269.9 kB / 0.8276 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.057e-05/0.5723, allocations: 24.02 kB / 0.8277 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.876e-05/0.5723, allocations: 11.58 kB / 0.8277 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000137/0.5725, allocations: 90.56 kB / 0.8278 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.5725, allocations: 31.53 kB / 0.8278 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.5725, allocations: 1.25 kB / 0.8278 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.000208/0.5727, allocations: 54.69 kB / 0.8278 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/0.5728, allocations: 52.28 kB / 0.8279 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.997e-05/0.5728, allocations: 112.1 kB / 0.828 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.5728, allocations: 29.64 kB / 0.828 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.695e-05/0.5729, allocations: 88.52 kB / 0.8281 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.475e-06/0.5729, allocations: 6 kB / 0.8281 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.228e-05/0.5729, allocations: 14.98 kB / 0.8281 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.504e-05/0.573, allocations: 315 kB / 0.8284 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.396e-05/0.573, allocations: 7.156 kB / 0.8284 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.718e-05/0.5731, allocations: 23.69 kB / 0.8285 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.95e-05/0.5731, allocations: 30.8 kB / 0.8285 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.5731, allocations: 0 / 0.8285 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.926e-05/0.5732, allocations: 61.94 kB / 0.8285 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.5732, allocations: 4.094 kB / 0.8286 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.5732, allocations: 1.406 kB / 0.8286 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.699e-06/0.5733, allocations: 0.9062 kB / 0.8286 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.934e-05/0.5733, allocations: 6.406 kB / 0.8286 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.5733, allocations: 5.219 kB / 0.8286 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.567e-05/0.5733, allocations: 1.188 kB / 0.8286 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-06/0.5734, allocations: 1.094 kB / 0.8286 GB, free: 13.73 MB / 0.5606 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 7.031e-05/0.5734, allocations: 122.3 kB / 0.8287 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.886e-05/0.5735, allocations: 9.359 kB / 0.8287 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.996e-05/0.5735, allocations: 6.75 kB / 0.8287 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.5735, allocations: 1.188 kB / 0.8287 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.5735, allocations: 3.938 kB / 0.8287 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.5735, allocations: 1.406 kB / 0.8287 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/0.5738, allocations: 361.6 kB / 0.8291 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.5738, allocations: 4.062 kB / 0.8291 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.327e-05/0.5738, allocations: 3.281 kB / 0.8291 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.5738, allocations: 4.812 kB / 0.8291 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.25e-06/0.5738, allocations: 1.031 kB / 0.8291 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.5738, allocations: 1.25 kB / 0.8291 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.5738, allocations: 0 / 0.8291 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.644e-05/0.5739, allocations: 72.2 kB / 0.8291 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.05e-05/0.574, allocations: 86.23 kB / 0.8292 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.574, allocations: 1.281 kB / 0.8292 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.049e-05/0.5741, allocations: 3.781 kB / 0.8292 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.246e-05/0.5741, allocations: 3.938 kB / 0.8292 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.5741, allocations: 7.641 kB / 0.8292 GB, free: 13 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.081e-05/0.5741, allocations: 82.88 kB / 0.8293 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5741, allocations: 0 / 0.8293 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001863/0.5743, allocations: 10.84 kB / 0.8293 GB, free: 12.92 MB / 0.5606 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.000296/0.5746, allocations: 0.6138 MB / 0.8299 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 6.24e-05/0.5747, allocations: 21.75 kB / 0.8299 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.5747, allocations: 0 / 0.8299 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.274e-05/0.5747, allocations: 8.047 kB / 0.8299 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001877/0.5749, allocations: 6.688 kB / 0.83 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003168/0.5752, allocations: 156 kB / 0.8301 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000184/0.5754, allocations: 0.6817 MB / 0.8308 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.316e-05/0.5755, allocations: 7.703 kB / 0.8308 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.613e-05/0.5755, allocations: 12.86 kB / 0.8308 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of SimCode: time 3.01e-07/0.5755, allocations: 0 / 0.8308 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009482/0.585, allocations: 1.255 MB / 0.832 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/0.5852, allocations: 214.5 kB / 0.8322 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.505/2.09, allocations: 9.125 kB / 0.8322 GB, free: 10.59 MB / 0.5606 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)