Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="Buildings_10_Buildings_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="Buildings_10_Buildings_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.00142/0.00142, 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.001406/0.001406, allocations: 193.8 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.589/2.589, allocations: 437.1 MB / 0.7104 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 59.91 kB / 0.8693 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4926/0.4939, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1391/0.633, allocations: 148.3 MB / 1.162 GB, free: 13.66 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0001247/0.6332, allocations: 51.86 kB / 1.162 GB, free: 13.61 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.368e-05/0.6332, allocations: 4 kB / 1.162 GB, free: 13.61 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 8.962e-05/0.6333, allocations: 7.922 kB / 1.162 GB, free: 13.6 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.266e-05/0.6334, allocations: 7.922 kB / 1.162 GB, free: 13.59 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006473/0.6341, allocations: 215.1 kB / 1.162 GB, free: 13.38 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.157e-05/0.6341, allocations: 31.91 kB / 1.163 GB, free: 13.35 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.689e-05/0.6342, allocations: 11.92 kB / 1.163 GB, free: 13.34 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.346e-05/0.6342, allocations: 11.94 kB / 1.163 GB, free: 13.33 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.569e-05/0.6343, allocations: 15.97 kB / 1.163 GB, free: 13.31 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.347e-05/0.6343, allocations: 4 kB / 1.163 GB, free: 13.31 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003886/0.6347, allocations: 191.4 kB / 1.163 GB, free: 13.12 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.052e-05/0.6348, allocations: 15.97 kB / 1.163 GB, free: 13.11 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.622e-05/0.6348, allocations: 15.88 kB / 1.163 GB, free: 13.09 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.635, allocations: 118 kB / 1.163 GB, free: 12.98 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.635, allocations: 0 / 1.163 GB, free: 12.98 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.093e-06/0.635, allocations: 0 / 1.163 GB, free: 12.98 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.594e-06/0.6351, allocations: 0 / 1.163 GB, free: 12.98 MB / 0.92 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.0003394/0.6354, allocations: 347.4 kB / 1.163 GB, free: 12.59 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.6354, allocations: 8.031 kB / 1.163 GB, free: 12.58 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.113e-05/0.6355, allocations: 30.75 kB / 1.163 GB, free: 12.54 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003002/0.6358, allocations: 28.91 kB / 1.163 GB, free: 12.52 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.138e-05/0.6359, allocations: 172.1 kB / 1.163 GB, free: 12.31 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.827e-05/0.6359, allocations: 25.7 kB / 1.163 GB, free: 12.28 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.414e-06/0.636, allocations: 4 kB / 1.163 GB, free: 12.27 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001191/0.6361, allocations: 49.67 kB / 1.164 GB, free: 12.22 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.6361, allocations: 0 / 1.164 GB, free: 12.22 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.6361, allocations: 0 / 1.164 GB, free: 12.22 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.6361, allocations: 4 kB / 1.164 GB, free: 12.21 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.235e-05/0.6362, allocations: 19.98 kB / 1.164 GB, free: 12.2 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003023/0.6365, allocations: 264.8 kB / 1.164 GB, free: 11.89 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.346e-05/0.6366, allocations: 22.52 kB / 1.164 GB, free: 11.86 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.086e-05/0.6366, allocations: 12.92 kB / 1.164 GB, free: 11.84 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001396/0.6367, allocations: 89.09 kB / 1.164 GB, free: 11.73 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.951e-05/0.6368, allocations: 34.56 kB / 1.164 GB, free: 11.69 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.153e-06/0.6368, allocations: 0 / 1.164 GB, free: 11.69 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0002236/0.637, allocations: 53.62 kB / 1.164 GB, free: 11.63 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.637, allocations: 55.34 kB / 1.164 GB, free: 11.57 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.388e-05/0.6371, allocations: 109.8 kB / 1.164 GB, free: 11.45 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.6371, allocations: 25.7 kB / 1.164 GB, free: 11.42 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.897e-05/0.6372, allocations: 88.11 kB / 1.164 GB, free: 11.33 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 8.416e-06/0.6372, allocations: 11.84 kB / 1.164 GB, free: 11.32 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/0.6372, allocations: 17.72 kB / 1.164 GB, free: 11.29 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.232e-05/0.6373, allocations: 318.8 kB / 1.165 GB, free: 10.97 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.547e-05/0.6373, allocations: 4 kB / 1.165 GB, free: 10.97 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.469e-05/0.6374, allocations: 22.58 kB / 1.165 GB, free: 10.94 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.278e-05/0.6374, allocations: 38.5 kB / 1.165 GB, free: 10.89 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.6374, allocations: 0 / 1.165 GB, free: 10.89 MB / 0.92 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8e-05/0.6375, allocations: 53.62 kB / 1.165 GB, free: 10.83 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.6375, allocations: 4 kB / 1.165 GB, free: 10.83 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.6375, allocations: 0 / 1.165 GB, free: 10.83 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.6375, allocations: 4 kB / 1.165 GB, free: 10.82 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.358e-05/0.6376, allocations: 4 kB / 1.165 GB, free: 10.82 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.6376, allocations: 7.922 kB / 1.165 GB, free: 10.81 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.946e-05/0.6376, allocations: 8.094 kB / 1.165 GB, free: 10.8 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.13e-06/0.6377, allocations: 7.938 kB / 1.165 GB, free: 10.8 MB / 0.92 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 5.998e-05/0.6377, allocations: 109.8 kB / 1.165 GB, free: 10.68 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.831e-05/0.6378, allocations: 3.906 kB / 1.165 GB, free: 10.68 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.11e-05/0.6378, allocations: 11.11 kB / 1.165 GB, free: 10.66 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.6378, allocations: 4 kB / 1.165 GB, free: 10.66 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.6378, allocations: 3.938 kB / 1.165 GB, free: 10.66 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.6378, allocations: 0 / 1.165 GB, free: 10.66 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000256/0.6381, allocations: 363.6 kB / 1.165 GB, free: 10.24 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.6381, allocations: 0 / 1.165 GB, free: 10.24 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.977e-05/0.6381, allocations: 7.938 kB / 1.165 GB, free: 10.23 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.6381, allocations: 4 kB / 1.165 GB, free: 10.23 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.739e-06/0.6381, allocations: 3.938 kB / 1.165 GB, free: 10.22 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.6381, allocations: 4 kB / 1.165 GB, free: 10.22 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.6381, allocations: 0 / 1.165 GB, free: 10.22 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.37e-05/0.6382, allocations: 78.05 kB / 1.165 GB, free: 10.12 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.039e-05/0.6383, allocations: 85.05 kB / 1.165 GB, free: 10.02 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.6383, allocations: 0 / 1.165 GB, free: 10.02 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.359e-05/0.6384, allocations: 4 kB / 1.165 GB, free: 10.02 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.028e-05/0.6384, allocations: 0 / 1.165 GB, free: 10.02 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-06/0.6384, allocations: 0 / 1.165 GB, free: 10.02 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.486e-05/0.6384, allocations: 83.3 kB / 1.165 GB, free: 9.934 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.263e-06/0.6384, allocations: 4 kB / 1.165 GB, free: 9.93 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000211/0.6387, allocations: 15.94 kB / 1.165 GB, free: 9.914 MB / 0.92 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.0003034/0.639, allocations: 0.6132 MB / 1.166 GB, free: 9.27 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 7.267e-05/0.6391, allocations: 19.94 kB / 1.166 GB, free: 9.25 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.6391, allocations: 0 / 1.166 GB, free: 9.25 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.064e-05/0.6391, allocations: 4 kB / 1.166 GB, free: 9.246 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.6393, allocations: 15.5 kB / 1.166 GB, free: 9.234 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000329/0.6396, allocations: 145.4 kB / 1.166 GB, free: 9.051 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001884/0.6398, allocations: 0.6768 MB / 1.167 GB, free: 8.348 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 5.598e-05/0.6399, allocations: 8.406 kB / 1.167 GB, free: 8.34 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.625e-05/0.6399, allocations: 7.438 kB / 1.167 GB, free: 8.332 MB / 0.92 GB Notification: Performance of SimCode: time 2.3e-07/0.6399, allocations: 0 / 1.167 GB, free: 8.332 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01578/0.6557, allocations: 1.422 MB / 1.168 GB, free: 6.984 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.147/7.803, allocations: 16.39 kB / 1.168 GB, free: 6.973 MB / 0.92 GB (rm -f Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.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 Buildings_10_Buildings_Media_Examples_AirTemperatureEnthalpyInversion.fmu > Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_AirTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches