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.004265/0.004265, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001044/0.001044, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002132/0.002132, allocations: 279 kB / 290.8 MB, free: 1.758 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.007/1.007, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 92.14 kB / 0.6809 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1489, allocations: 86.97 MB / 0.7659 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.4424/0.5914, allocations: 148.3 MB / 0.9107 GB, free: 14.9 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0001194/0.5915, allocations: 52.36 kB / 0.9107 GB, free: 14.86 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.098e-05/0.5916, allocations: 4 kB / 0.9107 GB, free: 14.85 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.0001019/0.5917, allocations: 7.938 kB / 0.9107 GB, free: 14.84 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 6.598e-05/0.5918, allocations: 15.91 kB / 0.9108 GB, free: 14.83 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006451/0.5924, allocations: 207.7 kB / 0.911 GB, free: 14.62 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 7.347e-05/0.5925, allocations: 31.91 kB / 0.911 GB, free: 14.59 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 3.566e-05/0.5925, allocations: 8 kB / 0.911 GB, free: 14.59 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 3.382e-05/0.5926, allocations: 23.86 kB / 0.911 GB, free: 14.56 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 5.824e-05/0.5926, allocations: 7.984 kB / 0.911 GB, free: 14.55 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.029e-05/0.5927, allocations: 0 / 0.911 GB, free: 14.55 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003707/0.593, allocations: 203.4 kB / 0.9112 GB, free: 14.36 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 4.044e-05/0.5931, allocations: 11.92 kB / 0.9112 GB, free: 14.34 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 2.411e-05/0.5931, allocations: 11.94 kB / 0.9112 GB, free: 14.33 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0002217/0.5934, allocations: 115.1 kB / 0.9114 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.5934, allocations: 4 kB / 0.9114 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.423e-06/0.5934, allocations: 0 / 0.9114 GB, free: 14.22 MB / 0.67 GB Notification: Performance of Transformations before backend: time 4.167e-06/0.5934, allocations: 4 kB / 0.9114 GB, free: 14.22 MB / 0.67 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.0003431/0.5937, allocations: 337.2 kB / 0.9117 GB, free: 13.84 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.5938, allocations: 12.03 kB / 0.9117 GB, free: 13.83 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.364e-05/0.5938, allocations: 36.8 kB / 0.9117 GB, free: 13.79 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000291/0.5941, allocations: 24.91 kB / 0.9118 GB, free: 13.77 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.5942, allocations: 172.2 kB / 0.9119 GB, free: 13.56 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.893e-05/0.5943, allocations: 29.64 kB / 0.9119 GB, free: 13.52 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.5943, allocations: 12 kB / 0.912 GB, free: 13.51 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001157/0.5944, allocations: 41.69 kB / 0.912 GB, free: 13.46 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.5944, allocations: 0 / 0.912 GB, free: 13.46 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.5945, allocations: 4 kB / 0.912 GB, free: 13.46 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.5945, allocations: 3.984 kB / 0.912 GB, free: 13.46 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.502e-05/0.5945, allocations: 23.98 kB / 0.912 GB, free: 13.43 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002995/0.5948, allocations: 253.6 kB / 0.9123 GB, free: 13.14 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 4.651e-05/0.5949, allocations: 34.5 kB / 0.9123 GB, free: 13.09 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.845e-05/0.5949, allocations: 4.859 kB / 0.9123 GB, free: 13.09 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001477/0.5951, allocations: 97.16 kB / 0.9124 GB, free: 12.97 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.5951, allocations: 34.5 kB / 0.9124 GB, free: 12.93 MB / 0.67 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.5951, allocations: 0 / 0.9124 GB, free: 12.93 MB / 0.67 GB Notification: Performance of matching and sorting (n=2): time 0.0002237/0.5954, allocations: 53.69 kB / 0.9125 GB, free: 12.87 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.791e-05/0.5954, allocations: 55.34 kB / 0.9125 GB, free: 12.8 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.968e-05/0.5955, allocations: 105.8 kB / 0.9126 GB, free: 12.69 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.5955, allocations: 29.7 kB / 0.9127 GB, free: 12.66 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 3.676e-05/0.5955, allocations: 88.08 kB / 0.9127 GB, free: 12.57 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 6.783e-06/0.5955, allocations: 3.953 kB / 0.9128 GB, free: 12.56 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.03e-05/0.5956, allocations: 19.69 kB / 0.9128 GB, free: 12.54 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 8.67e-05/0.5957, allocations: 315 kB / 0.9131 GB, free: 12.22 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.696e-05/0.5957, allocations: 7.984 kB / 0.9131 GB, free: 12.21 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.346e-05/0.5957, allocations: 22.58 kB / 0.9131 GB, free: 12.18 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.253e-05/0.5958, allocations: 36.14 kB / 0.9131 GB, free: 12.14 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.5958, allocations: 0 / 0.9131 GB, free: 12.14 MB / 0.67 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.765e-05/0.5959, allocations: 57.62 kB / 0.9132 GB, free: 12.08 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.5959, allocations: 4 kB / 0.9132 GB, free: 12.07 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.5959, allocations: 0 / 0.9132 GB, free: 12.07 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.779e-06/0.5959, allocations: 0 / 0.9132 GB, free: 12.07 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.366e-05/0.596, allocations: 11.98 kB / 0.9132 GB, free: 12.06 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.596, allocations: 3.938 kB / 0.9132 GB, free: 12.06 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.953e-05/0.596, allocations: 4 kB / 0.9132 GB, free: 12.05 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-06/0.596, allocations: 0 / 0.9132 GB, free: 12.05 MB / 0.67 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 6.693e-05/0.5961, allocations: 122.5 kB / 0.9133 GB, free: 11.93 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.894e-05/0.5961, allocations: 3.953 kB / 0.9133 GB, free: 11.92 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.634e-05/0.5961, allocations: 3.125 kB / 0.9133 GB, free: 11.92 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.5961, allocations: 0 / 0.9133 GB, free: 11.92 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.5962, allocations: 3.938 kB / 0.9133 GB, free: 11.92 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.5962, allocations: 4 kB / 0.9133 GB, free: 11.91 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002546/0.5964, allocations: 361.4 kB / 0.9137 GB, free: 11.5 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.5964, allocations: 8 kB / 0.9137 GB, free: 11.49 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.757e-05/0.5965, allocations: 4 kB / 0.9137 GB, free: 11.49 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.5965, allocations: 3.938 kB / 0.9137 GB, free: 11.48 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.162e-06/0.5965, allocations: 4.266 kB / 0.9137 GB, free: 11.48 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.5965, allocations: 3.938 kB / 0.9137 GB, free: 11.48 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.5965, allocations: 4 kB / 0.9137 GB, free: 11.47 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.025e-05/0.5966, allocations: 66 kB / 0.9138 GB, free: 11.39 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 3.716e-05/0.5966, allocations: 96.92 kB / 0.9139 GB, free: 11.27 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.5966, allocations: 7.984 kB / 0.9139 GB, free: 11.27 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.283e-05/0.5967, allocations: 0 / 0.9139 GB, free: 11.27 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.558e-06/0.5968, allocations: 4 kB / 0.9139 GB, free: 11.26 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.5968, allocations: 3.25 kB / 0.9139 GB, free: 11.26 MB / 0.67 GB Notification: Performance of sorting global known variables: time 3.385e-05/0.5968, allocations: 83.27 kB / 0.914 GB, free: 11.18 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5968, allocations: 0 / 0.914 GB, free: 11.18 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0001984/0.597, allocations: 8 kB / 0.914 GB, free: 11.17 MB / 0.67 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.0003059/0.5973, allocations: 0.6133 MB / 0.9146 GB, free: 10.53 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 7.254e-05/0.5974, allocations: 16.09 kB / 0.9146 GB, free: 10.51 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.5974, allocations: 4.062 kB / 0.9146 GB, free: 10.51 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 9.237e-06/0.5974, allocations: 4 kB / 0.9146 GB, free: 10.5 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.5976, allocations: 4 kB / 0.9146 GB, free: 10.5 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00033/0.598, allocations: 160 kB / 0.9147 GB, free: 10.3 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001939/0.5982, allocations: 0.6807 MB / 0.9154 GB, free: 9.594 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 4.625e-05/0.5982, allocations: 8.125 kB / 0.9154 GB, free: 9.586 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.709e-05/0.5983, allocations: 11.44 kB / 0.9154 GB, free: 9.574 MB / 0.67 GB Notification: Performance of SimCode: time 2.3e-07/0.5983, allocations: 0 / 0.9154 GB, free: 9.574 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.6142, allocations: 1.463 MB / 0.9169 GB, free: 8.242 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.396/8.01, allocations: 11.94 kB / 0.9169 GB, free: 8.23 MB / 0.67 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)