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.007729/0.007729, allocations: 101 kB / 15.73 MB, free: 6.055 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.001901/0.001901, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.542/1.542, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002568/0.002568, allocations: 286.1 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.04/1.04, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0027/0.0027, allocations: 95.83 kB / 0.681 GB, free: 7.469 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4161/0.4188, allocations: 86.96 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.1741/0.5929, allocations: 147.8 MB / 0.9103 GB, free: 15.45 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.0001431/0.5931, allocations: 59.86 kB / 0.9103 GB, free: 15.39 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.265e-05/0.5931, allocations: 0 / 0.9103 GB, free: 15.39 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0001018/0.5932, allocations: 3.938 kB / 0.9103 GB, free: 15.39 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 7.039e-05/0.5933, allocations: 19.91 kB / 0.9104 GB, free: 15.37 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004384/0.5938, allocations: 102.9 kB / 0.9105 GB, free: 15.27 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 8.989e-05/0.5939, allocations: 43.77 kB / 0.9105 GB, free: 15.23 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 3.54e-05/0.5939, allocations: 4 kB / 0.9105 GB, free: 15.23 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 3.589e-05/0.594, allocations: 12 kB / 0.9105 GB, free: 15.21 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 6.725e-05/0.594, allocations: 11.97 kB / 0.9105 GB, free: 15.2 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 1.533e-05/0.5941, allocations: 4 kB / 0.9105 GB, free: 15.2 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000239/0.5943, allocations: 79.73 kB / 0.9106 GB, free: 15.12 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 4.837e-05/0.5944, allocations: 15.91 kB / 0.9106 GB, free: 15.11 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 2.565e-05/0.5944, allocations: 8 kB / 0.9106 GB, free: 15.1 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.5946, allocations: 67.64 kB / 0.9107 GB, free: 15.04 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.5946, allocations: 4 kB / 0.9107 GB, free: 15.03 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.422e-06/0.5946, allocations: 0 / 0.9107 GB, free: 15.03 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.5946, allocations: 4 kB / 0.9107 GB, free: 15.03 MB / 0.6856 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.0004119/0.595, allocations: 336.7 kB / 0.911 GB, free: 14.66 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.5951, allocations: 8.031 kB / 0.911 GB, free: 14.65 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.582e-05/0.5951, allocations: 42.69 kB / 0.9111 GB, free: 14.6 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002143/0.5953, allocations: 16.92 kB / 0.9111 GB, free: 14.58 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.5955, allocations: 172.1 kB / 0.9112 GB, free: 14.38 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.883e-05/0.5955, allocations: 29.69 kB / 0.9113 GB, free: 14.34 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.5955, allocations: 8 kB / 0.9113 GB, free: 14.33 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001411/0.5957, allocations: 41.69 kB / 0.9113 GB, free: 14.29 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.5957, allocations: 0 / 0.9113 GB, free: 14.29 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.5957, allocations: 3.984 kB / 0.9113 GB, free: 14.28 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.5957, allocations: 4 kB / 0.9113 GB, free: 14.28 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.573e-05/0.5958, allocations: 19.98 kB / 0.9114 GB, free: 14.26 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004166/0.5962, allocations: 268.8 kB / 0.9116 GB, free: 13.95 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 3.837e-05/0.5963, allocations: 22.55 kB / 0.9116 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.884e-05/0.5963, allocations: 4.859 kB / 0.9116 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 4.559e-06/0.5963, allocations: 0 / 0.9116 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.5964, allocations: 34.62 kB / 0.9117 GB, free: 13.86 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.5964, allocations: 3.938 kB / 0.9117 GB, free: 13.86 MB / 0.6856 GB Notification: Performance of matching and sorting (n=1): time 0.0001419/0.5965, allocations: 37.64 kB / 0.9117 GB, free: 13.82 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.5966, allocations: 59.47 kB / 0.9118 GB, free: 13.75 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.119e-05/0.5967, allocations: 105.8 kB / 0.9119 GB, free: 13.63 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.5967, allocations: 25.7 kB / 0.9119 GB, free: 13.6 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 6.117e-05/0.5968, allocations: 92.05 kB / 0.912 GB, free: 13.51 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 5.731e-06/0.5968, allocations: 0 / 0.912 GB, free: 13.51 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-05/0.5968, allocations: 21.7 kB / 0.912 GB, free: 13.48 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.5969, allocations: 310.8 kB / 0.9123 GB, free: 13.17 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.849e-05/0.597, allocations: 8 kB / 0.9123 GB, free: 13.16 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.98e-05/0.597, allocations: 26.56 kB / 0.9123 GB, free: 13.12 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.811e-05/0.5971, allocations: 30.52 kB / 0.9124 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5971, allocations: 0 / 0.9124 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.163e-05/0.5972, allocations: 53.72 kB / 0.9124 GB, free: 13.03 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.5972, allocations: 12 kB / 0.9124 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.5972, allocations: 0 / 0.9124 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.5972, allocations: 0 / 0.9124 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.268e-05/0.5973, allocations: 11.94 kB / 0.9124 GB, free: 13 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.5973, allocations: 0 / 0.9124 GB, free: 13 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.496e-05/0.5973, allocations: 7.891 kB / 0.9124 GB, free: 13 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.5974, allocations: 4 kB / 0.9124 GB, free: 12.99 MB / 0.6856 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 8.848e-05/0.5975, allocations: 117.8 kB / 0.9126 GB, free: 12.87 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.757e-05/0.5975, allocations: 4 kB / 0.9126 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.599e-05/0.5975, allocations: 7.125 kB / 0.9126 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.5975, allocations: 4.031 kB / 0.9126 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.5975, allocations: 3.984 kB / 0.9126 GB, free: 12.85 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.5975, allocations: 0 / 0.9126 GB, free: 12.85 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003119/0.5979, allocations: 338.8 kB / 0.9129 GB, free: 12.46 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.5979, allocations: 0 / 0.9129 GB, free: 12.46 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.851e-05/0.5979, allocations: 11.92 kB / 0.9129 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.5979, allocations: 0 / 0.9129 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.5979, allocations: 4.031 kB / 0.9129 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.5979, allocations: 0 / 0.9129 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.5979, allocations: 0 / 0.9129 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.922e-05/0.598, allocations: 61.33 kB / 0.913 GB, free: 12.37 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 5.476e-05/0.5981, allocations: 88.94 kB / 0.9131 GB, free: 12.26 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/0.5981, allocations: 7.984 kB / 0.9131 GB, free: 12.25 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.466e-05/0.5982, allocations: 4 kB / 0.9131 GB, free: 12.25 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.301e-05/0.5982, allocations: 7.969 kB / 0.9131 GB, free: 12.24 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-06/0.5982, allocations: 0 / 0.9131 GB, free: 12.24 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 5.307e-05/0.5983, allocations: 87.28 kB / 0.9132 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5983, allocations: 0 / 0.9132 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0002654/0.5985, allocations: 4 kB / 0.9132 GB, free: 12.15 MB / 0.6856 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.0004/0.599, allocations: 0.6007 MB / 0.9137 GB, free: 11.52 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 9.232e-05/0.5991, allocations: 19.98 kB / 0.9138 GB, free: 11.5 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.5991, allocations: 0 / 0.9138 GB, free: 11.5 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 4.468e-06/0.5991, allocations: 0 / 0.9138 GB, free: 11.5 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.5994, allocations: 5.625 kB / 0.9138 GB, free: 11.5 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004283/0.5998, allocations: 144.2 kB / 0.9139 GB, free: 11.32 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.6002, allocations: 0.6847 MB / 0.9146 GB, free: 10.61 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 4.72e-05/0.6002, allocations: 4 kB / 0.9146 GB, free: 10.6 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.302e-05/0.6002, allocations: 11.42 kB / 0.9146 GB, free: 10.59 MB / 0.6856 GB Notification: Performance of SimCode: time 2.4e-07/0.6003, allocations: 0 / 0.9146 GB, free: 10.59 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02156/0.6218, allocations: 1.374 MB / 0.9159 GB, free: 9.398 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.078/8.7, allocations: 13.17 kB / 0.9159 GB, free: 9.391 MB / 0.6856 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)