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.006796/0.006796, allocations: 99.41 kB / 15.73 MB, free: 6.008 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.001629/0.001629, allocations: 191.1 kB / 16.67 MB, free: 5.934 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.17/2.17, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002297/0.002297, allocations: 59.91 kB / 0.9504 GB, free: 8.199 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8039/0.8062, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.173/0.9793, allocations: 148.3 MB / 1.232 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0001604/0.9795, allocations: 54.7 kB / 1.232 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.682e-05/0.9795, allocations: 1.219 kB / 1.232 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.9797, allocations: 3.938 kB / 1.232 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.192e-05/0.9798, allocations: 19.5 kB / 1.232 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007881/0.9806, allocations: 217.3 kB / 1.233 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.201e-05/0.9807, allocations: 33.88 kB / 1.233 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.864e-05/0.9807, allocations: 1.062 kB / 1.233 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.108e-05/0.9808, allocations: 21.56 kB / 1.233 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.915e-05/0.9808, allocations: 14.17 kB / 1.233 GB, free: 5.859 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.156e-05/0.9809, allocations: 5.25 kB / 1.233 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004123/0.9813, allocations: 197.8 kB / 1.233 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.196e-05/0.9813, allocations: 6.609 kB / 1.233 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.9814, allocations: 13.47 kB / 1.233 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002437/0.9816, allocations: 111.6 kB / 1.233 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.9816, allocations: 1.094 kB / 1.233 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.012e-06/0.9816, allocations: 0 / 1.233 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.696e-06/0.9816, allocations: 0 / 1.233 GB, free: 5.676 MB / 0.9669 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.0003751/0.982, allocations: 346.9 kB / 1.233 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.9821, allocations: 13.84 kB / 1.233 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.236e-05/0.9821, allocations: 31.81 kB / 1.233 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000301/0.9824, allocations: 23.81 kB / 1.233 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.9825, allocations: 169.1 kB / 1.233 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.203e-05/0.9826, allocations: 30.73 kB / 1.234 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.145e-05/0.9826, allocations: 0.9062 kB / 1.234 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.9827, allocations: 50.45 kB / 1.234 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.9828, allocations: 4 kB / 1.234 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.9828, allocations: 5.125 kB / 1.234 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.9828, allocations: 1.094 kB / 1.234 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.166e-05/0.9829, allocations: 25.64 kB / 1.234 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000314/0.9832, allocations: 260.8 kB / 1.234 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.276e-05/0.9832, allocations: 31.2 kB / 1.234 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.08e-05/0.9833, allocations: 11.11 kB / 1.234 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001436/0.9834, allocations: 95.78 kB / 1.234 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.9834, allocations: 30.56 kB / 1.234 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.9835, allocations: 1.25 kB / 1.234 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0002338/0.9837, allocations: 55.39 kB / 1.234 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.319e-05/0.9837, allocations: 60.66 kB / 1.234 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.995e-05/0.9838, allocations: 99.44 kB / 1.234 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.9838, allocations: 29.7 kB / 1.234 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.913e-05/0.9839, allocations: 85.28 kB / 1.234 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.544e-06/0.9839, allocations: 6.109 kB / 1.234 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/0.9839, allocations: 17.16 kB / 1.234 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 8.925e-05/0.984, allocations: 320 kB / 1.235 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.632e-05/0.984, allocations: 3 kB / 1.235 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.88e-05/0.9841, allocations: 31.53 kB / 1.235 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.425e-05/0.9841, allocations: 35 kB / 1.235 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.9841, allocations: 0 / 1.235 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.805e-05/0.9842, allocations: 49.95 kB / 1.235 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.9842, allocations: 5.562 kB / 1.235 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.9843, allocations: 9.109 kB / 1.235 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.9843, allocations: 1.156 kB / 1.235 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.434e-05/0.9843, allocations: 5.625 kB / 1.235 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.9843, allocations: 4.938 kB / 1.235 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.795e-05/0.9844, allocations: 1.125 kB / 1.235 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.9844, allocations: 2.375 kB / 1.235 GB, free: 3.672 MB / 0.9669 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.674e-05/0.9845, allocations: 112.1 kB / 1.235 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.845e-05/0.9845, allocations: 1.219 kB / 1.235 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.867e-05/0.9845, allocations: 12.5 kB / 1.235 GB, free: 3.543 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.9845, allocations: 3.984 kB / 1.235 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.9845, allocations: 4.781 kB / 1.235 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.9845, allocations: 3.938 kB / 1.235 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002635/0.9848, allocations: 361 kB / 1.235 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.9848, allocations: 1.031 kB / 1.235 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.145e-05/0.9849, allocations: 15.3 kB / 1.235 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.9849, allocations: 0 / 1.235 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-06/0.9849, allocations: 5.219 kB / 1.235 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.9849, allocations: 1.188 kB / 1.235 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.9849, allocations: 0 / 1.235 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.132e-05/0.985, allocations: 64.41 kB / 1.235 GB, free: 3.039 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.553e-05/0.985, allocations: 86.06 kB / 1.235 GB, free: 2.938 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.985, allocations: 5 kB / 1.235 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.664e-05/0.9851, allocations: 15.31 kB / 1.235 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.012e-05/0.9851, allocations: 1.062 kB / 1.235 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.9851, allocations: 1.375 kB / 1.235 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.61e-05/0.9852, allocations: 82.42 kB / 1.236 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9852, allocations: 0 / 1.236 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002006/0.9854, allocations: 7.688 kB / 1.236 GB, free: 2.844 MB / 0.9669 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.0003227/0.9857, allocations: 0.617 MB / 1.236 GB, free: 2.223 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 8.145e-05/0.9858, allocations: 18.84 kB / 1.236 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.9858, allocations: 0 / 1.236 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.052e-05/0.9858, allocations: 3.75 kB / 1.236 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.9861, allocations: 15.2 kB / 1.236 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003527/0.9864, allocations: 145.2 kB / 1.236 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002086/0.9867, allocations: 0.6781 MB / 1.237 GB, free: 1.344 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.929e-05/0.9867, allocations: 8.328 kB / 1.237 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.916e-05/0.9868, allocations: 8.469 kB / 1.237 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of SimCode: time 2.61e-07/0.9868, allocations: 0 / 1.237 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01513/1.002, allocations: 1.45 MB / 1.238 GB, free: 0.5234 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.202/8.204, allocations: 9.734 kB / 1.238 GB, free: 0.5195 MB / 0.9669 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