Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 108.5 kB / 16.41 MB, free: 6.41 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.001444/0.001444, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.362/1.362, allocations: 222.9 MB / 241 MB, free: 15.16 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.269/2.269, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 63.91 kB / 0.9515 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7528/0.7543, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004846/0.7592, allocations: 4.011 MB / 1.093 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0001882/0.7594, allocations: 162.7 kB / 1.093 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.611e-05/0.7594, allocations: 0 / 1.093 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.7595, allocations: 0.7969 kB / 1.093 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.465e-05/0.7596, allocations: 14.19 kB / 1.093 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003386/0.76, allocations: 82.53 kB / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.777e-05/0.7601, allocations: 33.31 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.107e-05/0.7601, allocations: 2.484 kB / 1.093 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.296e-05/0.7602, allocations: 15.55 kB / 1.093 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.026e-05/0.7602, allocations: 20.69 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.301e-05/0.7603, allocations: 1.156 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.7605, allocations: 52.98 kB / 1.093 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.254e-05/0.7605, allocations: 17.02 kB / 1.093 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.006e-05/0.7605, allocations: 9.734 kB / 1.093 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.7607, allocations: 41.88 kB / 1.093 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.7607, allocations: 0.7188 kB / 1.093 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7607, allocations: 0 / 1.093 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.664e-06/0.7607, allocations: 0 / 1.093 GB, free: 2.379 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000306/0.761, allocations: 333.4 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.7611, allocations: 9.625 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.756e-05/0.7611, allocations: 2.656 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.622e-05/0.7612, allocations: 166.9 kB / 1.093 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.816e-05/0.7612, allocations: 31.42 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.16e-05/0.7612, allocations: 1.812 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.7614, allocations: 56.03 kB / 1.094 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.7614, allocations: 3.938 kB / 1.094 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.7614, allocations: 0.9688 kB / 1.094 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.7614, allocations: 1.594 kB / 1.094 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.569e-05/0.7615, allocations: 12.14 kB / 1.094 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003491/0.7618, allocations: 336.5 kB / 1.094 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.299e-05/0.7619, allocations: 21.97 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.426e-05/0.7619, allocations: 14.08 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.589e-05/0.762, allocations: 84.2 kB / 1.094 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.848e-05/0.762, allocations: 32.33 kB / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.762, allocations: 0 / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001308/0.7621, allocations: 36.89 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.014e-05/0.7622, allocations: 52.92 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.448e-05/0.7622, allocations: 103.2 kB / 1.094 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.7622, allocations: 25.7 kB / 1.094 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.843e-05/0.7623, allocations: 91.55 kB / 1.094 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.149e-06/0.7623, allocations: 5.672 kB / 1.094 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.731e-05/0.7623, allocations: 15.02 kB / 1.094 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.051e-05/0.7624, allocations: 316.2 kB / 1.095 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.52e-05/0.7624, allocations: 15.45 kB / 1.095 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.181e-05/0.7624, allocations: 15.28 kB / 1.095 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.01e-05/0.7624, allocations: 21.38 kB / 1.095 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.7624, allocations: 3.938 kB / 1.095 GB, free: 500 kB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.262e-05/0.7625, allocations: 50.41 kB / 1.095 GB, free: 460 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.7625, allocations: 5 kB / 1.095 GB, free: 460 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.7626, allocations: 5.781 kB / 1.095 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.7626, allocations: 5.25 kB / 1.095 GB, free: 452 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.259e-05/0.7626, allocations: 5.672 kB / 1.095 GB, free: 452 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.7626, allocations: 5.391 kB / 1.095 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.7627, allocations: 3.938 kB / 1.095 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.7627, allocations: 3.375 kB / 1.095 GB, free: 444 kB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (3): * Single equations (assignments): 3 * 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 4.392e-05/0.7627, allocations: 111.7 kB / 1.095 GB, free: 324 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.682e-05/0.7628, allocations: 2.312 kB / 1.095 GB, free: 324 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.185e-05/0.7628, allocations: 126.5 kB / 1.095 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.337e-05/0.7629, allocations: 178.1 kB / 1.095 GB, free: 4 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-05/0.763, allocations: 181.8 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.453e-05/0.763, allocations: 177 kB / 1.095 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002211/0.7633, allocations: 412.3 kB / 1.096 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.042e-05/0.7633, allocations: 110.7 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.449e-05/0.7633, allocations: 106.7 kB / 1.096 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.49e-05/0.7634, allocations: 182.1 kB / 1.096 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.449e-05/0.7635, allocations: 178.5 kB / 1.096 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.544e-05/0.7635, allocations: 185 kB / 1.097 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.965e-05/0.7636, allocations: 178.1 kB / 1.097 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001303/0.7637, allocations: 313.5 kB / 1.097 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.301e-05/0.7638, allocations: 184.7 kB / 1.097 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.277e-05/0.7639, allocations: 183.5 kB / 1.097 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.7641, allocations: 104.9 kB / 1.098 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.511e-05/0.7641, allocations: 181.9 kB / 1.098 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.103e-05/0.7642, allocations: 106.7 kB / 1.098 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.834e-05/0.7642, allocations: 86.16 kB / 1.098 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7642, allocations: 1.438 kB / 1.098 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002541/0.7645, allocations: 15.47 kB / 1.098 GB, free: 13.04 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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.000269/0.7648, allocations: 203.7 kB / 1.098 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 9.265e-05/0.7649, allocations: 7.562 kB / 1.098 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.7649, allocations: 1.031 kB / 1.098 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 4.539e-06/0.7649, allocations: 3.938 kB / 1.098 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003988/0.7653, allocations: 461.3 kB / 1.099 GB, free: 12.42 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002817/0.7656, allocations: 214.8 kB / 1.099 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/0.7659, allocations: 0.6739 MB / 1.099 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.367e-05/0.7659, allocations: 10.8 kB / 1.099 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of SimCode: time 1.9e-07/0.7659, allocations: 0 / 1.099 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of Templates: time 0.002402/0.7683, allocations: 0.7597 MB / 1.1 GB, free: 11.43 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches