Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_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.001135/0.001136, allocations: 103.9 kB / 16.4 MB, free: 6.465 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.001155/0.001155, allocations: 193.2 kB / 17.34 MB, free: 5.715 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.293/1.293, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7403/0.7403, allocations: 122.9 MB / 414.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 67.16 kB / 0.5679 GB, free: 28.78 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1454, allocations: 77.93 MB / 0.644 GB, free: 9.527 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Examples.AirTemperatureEnthalpyInversion): time 0.4754/0.6208, allocations: 148.2 MB / 0.7888 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0001166/0.621, allocations: 59.95 kB / 0.7889 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.094e-05/0.621, allocations: 1.125 kB / 0.7889 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.6211, allocations: 1.203 kB / 0.7889 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 6.463e-05/0.6212, allocations: 8.906 kB / 0.7889 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006246/0.6218, allocations: 222.1 kB / 0.7891 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 6.961e-05/0.6219, allocations: 35.09 kB / 0.7891 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.3e-05/0.6219, allocations: 1.219 kB / 0.7891 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 3.02e-05/0.622, allocations: 16.64 kB / 0.7891 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 5.886e-05/0.622, allocations: 18.59 kB / 0.7892 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.018e-05/0.6221, allocations: 1.281 kB / 0.7892 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003459/0.6224, allocations: 198.4 kB / 0.7894 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 3.733e-05/0.6225, allocations: 10.94 kB / 0.7894 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 2.431e-05/0.6225, allocations: 8.812 kB / 0.7894 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0002113/0.6227, allocations: 116.4 kB / 0.7895 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.6227, allocations: 5.5 kB / 0.7895 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.192e-06/0.6227, allocations: 1.203 kB / 0.7895 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.6227, allocations: 0 / 0.7895 GB, free: 13.09 MB / 0.5919 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.0003385/0.6231, allocations: 342.3 kB / 0.7898 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.6231, allocations: 10.22 kB / 0.7898 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.068e-05/0.6231, allocations: 37.73 kB / 0.7899 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002839/0.6234, allocations: 23.73 kB / 0.7899 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.577e-05/0.6235, allocations: 161.8 kB / 0.79 GB, free: 12.5 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.819e-05/0.6236, allocations: 36.22 kB / 0.7901 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.068e-05/0.6236, allocations: 1.375 kB / 0.7901 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001144/0.6237, allocations: 52.22 kB / 0.7901 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.6238, allocations: 0 / 0.7901 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.6238, allocations: 3.562 kB / 0.7901 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.6238, allocations: 2.75 kB / 0.7901 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.623e-05/0.6238, allocations: 20.19 kB / 0.7902 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003031/0.6241, allocations: 270.9 kB / 0.7904 GB, free: 12.15 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 4.519e-05/0.6242, allocations: 24.33 kB / 0.7904 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.019e-05/0.6242, allocations: 13.94 kB / 0.7904 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001434/0.6244, allocations: 90.94 kB / 0.7905 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/0.6244, allocations: 40.39 kB / 0.7906 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.6244, allocations: 4 kB / 0.7906 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of matching and sorting (n=2): time 0.0002183/0.6246, allocations: 46.3 kB / 0.7906 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/0.6247, allocations: 52.5 kB / 0.7907 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.689e-05/0.6248, allocations: 108.1 kB / 0.7908 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.6248, allocations: 25.7 kB / 0.7908 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 3.664e-05/0.6248, allocations: 85.12 kB / 0.7909 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.645e-06/0.6248, allocations: 5.047 kB / 0.7909 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.058e-05/0.6249, allocations: 23.64 kB / 0.7909 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.853e-05/0.625, allocations: 316.8 kB / 0.7912 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.593e-05/0.625, allocations: 4.734 kB / 0.7912 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.968e-05/0.625, allocations: 23.02 kB / 0.7912 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.121e-05/0.6251, allocations: 33.48 kB / 0.7913 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.6251, allocations: 0 / 0.7913 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.004e-05/0.6252, allocations: 57.3 kB / 0.7913 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.6252, allocations: 5.719 kB / 0.7913 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.6252, allocations: 1.219 kB / 0.7913 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.6252, allocations: 0.9375 kB / 0.7913 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.412e-05/0.6253, allocations: 8.906 kB / 0.7913 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.6253, allocations: 9.312 kB / 0.7913 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.136e-05/0.6253, allocations: 9.125 kB / 0.7914 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.6253, allocations: 6.812 kB / 0.7914 GB, free: 11.21 MB / 0.5919 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.251e-05/0.6254, allocations: 112.7 kB / 0.7915 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.749e-05/0.6254, allocations: 2.281 kB / 0.7915 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.901e-05/0.6254, allocations: 4.062 kB / 0.7915 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.6255, allocations: 0 / 0.7915 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.6255, allocations: 5.25 kB / 0.7915 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.6255, allocations: 0 / 0.7915 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002639/0.6257, allocations: 368.3 kB / 0.7918 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.6258, allocations: 1.438 kB / 0.7918 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.756e-05/0.6258, allocations: 2.781 kB / 0.7918 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.6258, allocations: 6.094 kB / 0.7918 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.249e-06/0.6258, allocations: 0 / 0.7918 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.6258, allocations: 1.531 kB / 0.7918 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.6258, allocations: 0 / 0.7918 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.538e-05/0.6259, allocations: 78.03 kB / 0.7919 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 3.539e-05/0.6259, allocations: 88.42 kB / 0.792 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.547e-05/0.626, allocations: 0 / 0.792 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.596e-05/0.626, allocations: 5.359 kB / 0.792 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.295e-05/0.6261, allocations: 1.438 kB / 0.792 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-06/0.6261, allocations: 2.156 kB / 0.792 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 3.641e-05/0.6261, allocations: 86.47 kB / 0.7921 GB, free: 10.44 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6261, allocations: 0 / 0.7921 GB, free: 10.44 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0001977/0.6263, allocations: 10.34 kB / 0.7921 GB, free: 10.44 MB / 0.5919 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.0003151/0.6266, allocations: 0.6087 MB / 0.7927 GB, free: 9.836 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 6.883e-05/0.6267, allocations: 17.19 kB / 0.7927 GB, free: 9.832 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.6267, allocations: 0 / 0.7927 GB, free: 9.832 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 1.305e-05/0.6268, allocations: 10.23 kB / 0.7927 GB, free: 9.828 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/0.627, allocations: 4.438 kB / 0.7927 GB, free: 9.828 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003237/0.6273, allocations: 153.4 kB / 0.7929 GB, free: 9.676 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001975/0.6275, allocations: 0.6864 MB / 0.7935 GB, free: 8.973 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 4.766e-05/0.6276, allocations: 11.11 kB / 0.7936 GB, free: 8.969 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.552e-05/0.6276, allocations: 8.875 kB / 0.7936 GB, free: 8.961 MB / 0.5919 GB Notification: Performance of SimCode: time 2.31e-07/0.6276, allocations: 1.188 kB / 0.7936 GB, free: 8.961 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01543/0.643, allocations: 1.459 MB / 0.795 GB, free: 8.574 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.41/8.053, allocations: 14.09 kB / 0.795 GB, free: 8.566 MB / 0.5919 GB (rm -f IBPSA_latest_IBPSA.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo IBPSA_latest_IBPSA.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/IBPSA_latest_IBPSA.Media.Examples.AirTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Media_Examples_AirTemperatureEnthalpyInversion.fmu > IBPSA_latest_IBPSA.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)