Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.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: translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008359/0.0008359, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008305/0.0008305, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.175/1.175, allocations: 223.2 MB / 239.9 MB, free: 5.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001587/0.001587, allocations: 266.6 kB / 291.2 MB, free: 2.035 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7393/0.7393, allocations: 144.6 MB / 487 MB, free: 7.207 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003664/0.0003665, allocations: 18.94 kB / 0.5683 GB, free: 38.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1244, allocations: 83.08 MB / 0.6494 GB, free: 3.684 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.1219/0.2463, allocations: 124.9 MB / 0.7714 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002004/0.2466, allocations: 135.7 kB / 0.7715 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.733e-05/0.2466, allocations: 4 kB / 0.7715 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.82e-05/0.2467, allocations: 0 / 0.7715 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.624e-05/0.2467, allocations: 7.984 kB / 0.7715 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.2471, allocations: 83.67 kB / 0.7716 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.644e-05/0.2472, allocations: 27.95 kB / 0.7716 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.468e-05/0.2472, allocations: 0 / 0.7716 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.28e-05/0.2472, allocations: 11.94 kB / 0.7716 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.862e-05/0.2473, allocations: 11.97 kB / 0.7717 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.019e-05/0.2473, allocations: 0 / 0.7717 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.2475, allocations: 55.83 kB / 0.7717 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.96e-05/0.2476, allocations: 8 kB / 0.7717 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.411e-05/0.2476, allocations: 29.7 kB / 0.7717 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 8.539e-05/0.2477, allocations: 31.78 kB / 0.7718 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.2477, allocations: 0 / 0.7718 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2477, allocations: 4 kB / 0.7718 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.547e-06/0.2477, allocations: 0 / 0.7718 GB, free: 6.09 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.0003154/0.248, allocations: 335.5 kB / 0.7721 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.903e-05/0.248, allocations: 8.031 kB / 0.7721 GB, free: 5.707 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/0.2483, allocations: 15.98 kB / 0.7721 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.2484, allocations: 167 kB / 0.7723 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.979e-05/0.2485, allocations: 37.67 kB / 0.7723 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.194e-06/0.2485, allocations: 0 / 0.7723 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001262/0.2486, allocations: 49.67 kB / 0.7724 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.2486, allocations: 0 / 0.7724 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.2486, allocations: 3.984 kB / 0.7724 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.2487, allocations: 4 kB / 0.7724 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.789e-05/0.2487, allocations: 19.92 kB / 0.7724 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003418/0.2491, allocations: 256.9 kB / 0.7726 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.63e-05/0.2491, allocations: 22.61 kB / 0.7727 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-06/0.2491, allocations: 0 / 0.7727 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.2491, allocations: 34.56 kB / 0.7727 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 7.51e-07/0.2491, allocations: 0 / 0.7727 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001096/0.2493, allocations: 41.7 kB / 0.7727 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.2493, allocations: 55.53 kB / 0.7728 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.655e-05/0.2494, allocations: 113.7 kB / 0.7729 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.2494, allocations: 25.7 kB / 0.7729 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.889e-05/0.2495, allocations: 87.98 kB / 0.773 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.37e-06/0.2495, allocations: 4 kB / 0.773 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/0.2495, allocations: 4 kB / 0.773 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.251e-05/0.2496, allocations: 318.8 kB / 0.7733 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.474e-05/0.2496, allocations: 4 kB / 0.7733 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.478e-05/0.2496, allocations: 26.58 kB / 0.7733 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.018e-05/0.2497, allocations: 7.984 kB / 0.7734 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2497, allocations: 0 / 0.7734 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.342e-05/0.2497, allocations: 53.55 kB / 0.7734 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.2498, allocations: 9.656 kB / 0.7734 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.2498, allocations: 7.938 kB / 0.7734 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.2498, allocations: 4.078 kB / 0.7734 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.111e-05/0.2498, allocations: 8 kB / 0.7734 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.2499, allocations: 4 kB / 0.7734 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.83e-05/0.2499, allocations: 3.953 kB / 0.7734 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-06/0.2499, allocations: 8 kB / 0.7734 GB, free: 4.156 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.167e-05/0.25, allocations: 105.8 kB / 0.7735 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.25, allocations: 4 kB / 0.7735 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.232e-05/0.25, allocations: 3.125 kB / 0.7736 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.25, allocations: 0 / 0.7736 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.25, allocations: 3.984 kB / 0.7736 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.2501, allocations: 4 kB / 0.7736 GB, free: 4.031 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002291/0.2503, allocations: 346.7 kB / 0.7739 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2503, allocations: 0 / 0.7739 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.496e-05/0.2503, allocations: 4 kB / 0.7739 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.2503, allocations: 0 / 0.7739 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.468e-06/0.2503, allocations: 0 / 0.7739 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2503, allocations: 0 / 0.7739 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.2503, allocations: 3.953 kB / 0.7739 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.776e-05/0.2504, allocations: 69.06 kB / 0.774 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.905e-05/0.2504, allocations: 77.11 kB / 0.774 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.2505, allocations: 0 / 0.774 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.086e-05/0.2505, allocations: 7.984 kB / 0.774 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.772e-05/0.2506, allocations: 0 / 0.774 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.2506, allocations: 7.891 kB / 0.7741 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.04e-05/0.2506, allocations: 95.56 kB / 0.7741 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.81e-07/0.2506, allocations: 0 / 0.7741 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001782/0.2508, allocations: 4 kB / 0.7741 GB, free: 3.332 MB / 0.5606 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 (1): * Single equations (assignments): 1 * 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 8.348e-05/0.2509, allocations: 99.25 kB / 0.7742 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 6.489e-05/0.251, allocations: 19.92 kB / 0.7743 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.251, allocations: 0 / 0.7743 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.001e-06/0.251, allocations: 3.938 kB / 0.7743 GB, free: 3.203 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001491/0.2511, allocations: 11.7 kB / 0.7743 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000208/0.2514, allocations: 120.6 kB / 0.7744 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.2516, allocations: 0.677 MB / 0.7751 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.548e-05/0.2516, allocations: 12.06 kB / 0.7751 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.669e-05/0.2517, allocations: 15.44 kB / 0.7751 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of SimCode: time 3.91e-07/0.2517, allocations: 0 / 0.7751 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of Templates: time 0.002098/0.2538, allocations: 469.9 kB / 0.7755 GB, free: 1.891 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1) Environment - environmentSimulation: