Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion") translateModel(Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007839/0.007839, allocations: 104.6 kB / 15.74 MB, free: 6.488 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.001399/0.001399, allocations: 193 kB / 16.67 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.605/1.605, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6511/0.6511, allocations: 95.49 MB / 365.4 MB, free: 9.781 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 80.09 kB / 0.5036 GB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1558, allocations: 69.09 MB / 0.5711 GB, free: 8.336 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion): time 0.5549/0.7108, allocations: 155.8 MB / 0.7232 GB, free: 2.711 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 6.517e-05/0.7109, allocations: 39.02 kB / 0.7233 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.646e-05/0.7109, allocations: 0 / 0.7233 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.7111, allocations: 3.984 kB / 0.7233 GB, free: 2.672 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 7.665e-05/0.7112, allocations: 7.938 kB / 0.7233 GB, free: 2.664 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.7127, allocations: 0.5186 MB / 0.7238 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.534e-05/0.7127, allocations: 35.84 kB / 0.7238 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.545e-05/0.7128, allocations: 3.984 kB / 0.7238 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.219e-05/0.7128, allocations: 11.94 kB / 0.7238 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.852e-05/0.7129, allocations: 15.97 kB / 0.7238 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.044e-05/0.7129, allocations: 0 / 0.7238 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009608/0.7139, allocations: 0.573 MB / 0.7244 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.566e-05/0.714, allocations: 8 kB / 0.7244 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.767e-05/0.714, allocations: 15.92 kB / 0.7244 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000574/0.7146, allocations: 355.2 kB / 0.7248 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.7146, allocations: 0 / 0.7248 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7146, allocations: 4 kB / 0.7248 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.169e-06/0.7146, allocations: 0 / 0.7248 GB, free: 1.152 MB / 0.5294 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.0005201/0.7151, allocations: 395.4 kB / 0.7251 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.7152, allocations: 11.98 kB / 0.7252 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.987e-05/0.7152, allocations: 4.5 kB / 0.7252 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.7154, allocations: 163.1 kB / 0.7253 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.271e-05/0.7154, allocations: 29.7 kB / 0.7253 GB, free: 480 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.538e-06/0.7155, allocations: 0 / 0.7253 GB, free: 480 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001522/0.7156, allocations: 57.42 kB / 0.7254 GB, free: 420 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.7156, allocations: 0 / 0.7254 GB, free: 420 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.7157, allocations: 0 / 0.7254 GB, free: 420 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.7157, allocations: 7.875 kB / 0.7254 GB, free: 412 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.569e-05/0.7157, allocations: 23.98 kB / 0.7254 GB, free: 388 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003763/0.7161, allocations: 264.9 kB / 0.7257 GB, free: 72 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 3.8e-05/0.7162, allocations: 22.58 kB / 0.7257 GB, free: 40 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.782e-05/0.7162, allocations: 8.797 kB / 0.7257 GB, free: 28 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.622e-05/0.7162, allocations: 4.062 kB / 0.7257 GB, free: 24 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.231e-05/0.7163, allocations: 34.5 kB / 0.7257 GB, free: 15.98 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.7163, allocations: 0 / 0.7257 GB, free: 15.98 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001497/0.7165, allocations: 37.69 kB / 0.7258 GB, free: 15.94 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.7165, allocations: 55.53 kB / 0.7258 GB, free: 15.87 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.336e-05/0.7166, allocations: 105.8 kB / 0.7259 GB, free: 15.76 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.7166, allocations: 29.69 kB / 0.726 GB, free: 15.72 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.224e-05/0.7167, allocations: 88.05 kB / 0.7261 GB, free: 15.63 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.313e-06/0.7167, allocations: 3.906 kB / 0.7261 GB, free: 15.63 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.047e-05/0.7167, allocations: 13.72 kB / 0.7261 GB, free: 15.61 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.7169, allocations: 318.8 kB / 0.7264 GB, free: 15.29 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.863e-05/0.7169, allocations: 7.984 kB / 0.7264 GB, free: 15.28 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.855e-05/0.7169, allocations: 26.52 kB / 0.7264 GB, free: 15.25 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.776e-05/0.717, allocations: 30.56 kB / 0.7264 GB, free: 15.21 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.717, allocations: 0 / 0.7264 GB, free: 15.21 MB / 0.545 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.247e-05/0.7171, allocations: 57.56 kB / 0.7265 GB, free: 15.14 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.7171, allocations: 12.09 kB / 0.7265 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.7171, allocations: 0 / 0.7265 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.7171, allocations: 0 / 0.7265 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.736e-05/0.7172, allocations: 8 kB / 0.7265 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.7172, allocations: 3.938 kB / 0.7265 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.779e-05/0.7172, allocations: 15.78 kB / 0.7265 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.7173, allocations: 4 kB / 0.7265 GB, free: 15.11 MB / 0.545 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 8.592e-05/0.7173, allocations: 113.8 kB / 0.7266 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.684e-05/0.7174, allocations: 3.938 kB / 0.7266 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.7175, allocations: 128.9 kB / 0.7268 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.898e-05/0.7176, allocations: 184.2 kB / 0.7269 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.28e-05/0.7177, allocations: 176.3 kB / 0.7271 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.129e-05/0.7177, allocations: 184.2 kB / 0.7273 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/0.718, allocations: 409.2 kB / 0.7277 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.39e-05/0.718, allocations: 105 kB / 0.7278 GB, free: 13.73 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.568e-05/0.7181, allocations: 105.2 kB / 0.7279 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.518e-05/0.7181, allocations: 180.2 kB / 0.728 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.858e-05/0.7182, allocations: 180.2 kB / 0.7282 GB, free: 13.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.312e-05/0.7183, allocations: 184.2 kB / 0.7284 GB, free: 13.06 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.702e-05/0.7184, allocations: 184.3 kB / 0.7286 GB, free: 12.88 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001415/0.7185, allocations: 307.7 kB / 0.7289 GB, free: 12.55 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.759e-05/0.7186, allocations: 186 kB / 0.729 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.719e-05/0.7187, allocations: 184.3 kB / 0.7292 GB, free: 12.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.7189, allocations: 105 kB / 0.7293 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.609e-05/0.7189, allocations: 188.2 kB / 0.7295 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.425e-05/0.719, allocations: 108.9 kB / 0.7296 GB, free: 11.74 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.856e-05/0.719, allocations: 83.28 kB / 0.7297 GB, free: 11.66 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.719, allocations: 0 / 0.7297 GB, free: 11.66 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003704/0.7194, allocations: 95.92 kB / 0.7298 GB, free: 11.57 MB / 0.545 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 (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.0006404/0.7201, allocations: 331.1 kB / 0.7301 GB, free: 11.24 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 7.596e-05/0.7202, allocations: 11.94 kB / 0.7301 GB, free: 11.23 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.7202, allocations: 4 kB / 0.7301 GB, free: 11.23 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.292e-06/0.7202, allocations: 0 / 0.7301 GB, free: 11.23 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.7205, allocations: 471.8 kB / 0.7306 GB, free: 10.76 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002372/0.7208, allocations: 179.1 kB / 0.7307 GB, free: 10.56 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.721, allocations: 0.6729 MB / 0.7314 GB, free: 9.863 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.168e-05/0.7211, allocations: 12.25 kB / 0.7314 GB, free: 9.852 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.637e-05/0.7211, allocations: 11.42 kB / 0.7314 GB, free: 9.84 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.7211, allocations: 0 / 0.7314 GB, free: 9.84 MB / 0.545 GB Notification: Performance of Templates: time 0.004717/0.7258, allocations: 2.217 MB / 0.7336 GB, free: 7.648 MB / 0.545 GB make -j1 -f Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.makefile (rm -f Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.sim & ./Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.pipe 2>&1)