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.005964/0.005964, allocations: 99.95 kB / 15.73 MB, free: 6.043 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.001471/0.001471, allocations: 187.6 kB / 16.67 MB, free: 5.977 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.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002075/0.002075, allocations: 286.7 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8993/0.8993, allocations: 169.2 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 95.86 kB / 0.681 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1683, allocations: 86.98 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.5182/0.6866, allocations: 147.8 MB / 0.9103 GB, free: 15.36 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0001388/0.6867, allocations: 44.38 kB / 0.9103 GB, free: 15.32 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.666e-05/0.6868, allocations: 0 / 0.9103 GB, free: 15.32 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.6869, allocations: 7.922 kB / 0.9103 GB, free: 15.31 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 8.14e-05/0.6871, allocations: 7.922 kB / 0.9103 GB, free: 15.3 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005114/0.6876, allocations: 112.8 kB / 0.9105 GB, free: 15.2 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.0001031/0.6877, allocations: 35.86 kB / 0.9105 GB, free: 15.16 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 4.794e-05/0.6877, allocations: 3.984 kB / 0.9105 GB, free: 15.16 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 4.355e-05/0.6878, allocations: 15.97 kB / 0.9105 GB, free: 15.14 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 7.362e-05/0.6879, allocations: 15.92 kB / 0.9105 GB, free: 15.12 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.083e-05/0.6879, allocations: 0 / 0.9105 GB, free: 15.12 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000255/0.6881, allocations: 83.72 kB / 0.9106 GB, free: 15.04 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 4.263e-05/0.6882, allocations: 4 kB / 0.9106 GB, free: 15.04 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 3.331e-05/0.6882, allocations: 23.91 kB / 0.9106 GB, free: 15.02 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0001703/0.6884, allocations: 62 kB / 0.9107 GB, free: 14.96 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.6884, allocations: 4 kB / 0.9107 GB, free: 14.96 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6884, allocations: 0 / 0.9107 GB, free: 14.96 MB / 0.67 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.6884, allocations: 0 / 0.9107 GB, free: 14.96 MB / 0.67 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.000399/0.6888, allocations: 348 kB / 0.911 GB, free: 14.57 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.6889, allocations: 11.97 kB / 0.911 GB, free: 14.56 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.6889, allocations: 34.75 kB / 0.9111 GB, free: 14.52 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002301/0.6892, allocations: 16.92 kB / 0.9111 GB, free: 14.5 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.6893, allocations: 168.4 kB / 0.9112 GB, free: 14.3 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.129e-05/0.6894, allocations: 33.62 kB / 0.9113 GB, free: 14.26 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.172e-05/0.6894, allocations: 3.938 kB / 0.9113 GB, free: 14.25 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.6895, allocations: 49.67 kB / 0.9113 GB, free: 14.2 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.6895, allocations: 0 / 0.9113 GB, free: 14.2 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.6896, allocations: 0 / 0.9113 GB, free: 14.2 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.6896, allocations: 4 kB / 0.9113 GB, free: 14.2 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.281e-05/0.6896, allocations: 19.92 kB / 0.9113 GB, free: 14.18 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003647/0.69, allocations: 260.9 kB / 0.9116 GB, free: 13.87 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 3.87e-05/0.6901, allocations: 18.58 kB / 0.9116 GB, free: 13.84 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.651e-05/0.6901, allocations: 4.859 kB / 0.9116 GB, free: 13.84 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 8.005e-06/0.6901, allocations: 1.875 kB / 0.9116 GB, free: 13.84 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.6901, allocations: 30.56 kB / 0.9117 GB, free: 13.8 MB / 0.67 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.6901, allocations: 4 kB / 0.9117 GB, free: 13.79 MB / 0.67 GB Notification: Performance of matching and sorting (n=1): time 0.0001371/0.6903, allocations: 49.59 kB / 0.9117 GB, free: 13.74 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.6903, allocations: 55.34 kB / 0.9118 GB, free: 13.67 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.743e-05/0.6904, allocations: 105.8 kB / 0.9119 GB, free: 13.56 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.6904, allocations: 25.7 kB / 0.9119 GB, free: 13.53 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 6.192e-05/0.6905, allocations: 87.98 kB / 0.912 GB, free: 13.44 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 6.923e-06/0.6905, allocations: 7.906 kB / 0.912 GB, free: 13.43 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.499e-05/0.6906, allocations: 17.72 kB / 0.912 GB, free: 13.41 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.6907, allocations: 319 kB / 0.9123 GB, free: 13.09 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.759e-05/0.6907, allocations: 4 kB / 0.9123 GB, free: 13.08 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.204e-05/0.6907, allocations: 26.58 kB / 0.9123 GB, free: 13.05 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.65e-05/0.6908, allocations: 34.5 kB / 0.9124 GB, free: 13 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.6908, allocations: 0 / 0.9124 GB, free: 13 MB / 0.67 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.344e-05/0.6909, allocations: 53.64 kB / 0.9124 GB, free: 12.95 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.6909, allocations: 4 kB / 0.9124 GB, free: 12.94 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.413e-06/0.6909, allocations: 7.984 kB / 0.9124 GB, free: 12.93 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.6909, allocations: 0 / 0.9124 GB, free: 12.93 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.835e-05/0.691, allocations: 4 kB / 0.9124 GB, free: 12.93 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.691, allocations: 8.688 kB / 0.9124 GB, free: 12.92 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.794e-05/0.6911, allocations: 0 / 0.9124 GB, free: 12.92 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-06/0.6911, allocations: 0 / 0.9124 GB, free: 12.92 MB / 0.67 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 7.665e-05/0.6912, allocations: 122.5 kB / 0.9125 GB, free: 12.79 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.705e-05/0.6912, allocations: 0 / 0.9125 GB, free: 12.79 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.614e-05/0.6912, allocations: 11.06 kB / 0.9126 GB, free: 12.79 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.6912, allocations: 3.984 kB / 0.9126 GB, free: 12.78 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.6912, allocations: 3.938 kB / 0.9126 GB, free: 12.78 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-06/0.6912, allocations: 0.9375 kB / 0.9126 GB, free: 12.78 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000239/0.6915, allocations: 343.5 kB / 0.9129 GB, free: 12.38 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.6915, allocations: 0 / 0.9129 GB, free: 12.38 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.434e-05/0.6915, allocations: 4.031 kB / 0.9129 GB, free: 12.38 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.6915, allocations: 7.938 kB / 0.9129 GB, free: 12.37 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-06/0.6915, allocations: 0 / 0.9129 GB, free: 12.37 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.6915, allocations: 0.75 kB / 0.9129 GB, free: 12.37 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.6915, allocations: 0 / 0.9129 GB, free: 12.37 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.919e-05/0.6916, allocations: 65.06 kB / 0.913 GB, free: 12.29 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 3.229e-05/0.6917, allocations: 81.14 kB / 0.913 GB, free: 12.19 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.6917, allocations: 7.953 kB / 0.9131 GB, free: 12.18 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.618e-05/0.6918, allocations: 14.55 kB / 0.9131 GB, free: 12.17 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.349e-05/0.6918, allocations: 0 / 0.9131 GB, free: 12.17 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-06/0.6918, allocations: 0 / 0.9131 GB, free: 12.17 MB / 0.67 GB Notification: Performance of sorting global known variables: time 3.954e-05/0.6919, allocations: 83.28 kB / 0.9131 GB, free: 12.09 MB / 0.67 GB Notification: Performance of sort global known variables: time 1e-07/0.6919, allocations: 0 / 0.9131 GB, free: 12.09 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0001884/0.6921, allocations: 8 kB / 0.9132 GB, free: 12.08 MB / 0.67 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.0002989/0.6924, allocations: 0.6007 MB / 0.9137 GB, free: 11.45 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 7.131e-05/0.6924, allocations: 12 kB / 0.9138 GB, free: 11.44 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.6925, allocations: 0 / 0.9138 GB, free: 11.44 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 1.175e-05/0.6925, allocations: 7.984 kB / 0.9138 GB, free: 11.43 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002333/0.6927, allocations: 10.28 kB / 0.9138 GB, free: 11.43 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003574/0.6931, allocations: 150.8 kB / 0.9139 GB, free: 11.24 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.6933, allocations: 0.6768 MB / 0.9146 GB, free: 10.54 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 4.627e-05/0.6934, allocations: 4 kB / 0.9146 GB, free: 10.53 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.199e-05/0.6934, allocations: 7.438 kB / 0.9146 GB, free: 10.52 MB / 0.67 GB Notification: Performance of SimCode: time 2.1e-07/0.6934, allocations: 0 / 0.9146 GB, free: 10.52 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01674/0.7101, allocations: 1.394 MB / 0.9159 GB, free: 9.328 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.053/7.763, allocations: 10.23 kB / 0.916 GB, free: 9.32 MB / 0.67 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)