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.001784/0.001784, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00185/0.00185, allocations: 198.5 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.089/2.089, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003226/0.003226, allocations: 286.9 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.511/1.511, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003664/0.003664, allocations: 95.61 kB / 0.5953 GB, free: 27.83 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.2068, allocations: 86.98 MB / 0.6803 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.5235/0.7303, allocations: 148.3 MB / 0.8251 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001345/0.7305, allocations: 53.77 kB / 0.8251 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.478e-05/0.7305, allocations: 0.5625 kB / 0.8251 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.7307, allocations: 6.906 kB / 0.8251 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.745e-05/0.7308, allocations: 14.91 kB / 0.8251 GB, free: 1.387 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007276/0.7315, allocations: 218.6 kB / 0.8253 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.519e-05/0.7316, allocations: 36.3 kB / 0.8254 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.104e-05/0.7317, allocations: 1.625 kB / 0.8254 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.487e-05/0.7317, allocations: 14.42 kB / 0.8254 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.759e-05/0.7318, allocations: 12.95 kB / 0.8254 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.433e-05/0.7318, allocations: 1.062 kB / 0.8254 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004516/0.7323, allocations: 203.8 kB / 0.8256 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.438e-05/0.7323, allocations: 12.14 kB / 0.8256 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.974e-05/0.7323, allocations: 5.281 kB / 0.8256 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002714/0.7326, allocations: 114.6 kB / 0.8257 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.7326, allocations: 0 / 0.8257 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.373e-06/0.7326, allocations: 0 / 0.8257 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.7327, allocations: 0.5625 kB / 0.8257 GB, free: 1.297 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.000441/0.7331, allocations: 341.5 kB / 0.8261 GB, free: 16.94 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.7332, allocations: 9.531 kB / 0.8261 GB, free: 16.94 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.224e-05/0.7332, allocations: 31.81 kB / 0.8261 GB, free: 16.9 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003233/0.7335, allocations: 29.66 kB / 0.8261 GB, free: 16.9 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.7337, allocations: 169.4 kB / 0.8263 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.956e-05/0.7337, allocations: 34.27 kB / 0.8263 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.7337, allocations: 4.234 kB / 0.8263 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001455/0.7339, allocations: 47.48 kB / 0.8264 GB, free: 16.63 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.7339, allocations: 0 / 0.8264 GB, free: 16.63 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.7339, allocations: 4.469 kB / 0.8264 GB, free: 16.62 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.734, allocations: 2.188 kB / 0.8264 GB, free: 16.62 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.714e-05/0.734, allocations: 21.55 kB / 0.8264 GB, free: 16.62 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003461/0.7344, allocations: 261.9 kB / 0.8266 GB, free: 16.35 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.28e-05/0.7344, allocations: 26.36 kB / 0.8267 GB, free: 16.33 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.93e-05/0.7344, allocations: 7.109 kB / 0.8267 GB, free: 16.32 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001479/0.7346, allocations: 92.22 kB / 0.8268 GB, free: 16.23 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.7346, allocations: 37.94 kB / 0.8268 GB, free: 16.18 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.7346, allocations: 2.312 kB / 0.8268 GB, free: 16.18 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0002477/0.7349, allocations: 48.83 kB / 0.8268 GB, free: 16.15 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.7349, allocations: 52.53 kB / 0.8269 GB, free: 16.09 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.413e-05/0.735, allocations: 111.3 kB / 0.827 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.735, allocations: 26.7 kB / 0.827 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.932e-05/0.7351, allocations: 85.11 kB / 0.8271 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.346e-06/0.7351, allocations: 8.281 kB / 0.8271 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.147e-05/0.7352, allocations: 19.77 kB / 0.8271 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.7353, allocations: 315.9 kB / 0.8274 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.877e-05/0.7353, allocations: 4.328 kB / 0.8274 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.456e-05/0.7353, allocations: 25.55 kB / 0.8275 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.074e-05/0.7354, allocations: 35.02 kB / 0.8275 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.7354, allocations: 0 / 0.8275 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.649e-05/0.7355, allocations: 53.69 kB / 0.8275 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.7355, allocations: 6.312 kB / 0.8276 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.7355, allocations: 1.062 kB / 0.8276 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.7355, allocations: 1.094 kB / 0.8276 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.925e-05/0.7356, allocations: 5.469 kB / 0.8276 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.7356, allocations: 5 kB / 0.8276 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.174e-05/0.7356, allocations: 10.23 kB / 0.8276 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-06/0.7356, allocations: 1.094 kB / 0.8276 GB, free: 15.43 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 7.43e-05/0.7357, allocations: 115 kB / 0.8277 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.037e-05/0.7358, allocations: 13.69 kB / 0.8277 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.261e-05/0.7358, allocations: 9.438 kB / 0.8277 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.7358, allocations: 0.5625 kB / 0.8277 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.7358, allocations: 4.562 kB / 0.8277 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.7358, allocations: 0 / 0.8277 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002833/0.7361, allocations: 365.9 kB / 0.8281 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.7361, allocations: 1.031 kB / 0.8281 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.934e-05/0.7361, allocations: 8.031 kB / 0.8281 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.656e-06/0.7362, allocations: 5.031 kB / 0.8281 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.7362, allocations: 0 / 0.8281 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.7362, allocations: 1.062 kB / 0.8281 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.7362, allocations: 1.094 kB / 0.8281 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.243e-05/0.7363, allocations: 71.86 kB / 0.8281 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.348e-05/0.7363, allocations: 86.2 kB / 0.8282 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.7363, allocations: 3.688 kB / 0.8282 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.988e-05/0.7364, allocations: 4.562 kB / 0.8282 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.654e-05/0.7364, allocations: 4.344 kB / 0.8282 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-06/0.7365, allocations: 1.062 kB / 0.8282 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.146e-05/0.7365, allocations: 84.41 kB / 0.8283 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7365, allocations: 4.969 kB / 0.8283 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002079/0.7367, allocations: 6.031 kB / 0.8283 GB, free: 14.64 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.0003497/0.7371, allocations: 0.6137 MB / 0.8289 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 9.389e-05/0.7372, allocations: 18.47 kB / 0.829 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.7372, allocations: 0 / 0.829 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.303e-05/0.7372, allocations: 6.125 kB / 0.829 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.7375, allocations: 6.625 kB / 0.829 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003721/0.7378, allocations: 159.1 kB / 0.8291 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.7381, allocations: 0.6757 MB / 0.8298 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 5.926e-05/0.7381, allocations: 5.75 kB / 0.8298 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.028e-05/0.7382, allocations: 9.156 kB / 0.8298 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of SimCode: time 3.4e-07/0.7382, allocations: 0 / 0.8298 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.7556, allocations: 1.444 MB / 0.8312 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/11.39, allocations: 8.406 kB / 0.8312 GB, free: 12.8 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)