Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.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.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion",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.005359/0.005359, allocations: 96.98 kB / 15.73 MB, free: 5.988 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.001493/0.001493, allocations: 188.1 kB / 16.67 MB, free: 5.918 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.36/1.36, 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.002361/0.002361, allocations: 286.8 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9797/0.9797, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002653/0.002653, allocations: 95.92 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1551, allocations: 86.98 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.4474/0.6025, allocations: 148.3 MB / 0.9107 GB, free: 14.89 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0001272/0.6027, allocations: 56.3 kB / 0.9107 GB, free: 14.84 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.501e-05/0.6027, allocations: 0 / 0.9107 GB, free: 14.84 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 9.344e-05/0.6028, allocations: 4 kB / 0.9107 GB, free: 14.84 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 6.511e-05/0.6029, allocations: 11.91 kB / 0.9108 GB, free: 14.83 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006757/0.6036, allocations: 213.1 kB / 0.911 GB, free: 14.62 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 8.291e-05/0.6037, allocations: 36.69 kB / 0.911 GB, free: 14.59 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 3.273e-05/0.6037, allocations: 4 kB / 0.911 GB, free: 14.58 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 3.493e-05/0.6038, allocations: 15.92 kB / 0.911 GB, free: 14.57 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 5.561e-05/0.6038, allocations: 7.984 kB / 0.911 GB, free: 14.56 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.293e-05/0.6038, allocations: 4 kB / 0.911 GB, free: 14.55 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004014/0.6043, allocations: 199.4 kB / 0.9112 GB, free: 14.36 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 4.085e-05/0.6043, allocations: 11.97 kB / 0.9112 GB, free: 14.35 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 2.79e-05/0.6043, allocations: 11.94 kB / 0.9112 GB, free: 14.34 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.6046, allocations: 119.1 kB / 0.9113 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.6046, allocations: 5.156 kB / 0.9114 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.172e-06/0.6046, allocations: 0 / 0.9114 GB, free: 14.22 MB / 0.67 GB Notification: Performance of Transformations before backend: time 8.126e-06/0.6046, allocations: 0 / 0.9114 GB, free: 14.22 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.0003999/0.605, allocations: 341.2 kB / 0.9117 GB, free: 13.84 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.6051, allocations: 8.031 kB / 0.9117 GB, free: 13.84 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.718e-05/0.6051, allocations: 38.73 kB / 0.9117 GB, free: 13.79 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002797/0.6054, allocations: 24.91 kB / 0.9117 GB, free: 13.77 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.6055, allocations: 168.3 kB / 0.9119 GB, free: 13.56 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.738e-05/0.6056, allocations: 33.64 kB / 0.9119 GB, free: 13.52 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.6056, allocations: 0 / 0.9119 GB, free: 13.52 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.6057, allocations: 45.69 kB / 0.912 GB, free: 13.47 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.6058, allocations: 0 / 0.912 GB, free: 13.47 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.6058, allocations: 0 / 0.912 GB, free: 13.47 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.6058, allocations: 10.05 kB / 0.912 GB, free: 13.46 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.386e-05/0.6059, allocations: 23.92 kB / 0.912 GB, free: 13.44 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003437/0.6062, allocations: 260.9 kB / 0.9123 GB, free: 13.14 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 5.545e-05/0.6063, allocations: 26.56 kB / 0.9123 GB, free: 13.1 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.22e-05/0.6063, allocations: 8.922 kB / 0.9123 GB, free: 13.09 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001538/0.6065, allocations: 89.09 kB / 0.9124 GB, free: 12.98 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.6065, allocations: 38.56 kB / 0.9124 GB, free: 12.94 MB / 0.67 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.6065, allocations: 3.938 kB / 0.9124 GB, free: 12.93 MB / 0.67 GB Notification: Performance of matching and sorting (n=2): time 0.0002287/0.6067, allocations: 57.61 kB / 0.9125 GB, free: 12.87 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.6068, allocations: 51.41 kB / 0.9125 GB, free: 12.81 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.097e-05/0.6069, allocations: 105.8 kB / 0.9126 GB, free: 12.7 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.6069, allocations: 25.7 kB / 0.9127 GB, free: 12.66 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 5.899e-05/0.607, allocations: 88.09 kB / 0.9127 GB, free: 12.57 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 7.033e-06/0.607, allocations: 8.078 kB / 0.9127 GB, free: 12.57 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/0.607, allocations: 17.72 kB / 0.9128 GB, free: 12.54 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.6072, allocations: 314.8 kB / 0.9131 GB, free: 12.23 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.699e-05/0.6072, allocations: 3.984 kB / 0.9131 GB, free: 12.22 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.964e-05/0.6072, allocations: 26.58 kB / 0.9131 GB, free: 12.19 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.073e-05/0.6073, allocations: 34.52 kB / 0.9131 GB, free: 12.14 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.6073, allocations: 0 / 0.9131 GB, free: 12.14 MB / 0.67 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.401e-05/0.6074, allocations: 53.62 kB / 0.9132 GB, free: 12.09 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.6074, allocations: 4 kB / 0.9132 GB, free: 12.08 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.6074, allocations: 3.938 kB / 0.9132 GB, free: 12.08 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.6074, allocations: 4 kB / 0.9132 GB, free: 12.07 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.254e-05/0.6075, allocations: 7.984 kB / 0.9132 GB, free: 12.07 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.6075, allocations: 3.938 kB / 0.9132 GB, free: 12.06 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.678e-05/0.6075, allocations: 12.03 kB / 0.9132 GB, free: 12.05 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-06/0.6075, allocations: 1.641 kB / 0.9132 GB, free: 12.05 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.55e-05/0.6076, allocations: 114.4 kB / 0.9133 GB, free: 11.93 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.6076, allocations: 7.953 kB / 0.9133 GB, free: 11.92 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.711e-05/0.6077, allocations: 3.125 kB / 0.9133 GB, free: 11.92 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.6077, allocations: 4 kB / 0.9133 GB, free: 11.92 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.6077, allocations: 3.938 kB / 0.9133 GB, free: 11.91 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.6077, allocations: 0 / 0.9133 GB, free: 11.91 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003111/0.608, allocations: 367.6 kB / 0.9137 GB, free: 11.49 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.608, allocations: 0 / 0.9137 GB, free: 11.49 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.688e-05/0.6081, allocations: 4.562 kB / 0.9137 GB, free: 11.49 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.6081, allocations: 3.938 kB / 0.9137 GB, free: 11.48 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-06/0.6081, allocations: 7.984 kB / 0.9137 GB, free: 11.48 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.6081, allocations: 0 / 0.9137 GB, free: 11.48 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.6081, allocations: 1.75 kB / 0.9137 GB, free: 11.48 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.773e-05/0.6082, allocations: 70 kB / 0.9138 GB, free: 11.39 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 4.592e-05/0.6082, allocations: 89 kB / 0.9139 GB, free: 11.28 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.6083, allocations: 7.922 kB / 0.9139 GB, free: 11.27 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.066e-05/0.6083, allocations: 4 kB / 0.9139 GB, free: 11.27 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.194e-05/0.6084, allocations: 4 kB / 0.9139 GB, free: 11.27 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.6084, allocations: 0 / 0.9139 GB, free: 11.27 MB / 0.67 GB Notification: Performance of sorting global known variables: time 4.811e-05/0.6084, allocations: 83.27 kB / 0.914 GB, free: 11.18 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6084, allocations: 4.031 kB / 0.914 GB, free: 11.18 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0001907/0.6086, allocations: 8 kB / 0.914 GB, free: 11.17 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0004095/0.609, allocations: 0.6094 MB / 0.9146 GB, free: 10.53 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 8.414e-05/0.6091, allocations: 15.94 kB / 0.9146 GB, free: 10.52 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.6091, allocations: 0 / 0.9146 GB, free: 10.52 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 1.469e-05/0.6092, allocations: 11.94 kB / 0.9146 GB, free: 10.5 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.6094, allocations: 7.438 kB / 0.9146 GB, free: 10.5 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003749/0.6098, allocations: 160.4 kB / 0.9147 GB, free: 10.3 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.6101, allocations: 0.6768 MB / 0.9154 GB, free: 9.598 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 4.773e-05/0.6101, allocations: 8.406 kB / 0.9154 GB, free: 9.59 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.876e-05/0.6102, allocations: 7.438 kB / 0.9154 GB, free: 9.582 MB / 0.67 GB Notification: Performance of SimCode: time 3.31e-07/0.6102, allocations: 0 / 0.9154 GB, free: 9.582 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.6326, allocations: 1.472 MB / 0.9169 GB, free: 8.246 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.232/7.865, allocations: 11.81 kB / 0.9169 GB, free: 8.234 MB / 0.67 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion_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_Examples_AirTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)