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.00123/0.00123, 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.000981/0.0009811, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.233/1.233, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002106/0.002106, allocations: 286.7 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9134/0.9134, allocations: 169.2 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001709, allocations: 93.17 kB / 0.5953 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1286, allocations: 86.98 MB / 0.6803 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.4065/0.5351, allocations: 147.8 MB / 0.8246 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001197/0.5352, allocations: 52.78 kB / 0.8247 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.078e-05/0.5353, allocations: 0.5938 kB / 0.8247 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.528e-05/0.5354, allocations: 6.953 kB / 0.8247 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.585e-05/0.5355, allocations: 9.141 kB / 0.8247 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004132/0.5359, allocations: 111.3 kB / 0.8248 GB, free: 1.402 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.243e-05/0.536, allocations: 35.73 kB / 0.8248 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.993e-05/0.536, allocations: 4.609 kB / 0.8249 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.218e-05/0.5361, allocations: 12.47 kB / 0.8249 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.398e-05/0.5361, allocations: 16.11 kB / 0.8249 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.5362, allocations: 1.562 kB / 0.8249 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002464/0.5364, allocations: 82.2 kB / 0.825 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.512e-05/0.5365, allocations: 13.02 kB / 0.825 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.114e-05/0.5365, allocations: 13.59 kB / 0.825 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.5367, allocations: 71.77 kB / 0.8251 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.5367, allocations: 3.938 kB / 0.8251 GB, free: 1.363 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.533e-06/0.5367, allocations: 0.625 kB / 0.8251 GB, free: 1.363 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.5367, allocations: 3.938 kB / 0.8251 GB, free: 1.359 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.0003874/0.5371, allocations: 334.7 kB / 0.8254 GB, free: 17.01 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.5371, allocations: 9.125 kB / 0.8254 GB, free: 17.01 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.136e-05/0.5372, allocations: 34.78 kB / 0.8254 GB, free: 16.97 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002121/0.5374, allocations: 25.67 kB / 0.8254 GB, free: 16.96 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.076e-05/0.5375, allocations: 166.1 kB / 0.8256 GB, free: 16.77 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.695e-05/0.5375, allocations: 30.3 kB / 0.8256 GB, free: 16.73 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.5376, allocations: 1.531 kB / 0.8256 GB, free: 16.73 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/0.5377, allocations: 48.31 kB / 0.8257 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.5377, allocations: 2.156 kB / 0.8257 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.5377, allocations: 0.5625 kB / 0.8257 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.942e-05/0.5377, allocations: 11.41 kB / 0.8257 GB, free: 16.69 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.714e-05/0.5378, allocations: 20.45 kB / 0.8257 GB, free: 16.69 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003255/0.5381, allocations: 254.9 kB / 0.826 GB, free: 16.42 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 2.468e-05/0.5382, allocations: 20.05 kB / 0.826 GB, free: 16.4 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.432e-05/0.5382, allocations: 8.875 kB / 0.826 GB, free: 16.39 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.226e-06/0.5382, allocations: 0.5938 kB / 0.826 GB, free: 16.39 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.721e-05/0.5382, allocations: 35.62 kB / 0.826 GB, free: 16.35 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.5382, allocations: 0 / 0.826 GB, free: 16.35 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001206/0.5383, allocations: 35.27 kB / 0.8261 GB, free: 16.31 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.076e-05/0.5384, allocations: 55.84 kB / 0.8261 GB, free: 16.25 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.2e-05/0.5385, allocations: 109 kB / 0.8262 GB, free: 16.15 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.5385, allocations: 26.33 kB / 0.8262 GB, free: 16.12 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.748e-05/0.5385, allocations: 93.55 kB / 0.8263 GB, free: 16.02 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.19e-06/0.5385, allocations: 8.562 kB / 0.8263 GB, free: 16.02 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/0.5386, allocations: 17.12 kB / 0.8263 GB, free: 16 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.942e-05/0.5387, allocations: 311.4 kB / 0.8266 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.886e-05/0.5387, allocations: 9.156 kB / 0.8267 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.247e-05/0.5387, allocations: 21.69 kB / 0.8267 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.059e-05/0.5388, allocations: 36.3 kB / 0.8267 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.5388, allocations: 0 / 0.8267 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.721e-05/0.5389, allocations: 57.25 kB / 0.8268 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.5389, allocations: 9.031 kB / 0.8268 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.5389, allocations: 1 kB / 0.8268 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.5389, allocations: 1.031 kB / 0.8268 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.956e-05/0.539, allocations: 5.969 kB / 0.8268 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.539, allocations: 7.328 kB / 0.8268 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.917e-05/0.539, allocations: 9.625 kB / 0.8268 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.539, allocations: 5.969 kB / 0.8268 GB, free: 15.58 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 6.084e-05/0.5391, allocations: 109.4 kB / 0.8269 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.722e-05/0.5391, allocations: 5.531 kB / 0.8269 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.675e-05/0.5392, allocations: 9.516 kB / 0.8269 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.5392, allocations: 0.5312 kB / 0.8269 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.5392, allocations: 3.938 kB / 0.8269 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.5392, allocations: 0.5 kB / 0.8269 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002118/0.5394, allocations: 343.7 kB / 0.8273 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.5394, allocations: 1.969 kB / 0.8273 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.414e-05/0.5394, allocations: 1.312 kB / 0.8273 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.5394, allocations: 6.594 kB / 0.8273 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.118e-06/0.5394, allocations: 0.625 kB / 0.8273 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.5394, allocations: 4.5 kB / 0.8273 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.5395, allocations: 0 / 0.8273 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.801e-05/0.5395, allocations: 62.59 kB / 0.8273 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.433e-05/0.5396, allocations: 85.61 kB / 0.8274 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.5396, allocations: 0.6562 kB / 0.8274 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.029e-05/0.5397, allocations: 4.188 kB / 0.8274 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.203e-05/0.5397, allocations: 0.75 kB / 0.8274 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-06/0.5397, allocations: 0.5625 kB / 0.8274 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.274e-05/0.5397, allocations: 86.39 kB / 0.8275 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5397, allocations: 0 / 0.8275 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002045/0.54, allocations: 6 kB / 0.8275 GB, free: 14.83 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.0002731/0.5402, allocations: 0.6088 MB / 0.8281 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 7.449e-05/0.5403, allocations: 11.36 kB / 0.8281 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.5403, allocations: 0.5312 kB / 0.8281 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 8.976e-06/0.5403, allocations: 10.41 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.0002169/0.5406, allocations: 9.344 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.0003425/0.5409, allocations: 147.2 kB / 0.8283 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.5411, allocations: 0.6756 MB / 0.8289 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 5.583e-05/0.5412, allocations: 18.91 kB / 0.8289 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.805e-05/0.5412, allocations: 8.5 kB / 0.829 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of SimCode: time 2.3e-07/0.5412, allocations: 0.6875 kB / 0.829 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03818/0.5794, allocations: 1.351 MB / 0.8303 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.72/7.299, allocations: 21.88 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1)