Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_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.001198/0.001198, 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.001278/0.001278, allocations: 197.6 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 1.668/1.668, 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.003849/0.003849, allocations: 290.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.625/1.625, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002994/0.002994, allocations: 92.16 kB / 0.5953 GB, free: 27.92 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1885, allocations: 86.97 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.5095/0.698, allocations: 147.8 MB / 0.8246 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001957/0.6982, allocations: 54.02 kB / 0.8247 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.09e-05/0.6983, allocations: 0.5 kB / 0.8247 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001274/0.6984, allocations: 3.906 kB / 0.8247 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001/0.6985, allocations: 15.28 kB / 0.8247 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006774/0.6992, allocations: 111.3 kB / 0.8248 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001303/0.6994, allocations: 29.41 kB / 0.8248 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.955e-05/0.6994, allocations: 3.969 kB / 0.8249 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.191e-05/0.6995, allocations: 18.5 kB / 0.8249 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.922e-05/0.6996, allocations: 15.67 kB / 0.8249 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.771e-05/0.6996, allocations: 5.188 kB / 0.8249 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00038/0.7, allocations: 82.02 kB / 0.825 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.608e-05/0.7001, allocations: 7.938 kB / 0.825 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 5.217e-05/0.7002, allocations: 16.12 kB / 0.825 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002725/0.7005, allocations: 67.88 kB / 0.8251 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.7005, allocations: 0.6562 kB / 0.8251 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.713e-06/0.7005, allocations: 3.938 kB / 0.8251 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.1e-05/0.7005, allocations: 0 / 0.8251 GB, free: 1.367 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.0005934/0.7011, allocations: 338.5 kB / 0.8254 GB, free: 17.02 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/0.7012, allocations: 13.81 kB / 0.8254 GB, free: 17.01 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.531e-05/0.7013, allocations: 33.47 kB / 0.8254 GB, free: 16.97 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003673/0.7016, allocations: 22.52 kB / 0.8254 GB, free: 16.97 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.7018, allocations: 168 kB / 0.8256 GB, free: 16.77 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.479e-05/0.7019, allocations: 30.86 kB / 0.8256 GB, free: 16.73 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.912e-05/0.702, allocations: 1.188 kB / 0.8256 GB, free: 16.73 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002016/0.7022, allocations: 50.36 kB / 0.8257 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.7022, allocations: 4 kB / 0.8257 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.7022, allocations: 0.5 kB / 0.8257 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/0.7023, allocations: 2.125 kB / 0.8257 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.795e-05/0.7024, allocations: 21.97 kB / 0.8257 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005714/0.703, allocations: 254.6 kB / 0.826 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.367e-05/0.703, allocations: 24.33 kB / 0.826 GB, free: 16.4 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.792e-05/0.7031, allocations: 9.953 kB / 0.826 GB, free: 16.39 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.183e-05/0.7031, allocations: 0.5 kB / 0.826 GB, free: 16.39 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.7032, allocations: 31.69 kB / 0.826 GB, free: 16.35 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 2.214e-06/0.7032, allocations: 0.5312 kB / 0.826 GB, free: 16.35 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001972/0.7034, allocations: 37.56 kB / 0.8261 GB, free: 16.32 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/0.7034, allocations: 55.84 kB / 0.8261 GB, free: 16.25 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.7036, allocations: 103.1 kB / 0.8262 GB, free: 16.15 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.7036, allocations: 30.58 kB / 0.8262 GB, free: 16.12 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.973e-05/0.7037, allocations: 106.4 kB / 0.8263 GB, free: 16.02 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.586e-06/0.7037, allocations: 0.5 kB / 0.8263 GB, free: 16.02 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.254e-05/0.7038, allocations: 13.34 kB / 0.8264 GB, free: 16 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.704, allocations: 317.8 kB / 0.8267 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.055e-05/0.704, allocations: 2.938 kB / 0.8267 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.749e-05/0.7041, allocations: 25.2 kB / 0.8267 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.582e-05/0.7042, allocations: 32.03 kB / 0.8267 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.7042, allocations: 4.688 kB / 0.8267 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001763/0.7044, allocations: 55.5 kB / 0.8268 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.7044, allocations: 5.625 kB / 0.8268 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.7045, allocations: 0.5625 kB / 0.8268 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.853e-05/0.7045, allocations: 5.25 kB / 0.8268 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.919e-05/0.7046, allocations: 9.312 kB / 0.8268 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.7046, allocations: 5.094 kB / 0.8268 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.932e-05/0.7047, allocations: 5.75 kB / 0.8268 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.7047, allocations: 1.688 kB / 0.8268 GB, free: 15.59 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 0.0001152/0.7049, allocations: 115.1 kB / 0.8269 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.468e-05/0.705, allocations: 1.844 kB / 0.8269 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.553e-05/0.705, allocations: 3.75 kB / 0.8269 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.705, allocations: 0.6875 kB / 0.8269 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.705, allocations: 8.438 kB / 0.8269 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.705, allocations: 0.5625 kB / 0.8269 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004023/0.7054, allocations: 348.3 kB / 0.8273 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.7055, allocations: 0.5 kB / 0.8273 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.551e-05/0.7055, allocations: 1.5 kB / 0.8273 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.181e-06/0.7055, allocations: 4.438 kB / 0.8273 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.7055, allocations: 0.5 kB / 0.8273 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.7056, allocations: 0.5 kB / 0.8273 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.7056, allocations: 5.906 kB / 0.8273 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.7057, allocations: 57.83 kB / 0.8273 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.055e-05/0.7058, allocations: 88.47 kB / 0.8274 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.017e-05/0.7058, allocations: 1.188 kB / 0.8274 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.706, allocations: 2.062 kB / 0.8274 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.295e-05/0.706, allocations: 14.88 kB / 0.8274 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-06/0.706, allocations: 0.5625 kB / 0.8274 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 8.361e-05/0.7061, allocations: 87.5 kB / 0.8275 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.71e-07/0.7062, allocations: 0 / 0.8275 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004035/0.7066, allocations: 6.469 kB / 0.8275 GB, free: 14.82 MB / 0.5762 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.0005244/0.7071, allocations: 0.5977 MB / 0.8281 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001399/0.7073, allocations: 22.2 kB / 0.8281 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.7073, allocations: 1.125 kB / 0.8281 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.428e-05/0.7073, allocations: 1.156 kB / 0.8281 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003981/0.7077, allocations: 4.875 kB / 0.8281 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005397/0.7083, allocations: 146.5 kB / 0.8283 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.7087, allocations: 0.6813 MB / 0.8289 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000106/0.7088, allocations: 7.812 kB / 0.8289 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.445e-05/0.7089, allocations: 14.62 kB / 0.829 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of SimCode: time 5.61e-07/0.7089, allocations: 0 / 0.829 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0319/0.7408, allocations: 1.357 MB / 0.8303 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/11.27, allocations: 15.23 kB / 0.8303 GB, free: 13.04 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1)