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.007242/0.007241, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001472/0.001472, allocations: 188.6 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002132/0.002132, allocations: 290.3 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9315/0.9315, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001854, allocations: 95.23 kB / 0.6809 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1791, allocations: 86.99 MB / 0.7659 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.5029/0.682, allocations: 148.3 MB / 0.9107 GB, free: 14.91 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0001415/0.6822, allocations: 56.38 kB / 0.9107 GB, free: 14.86 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.886e-05/0.6823, allocations: 0 / 0.9107 GB, free: 14.86 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.6824, allocations: 7.922 kB / 0.9107 GB, free: 14.86 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 6.85e-05/0.6825, allocations: 7.922 kB / 0.9107 GB, free: 14.85 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007456/0.6833, allocations: 211 kB / 0.9109 GB, free: 14.65 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 8.689e-05/0.6834, allocations: 31.91 kB / 0.911 GB, free: 14.62 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 3.999e-05/0.6834, allocations: 11.98 kB / 0.911 GB, free: 14.61 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 3.94e-05/0.6835, allocations: 15.88 kB / 0.911 GB, free: 14.59 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 7.082e-05/0.6835, allocations: 15.97 kB / 0.911 GB, free: 14.57 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.6836, allocations: 4 kB / 0.911 GB, free: 14.57 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004347/0.684, allocations: 187.5 kB / 0.9112 GB, free: 14.39 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 4.602e-05/0.6841, allocations: 7.984 kB / 0.9112 GB, free: 14.38 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 3.349e-05/0.6841, allocations: 11.94 kB / 0.9112 GB, free: 14.37 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.6844, allocations: 126.7 kB / 0.9113 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.6844, allocations: 0 / 0.9113 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.293e-06/0.6844, allocations: 0 / 0.9113 GB, free: 14.25 MB / 0.67 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.6844, allocations: 0 / 0.9113 GB, free: 14.25 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.0004203/0.6848, allocations: 348 kB / 0.9117 GB, free: 13.86 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.6849, allocations: 8.031 kB / 0.9117 GB, free: 13.85 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.917e-05/0.6849, allocations: 30.75 kB / 0.9117 GB, free: 13.81 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003373/0.6853, allocations: 24.91 kB / 0.9117 GB, free: 13.79 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.6854, allocations: 164.4 kB / 0.9119 GB, free: 13.59 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.456e-05/0.6855, allocations: 33.64 kB / 0.9119 GB, free: 13.55 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.6855, allocations: 7.984 kB / 0.9119 GB, free: 13.54 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001471/0.6856, allocations: 50.3 kB / 0.912 GB, free: 13.49 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.6857, allocations: 0 / 0.912 GB, free: 13.49 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.6857, allocations: 4 kB / 0.912 GB, free: 13.48 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.6857, allocations: 4 kB / 0.912 GB, free: 13.48 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.431e-05/0.6858, allocations: 19.98 kB / 0.912 GB, free: 13.46 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003611/0.6861, allocations: 264.8 kB / 0.9123 GB, free: 13.15 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 5.066e-05/0.6862, allocations: 22.52 kB / 0.9123 GB, free: 13.12 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.309e-05/0.6862, allocations: 8.922 kB / 0.9123 GB, free: 13.11 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001576/0.6864, allocations: 93.09 kB / 0.9124 GB, free: 13 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.6864, allocations: 36.31 kB / 0.9124 GB, free: 12.96 MB / 0.67 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.6864, allocations: 3.938 kB / 0.9124 GB, free: 12.95 MB / 0.67 GB Notification: Performance of matching and sorting (n=2): time 0.0002434/0.6867, allocations: 53.59 kB / 0.9125 GB, free: 12.89 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.6867, allocations: 51.41 kB / 0.9125 GB, free: 12.83 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.073e-05/0.6868, allocations: 109.8 kB / 0.9126 GB, free: 12.71 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.6869, allocations: 25.7 kB / 0.9126 GB, free: 12.68 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 4.602e-05/0.6869, allocations: 91.97 kB / 0.9127 GB, free: 12.59 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 6.141e-06/0.6869, allocations: 0.875 kB / 0.9127 GB, free: 12.59 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.444e-05/0.687, allocations: 25.62 kB / 0.9128 GB, free: 12.56 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 9.952e-05/0.6871, allocations: 318.8 kB / 0.9131 GB, free: 12.24 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.534e-05/0.6871, allocations: 0 / 0.9131 GB, free: 12.24 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.507e-05/0.6871, allocations: 26.58 kB / 0.9131 GB, free: 12.2 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.804e-05/0.6872, allocations: 34.56 kB / 0.9131 GB, free: 12.16 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.6872, allocations: 3.938 kB / 0.9131 GB, free: 12.16 MB / 0.67 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.041e-05/0.6873, allocations: 53.62 kB / 0.9132 GB, free: 12.1 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.6873, allocations: 5.312 kB / 0.9132 GB, free: 12.09 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.6873, allocations: 0 / 0.9132 GB, free: 12.09 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.6874, allocations: 4 kB / 0.9132 GB, free: 12.09 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.555e-05/0.6874, allocations: 4 kB / 0.9132 GB, free: 12.09 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.6874, allocations: 3.938 kB / 0.9132 GB, free: 12.08 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.876e-05/0.6875, allocations: 8.094 kB / 0.9132 GB, free: 12.07 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.238e-06/0.6875, allocations: 0 / 0.9132 GB, free: 12.07 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.085e-05/0.6875, allocations: 114.5 kB / 0.9133 GB, free: 11.95 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.556e-05/0.6876, allocations: 0 / 0.9133 GB, free: 11.95 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.492e-05/0.6876, allocations: 11.11 kB / 0.9133 GB, free: 11.95 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.6876, allocations: 0 / 0.9133 GB, free: 11.95 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.6876, allocations: 5.438 kB / 0.9133 GB, free: 11.94 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.6876, allocations: 0 / 0.9133 GB, free: 11.94 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.6879, allocations: 363.5 kB / 0.9137 GB, free: 11.52 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.6879, allocations: 5.859 kB / 0.9137 GB, free: 11.52 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.587e-05/0.688, allocations: 4 kB / 0.9137 GB, free: 11.52 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.688, allocations: 3.938 kB / 0.9137 GB, free: 11.51 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.415e-06/0.688, allocations: 4 kB / 0.9137 GB, free: 11.51 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.688, allocations: 0 / 0.9137 GB, free: 11.51 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.688, allocations: 0 / 0.9137 GB, free: 11.51 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.627e-05/0.6881, allocations: 70.28 kB / 0.9138 GB, free: 11.42 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 4.491e-05/0.6882, allocations: 92.97 kB / 0.9138 GB, free: 11.31 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.6882, allocations: 11.56 kB / 0.9139 GB, free: 11.3 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.064e-05/0.6883, allocations: 4 kB / 0.9139 GB, free: 11.3 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.6883, allocations: 3.984 kB / 0.9139 GB, free: 11.29 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.6883, allocations: 0 / 0.9139 GB, free: 11.29 MB / 0.67 GB Notification: Performance of sorting global known variables: time 3.991e-05/0.6883, allocations: 83.27 kB / 0.9139 GB, free: 11.21 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6883, allocations: 4.031 kB / 0.9139 GB, free: 11.21 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0001939/0.6885, allocations: 8 kB / 0.914 GB, free: 11.2 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.0003718/0.6889, allocations: 0.6093 MB / 0.9145 GB, free: 10.56 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 8.435e-05/0.689, allocations: 23.97 kB / 0.9146 GB, free: 10.54 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.689, allocations: 0 / 0.9146 GB, free: 10.54 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 1.086e-05/0.689, allocations: 7.938 kB / 0.9146 GB, free: 10.53 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.6893, allocations: 7.984 kB / 0.9146 GB, free: 10.52 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003831/0.6897, allocations: 147.8 kB / 0.9147 GB, free: 10.33 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.6899, allocations: 0.6807 MB / 0.9154 GB, free: 9.625 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 4.862e-05/0.69, allocations: 7.938 kB / 0.9154 GB, free: 9.617 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.439e-05/0.69, allocations: 15.44 kB / 0.9154 GB, free: 9.602 MB / 0.67 GB Notification: Performance of SimCode: time 2.8e-07/0.69, allocations: 0 / 0.9154 GB, free: 9.602 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02026/0.7103, allocations: 1.463 MB / 0.9168 GB, free: 8.273 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.99/7.7, allocations: 16.31 kB / 0.9169 GB, free: 8.262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)