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: translateModel(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008005/0.0008006, allocations: 98.92 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.0008232/0.0008232, allocations: 177.3 kB / 15.95 MB, free: 216 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.134/1.134, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001615/0.001615, allocations: 266.9 kB / 291.2 MB, free: 2.004 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.7188/0.7188, allocations: 144.6 MB / 487 MB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003635/0.0003635, allocations: 12.3 kB / 0.5683 GB, free: 38.39 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1297, allocations: 83.08 MB / 0.6494 GB, free: 3.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.117/0.2467, allocations: 125.2 MB / 0.7717 GB, free: 6.062 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001923/0.247, allocations: 135.7 kB / 0.7718 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.679e-05/0.247, allocations: 4 kB / 0.7719 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.435e-05/0.2471, allocations: 0 / 0.7719 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.159e-05/0.2471, allocations: 7.984 kB / 0.7719 GB, free: 5.918 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004838/0.2476, allocations: 155.3 kB / 0.772 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.117e-05/0.2477, allocations: 23.89 kB / 0.772 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.966e-05/0.2477, allocations: 8 kB / 0.772 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.68e-05/0.2478, allocations: 8 kB / 0.772 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.688e-05/0.2478, allocations: 7.984 kB / 0.7721 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.2478, allocations: 4 kB / 0.7721 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002686/0.2481, allocations: 107.7 kB / 0.7722 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.784e-05/0.2481, allocations: 7.984 kB / 0.7722 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.162e-05/0.2482, allocations: 25.7 kB / 0.7722 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001189/0.2483, allocations: 51.94 kB / 0.7722 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.2483, allocations: 0 / 0.7722 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.313e-06/0.2483, allocations: 0 / 0.7722 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.216e-06/0.2483, allocations: 11.94 kB / 0.7723 GB, free: 5.512 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.0002973/0.2486, allocations: 335.5 kB / 0.7726 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.955e-05/0.2487, allocations: 12.03 kB / 0.7726 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002814/0.2489, allocations: 23.95 kB / 0.7726 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.094e-05/0.249, allocations: 171 kB / 0.7728 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.587e-05/0.2491, allocations: 25.7 kB / 0.7728 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.2491, allocations: 0 / 0.7728 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001187/0.2493, allocations: 61.67 kB / 0.7729 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.901e-06/0.2493, allocations: 0 / 0.7729 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.2493, allocations: 0 / 0.7729 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.2493, allocations: 0 / 0.7729 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.578e-05/0.2493, allocations: 23.98 kB / 0.7729 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002899/0.2496, allocations: 260.8 kB / 0.7731 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.58e-05/0.2497, allocations: 34.52 kB / 0.7732 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.2497, allocations: 4.062 kB / 0.7732 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.2498, allocations: 30.56 kB / 0.7732 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.2498, allocations: 0 / 0.7732 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0002117/0.25, allocations: 53.67 kB / 0.7732 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.762e-05/0.25, allocations: 59.34 kB / 0.7733 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.438e-05/0.2501, allocations: 105.9 kB / 0.7734 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.2501, allocations: 25.7 kB / 0.7734 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.784e-05/0.2501, allocations: 92.03 kB / 0.7735 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.704e-06/0.2502, allocations: 7.906 kB / 0.7735 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.495e-06/0.2502, allocations: 0 / 0.7735 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.311e-05/0.2503, allocations: 310.8 kB / 0.7738 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.519e-05/0.2503, allocations: 4 kB / 0.7738 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.299e-05/0.2503, allocations: 25.7 kB / 0.7738 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.238e-05/0.2503, allocations: 12 kB / 0.7739 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.2503, allocations: 0 / 0.7739 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.987e-05/0.2504, allocations: 53.95 kB / 0.7739 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.2504, allocations: 4 kB / 0.7739 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2504, allocations: 7.984 kB / 0.7739 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.796e-06/0.2505, allocations: 0 / 0.7739 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.239e-05/0.2505, allocations: 7.984 kB / 0.7739 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.2505, allocations: 0 / 0.7739 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.809e-05/0.2506, allocations: 7.906 kB / 0.7739 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-06/0.2506, allocations: 7.984 kB / 0.7739 GB, free: 3.555 MB / 0.5606 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 (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 6.245e-05/0.2506, allocations: 113.8 kB / 0.7741 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.151e-05/0.2507, allocations: 0 / 0.7741 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.769e-05/0.2507, allocations: 3.125 kB / 0.7741 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.2507, allocations: 0 / 0.7741 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2507, allocations: 0 / 0.7741 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2507, allocations: 11.92 kB / 0.7741 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.251, allocations: 371.5 kB / 0.7744 GB, free: 2.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.251, allocations: 0 / 0.7744 GB, free: 2.996 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.693e-05/0.251, allocations: 4 kB / 0.7744 GB, free: 2.992 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.251, allocations: 0 / 0.7744 GB, free: 2.992 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.251, allocations: 0 / 0.7744 GB, free: 2.992 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.251, allocations: 7.875 kB / 0.7744 GB, free: 2.984 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.251, allocations: 7.953 kB / 0.7744 GB, free: 2.977 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.26e-05/0.2511, allocations: 91.67 kB / 0.7745 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.531e-05/0.2511, allocations: 77.11 kB / 0.7746 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/0.2512, allocations: 0 / 0.7746 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.676e-05/0.2513, allocations: 11.94 kB / 0.7746 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.234e-05/0.2513, allocations: 0 / 0.7746 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.2513, allocations: 4 kB / 0.7746 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.904e-05/0.2513, allocations: 79.28 kB / 0.7747 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2513, allocations: 4.031 kB / 0.7747 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000176/0.2515, allocations: 8 kB / 0.7747 GB, free: 2.66 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 (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 9.94e-05/0.2516, allocations: 111.1 kB / 0.7748 GB, free: 2.543 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 6.608e-05/0.2517, allocations: 12 kB / 0.7748 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2517, allocations: 0 / 0.7748 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.449e-05/0.2517, allocations: 11.98 kB / 0.7748 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.2519, allocations: 8.188 kB / 0.7748 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001959/0.2521, allocations: 125.4 kB / 0.775 GB, free: 2.355 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001792/0.2523, allocations: 0.6809 MB / 0.7756 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.349e-05/0.2523, allocations: 11.98 kB / 0.7756 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.747e-05/0.2523, allocations: 7.438 kB / 0.7756 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of SimCode: time 2e-07/0.2524, allocations: 0 / 0.7756 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of Templates: time 0.002122/0.2545, allocations: 0.5555 MB / 0.7762 GB, free: 1.074 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.makefile Environment - environmentSimulation: (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 & ./BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) Environment - environmentSimulation: