Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_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.001131/0.001131, allocations: 108 kB / 15.61 MB, free: 152 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.001165/0.001165, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.336/1.336, 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 9.1.3-maint.9.1.x/package.mo): time 2.3/2.3, allocations: 390.3 MB / 0.6647 GB, free: 488 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.001321, allocations: 59.91 kB / 0.8126 GB, free: 14.42 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5235/0.5248, allocations: 140.4 MB / 0.9497 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1403/0.6652, allocations: 148.3 MB / 1.095 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001275/0.6653, allocations: 59.72 kB / 1.095 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.174e-05/0.6653, allocations: 0 / 1.095 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.639e-05/0.6655, allocations: 4 kB / 1.095 GB, free: 13 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.545e-05/0.6656, allocations: 15.86 kB / 1.095 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006955/0.6663, allocations: 219.1 kB / 1.095 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.081e-05/0.6663, allocations: 31.92 kB / 1.095 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.086e-05/0.6664, allocations: 0 / 1.095 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.503e-05/0.6664, allocations: 19.97 kB / 1.095 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.708e-05/0.6665, allocations: 11.88 kB / 1.095 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.6665, allocations: 4 kB / 1.095 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004113/0.6669, allocations: 199.5 kB / 1.095 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.619e-05/0.667, allocations: 7.984 kB / 1.095 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.114e-05/0.667, allocations: 19.91 kB / 1.095 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002374/0.6673, allocations: 102 kB / 1.095 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.6673, allocations: 4 kB / 1.095 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.042e-06/0.6673, allocations: 0 / 1.095 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.6673, allocations: 4 kB / 1.095 GB, free: 12.38 MB / 0.8575 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.0003366/0.6676, allocations: 343.4 kB / 1.096 GB, free: 12 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.6677, allocations: 16.03 kB / 1.096 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.044e-05/0.6677, allocations: 30.75 kB / 1.096 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003031/0.668, allocations: 20.91 kB / 1.096 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.509e-05/0.6681, allocations: 172.1 kB / 1.096 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.163e-05/0.6682, allocations: 29.69 kB / 1.096 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.093e-05/0.6682, allocations: 3.984 kB / 1.096 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.6683, allocations: 49.62 kB / 1.096 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.6683, allocations: 4 kB / 1.096 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.6684, allocations: 4 kB / 1.096 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.6684, allocations: 0 / 1.096 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.184e-05/0.6684, allocations: 19.98 kB / 1.096 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003081/0.6688, allocations: 260.8 kB / 1.096 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.849e-05/0.6688, allocations: 26.58 kB / 1.096 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.862e-05/0.6688, allocations: 4.859 kB / 1.096 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001511/0.669, allocations: 105.1 kB / 1.096 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.669, allocations: 30.56 kB / 1.096 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.669, allocations: 0 / 1.096 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0002251/0.6693, allocations: 49.69 kB / 1.096 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.767e-05/0.6693, allocations: 55.47 kB / 1.096 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.353e-05/0.6694, allocations: 101.8 kB / 1.096 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.6694, allocations: 29.7 kB / 1.096 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.032e-05/0.6694, allocations: 91.98 kB / 1.097 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.814e-06/0.6695, allocations: 7.891 kB / 1.097 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.135e-05/0.6695, allocations: 17.72 kB / 1.097 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.62e-05/0.6696, allocations: 310.8 kB / 1.097 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.841e-05/0.6696, allocations: 4 kB / 1.097 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.85e-05/0.6696, allocations: 34.5 kB / 1.097 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.059e-05/0.6697, allocations: 30.52 kB / 1.097 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.6697, allocations: 0 / 1.097 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.117e-05/0.6698, allocations: 53.62 kB / 1.097 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.6698, allocations: 13.5 kB / 1.097 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.6698, allocations: 4.094 kB / 1.097 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.6698, allocations: 0 / 1.097 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.82e-05/0.6699, allocations: 11.94 kB / 1.097 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.6699, allocations: 3.938 kB / 1.097 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.846e-05/0.6699, allocations: 0 / 1.097 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.67, allocations: 4 kB / 1.097 GB, free: 10.2 MB / 0.8575 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 6.658e-05/0.67, allocations: 113.8 kB / 1.097 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.936e-05/0.6701, allocations: 4 kB / 1.097 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.797e-05/0.6701, allocations: 3.125 kB / 1.097 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.6701, allocations: 4 kB / 1.097 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.6701, allocations: 3.938 kB / 1.097 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-06/0.6701, allocations: 0 / 1.097 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000266/0.6704, allocations: 371.5 kB / 1.098 GB, free: 9.641 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.6704, allocations: 0 / 1.098 GB, free: 9.641 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.047e-05/0.6704, allocations: 7.938 kB / 1.098 GB, free: 9.633 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.6704, allocations: 0 / 1.098 GB, free: 9.633 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-06/0.6704, allocations: 4.062 kB / 1.098 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.6704, allocations: 0 / 1.098 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.6705, allocations: 4.281 kB / 1.098 GB, free: 9.625 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.635e-05/0.6705, allocations: 73.92 kB / 1.098 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.248e-05/0.6706, allocations: 85.03 kB / 1.098 GB, free: 9.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.6706, allocations: 4 kB / 1.098 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.995e-05/0.6707, allocations: 8.016 kB / 1.098 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.59e-05/0.6707, allocations: 8 kB / 1.098 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.6707, allocations: 0 / 1.098 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.263e-05/0.6708, allocations: 79.28 kB / 1.098 GB, free: 9.332 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6708, allocations: 0 / 1.098 GB, free: 9.332 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002112/0.671, allocations: 4 kB / 1.098 GB, free: 9.328 MB / 0.8575 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.0003083/0.6713, allocations: 0.6171 MB / 1.098 GB, free: 8.676 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 7.198e-05/0.6714, allocations: 11.98 kB / 1.098 GB, free: 8.664 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.6714, allocations: 0 / 1.098 GB, free: 8.664 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.399e-05/0.6714, allocations: 11.94 kB / 1.098 GB, free: 8.652 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002262/0.6716, allocations: 12.28 kB / 1.098 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003388/0.672, allocations: 141.2 kB / 1.099 GB, free: 8.461 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001826/0.6722, allocations: 0.6807 MB / 1.099 GB, free: 7.754 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.901e-05/0.6723, allocations: 19.86 kB / 1.099 GB, free: 7.734 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.585e-05/0.6723, allocations: 7.438 kB / 1.099 GB, free: 7.727 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/0.6723, allocations: 0 / 1.099 GB, free: 7.727 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.6882, allocations: 1.422 MB / 1.101 GB, free: 6.379 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.154/7.842, allocations: 5.953 kB / 1.101 GB, free: 6.375 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Media_Examples_AirTemperatureEnthalpyInversion.fmu > Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches