Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/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.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",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.001344/0.001344, allocations: 106.2 kB / 16.4 MB, free: 6.5 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.001387/0.001387, allocations: 189.2 kB / 17.34 MB, free: 5.738 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.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.756/0.756, allocations: 122.9 MB / 414.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 64.02 kB / 0.568 GB, free: 28.91 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1492, allocations: 77.93 MB / 0.6441 GB, free: 9.527 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.4795/0.6288, allocations: 147.8 MB / 0.7884 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.000121/0.629, allocations: 53.22 kB / 0.7885 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.172e-05/0.629, allocations: 0 / 0.7885 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.6291, allocations: 5.031 kB / 0.7885 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 6.888e-05/0.6292, allocations: 15.44 kB / 0.7885 GB, free: 13.18 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004014/0.6296, allocations: 110.1 kB / 0.7886 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 7.947e-05/0.6297, allocations: 36.17 kB / 0.7886 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.223e-05/0.6298, allocations: 1.312 kB / 0.7886 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 3.57e-05/0.6298, allocations: 16.72 kB / 0.7886 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 6.273e-05/0.6299, allocations: 9.469 kB / 0.7887 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.6299, allocations: 0 / 0.7887 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002388/0.6301, allocations: 87.09 kB / 0.7887 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 4.094e-05/0.6302, allocations: 16.78 kB / 0.7888 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 3.291e-05/0.6302, allocations: 10.09 kB / 0.7888 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.6304, allocations: 76.86 kB / 0.7888 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.6304, allocations: 0 / 0.7888 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.262e-06/0.6304, allocations: 0 / 0.7888 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.6304, allocations: 1.188 kB / 0.7888 GB, free: 13.13 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.0003576/0.6308, allocations: 339.5 kB / 0.7892 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.6308, allocations: 11.3 kB / 0.7892 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.393e-05/0.6309, allocations: 31.91 kB / 0.7892 GB, free: 12.74 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002144/0.6311, allocations: 25.19 kB / 0.7892 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.661e-05/0.6312, allocations: 164.4 kB / 0.7894 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.989e-05/0.6313, allocations: 31.2 kB / 0.7894 GB, free: 12.5 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-06/0.6313, allocations: 0 / 0.7894 GB, free: 12.5 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001225/0.6314, allocations: 50.03 kB / 0.7895 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.6314, allocations: 1.75 kB / 0.7895 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.6314, allocations: 0 / 0.7895 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.6315, allocations: 2.719 kB / 0.7895 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.095e-05/0.6315, allocations: 25.45 kB / 0.7895 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003472/0.6319, allocations: 264.7 kB / 0.7897 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 3.288e-05/0.6319, allocations: 19.08 kB / 0.7898 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.635e-05/0.6319, allocations: 7.922 kB / 0.7898 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 4.649e-06/0.6319, allocations: 1.375 kB / 0.7898 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.632, allocations: 38.55 kB / 0.7898 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=1): time 3.267e-06/0.632, allocations: 1.375 kB / 0.7898 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1): time 0.0001205/0.6321, allocations: 37.53 kB / 0.7898 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.6321, allocations: 55.34 kB / 0.7899 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.029e-05/0.6322, allocations: 110.3 kB / 0.79 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.6322, allocations: 25.7 kB / 0.79 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 4.169e-05/0.6323, allocations: 89.42 kB / 0.7901 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.138e-06/0.6323, allocations: 5.5 kB / 0.7901 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/0.6323, allocations: 19.92 kB / 0.7901 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.92e-05/0.6324, allocations: 312.2 kB / 0.7904 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.607e-05/0.6325, allocations: 5.938 kB / 0.7904 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.596e-05/0.6325, allocations: 24.62 kB / 0.7905 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.351e-05/0.6325, allocations: 37.03 kB / 0.7905 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.6325, allocations: 2.375 kB / 0.7905 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.949e-05/0.6326, allocations: 54.91 kB / 0.7906 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.6326, allocations: 9.078 kB / 0.7906 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.6327, allocations: 5.312 kB / 0.7906 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.6327, allocations: 1.375 kB / 0.7906 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.471e-05/0.6327, allocations: 5.5 kB / 0.7906 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.6328, allocations: 9.25 kB / 0.7906 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.144e-05/0.6328, allocations: 9.422 kB / 0.7906 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-06/0.6328, allocations: 1.375 kB / 0.7906 GB, free: 11.35 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.666e-05/0.6329, allocations: 114.9 kB / 0.7907 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.675e-05/0.6329, allocations: 1.375 kB / 0.7907 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.849e-05/0.6329, allocations: 7.812 kB / 0.7907 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.6329, allocations: 1.094 kB / 0.7907 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.633, allocations: 3.938 kB / 0.7907 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.633, allocations: 1.375 kB / 0.7907 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002368/0.6332, allocations: 343.8 kB / 0.791 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.6332, allocations: 1.375 kB / 0.791 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.34e-05/0.6332, allocations: 1.375 kB / 0.791 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.6332, allocations: 3.938 kB / 0.7911 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.41e-06/0.6332, allocations: 5.312 kB / 0.7911 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.6333, allocations: 1.922 kB / 0.7911 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.6333, allocations: 0.875 kB / 0.7911 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.821e-05/0.6333, allocations: 63.2 kB / 0.7911 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 3.862e-05/0.6334, allocations: 86.38 kB / 0.7912 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.6334, allocations: 0 / 0.7912 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-05/0.6335, allocations: 4.766 kB / 0.7912 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.796e-06/0.6335, allocations: 1.375 kB / 0.7912 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.6335, allocations: 3.938 kB / 0.7912 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 4.259e-05/0.6336, allocations: 86.77 kB / 0.7913 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6336, allocations: 0 / 0.7913 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0001923/0.6338, allocations: 5.5 kB / 0.7913 GB, free: 10.59 MB / 0.5919 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 (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.0002739/0.634, allocations: 0.6026 MB / 0.7919 GB, free: 9.996 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 7.374e-05/0.6341, allocations: 9.938 kB / 0.7919 GB, free: 9.996 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.6341, allocations: 2.578 kB / 0.7919 GB, free: 9.996 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 9.247e-06/0.6341, allocations: 9.531 kB / 0.7919 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002253/0.6344, allocations: 9.391 kB / 0.7919 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003199/0.6347, allocations: 145.1 kB / 0.7921 GB, free: 9.84 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001992/0.6349, allocations: 0.6742 MB / 0.7927 GB, free: 9.145 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 4.478e-05/0.635, allocations: 6.203 kB / 0.7927 GB, free: 9.145 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.864e-05/0.635, allocations: 12.81 kB / 0.7927 GB, free: 9.133 MB / 0.5919 GB Notification: Performance of SimCode: time 2.41e-07/0.635, allocations: 1.375 kB / 0.7927 GB, free: 9.133 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0162/0.6512, allocations: 1.377 MB / 0.7941 GB, free: 8.789 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.62/8.271, allocations: 1.594 kB / 0.7941 GB, free: 8.789 MB / 0.5919 GB (rm -f IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion_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_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1)