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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001084/0.001084, allocations: 92.23 kB / 16.02 MB, free: 80 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.00138/0.001381, allocations: 176.6 kB / 16.92 MB, free: 6.648 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.482/1.482, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.38/2.38, allocations: 390.9 MB / 0.667 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003421/0.0003421, allocations: 15.98 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6088/0.6091, allocations: 142.4 MB / 0.9557 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.003491/0.6127, allocations: 3.705 MB / 0.9593 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001477/0.6128, allocations: 149.6 kB / 0.9594 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.383e-05/0.6129, allocations: 0 / 0.9594 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.512e-05/0.6129, allocations: 5.266 kB / 0.9595 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.44e-05/0.613, allocations: 15.02 kB / 0.9595 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002547/0.6133, allocations: 78.5 kB / 0.9595 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.473e-05/0.6134, allocations: 54.7 kB / 0.9596 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.861e-05/0.6134, allocations: 0 / 0.9596 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.453e-05/0.6134, allocations: 20.88 kB / 0.9596 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.197e-05/0.6135, allocations: 11.06 kB / 0.9596 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.138e-05/0.6135, allocations: 1.812 kB / 0.9596 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.6137, allocations: 77.77 kB / 0.9597 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.75e-05/0.6138, allocations: 6.375 kB / 0.9597 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.917e-05/0.6138, allocations: 39.16 kB / 0.9597 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.278e-05/0.6139, allocations: 33.97 kB / 0.9598 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.6139, allocations: 3.938 kB / 0.9598 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/0.6139, allocations: 0 / 0.9598 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.6139, allocations: 1.312 kB / 0.9598 GB, free: 4.266 MB / 0.7169 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.0002673/0.6142, allocations: 333.4 kB / 0.9601 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.6142, allocations: 8.812 kB / 0.9601 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.112e-05/0.6143, allocations: 3.344 kB / 0.9601 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.703e-05/0.6144, allocations: 161.4 kB / 0.9603 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.805e-05/0.6144, allocations: 27.14 kB / 0.9603 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-06/0.6144, allocations: 6.531 kB / 0.9603 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.6145, allocations: 49.98 kB / 0.9603 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.852e-06/0.6146, allocations: 0 / 0.9603 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.6146, allocations: 1.125 kB / 0.9603 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.6146, allocations: 5.531 kB / 0.9603 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.335e-05/0.6146, allocations: 17.17 kB / 0.9604 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003231/0.615, allocations: 332.5 kB / 0.9607 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 2.61e-05/0.615, allocations: 24.83 kB / 0.9607 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.194e-05/0.615, allocations: 6.047 kB / 0.9607 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 5.931e-05/0.6151, allocations: 82.33 kB / 0.9608 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.382e-05/0.6151, allocations: 35.56 kB / 0.9608 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.6151, allocations: 3.938 kB / 0.9608 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001199/0.6152, allocations: 39.47 kB / 0.9609 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.925e-05/0.6153, allocations: 60.53 kB / 0.9609 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.336e-05/0.6153, allocations: 100.2 kB / 0.961 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.656e-06/0.6153, allocations: 25.7 kB / 0.961 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.538e-05/0.6154, allocations: 89.39 kB / 0.9611 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.189e-06/0.6154, allocations: 1.312 kB / 0.9611 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/0.6154, allocations: 9.719 kB / 0.9611 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.703e-05/0.6154, allocations: 316.2 kB / 0.9614 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.349e-05/0.6155, allocations: 6.719 kB / 0.9614 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.991e-05/0.6155, allocations: 22.23 kB / 0.9615 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.833e-05/0.6155, allocations: 23.19 kB / 0.9615 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.6155, allocations: 0 / 0.9615 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.325e-05/0.6156, allocations: 47.34 kB / 0.9615 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.6156, allocations: 5.094 kB / 0.9615 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.6156, allocations: 1.312 kB / 0.9615 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.6156, allocations: 288 / 0.9615 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.116e-05/0.6157, allocations: 8.781 kB / 0.9616 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.688e-06/0.6157, allocations: 1.281 kB / 0.9616 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.973e-05/0.6157, allocations: 9.312 kB / 0.9616 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.6157, allocations: 5.297 kB / 0.9616 GB, free: 2.285 MB / 0.7169 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.57e-05/0.6158, allocations: 112.6 kB / 0.9617 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.493e-05/0.6158, allocations: 9.141 kB / 0.9617 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.429e-05/0.6159, allocations: 123.4 kB / 0.9618 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.133e-05/0.6159, allocations: 185.5 kB / 0.962 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.045e-05/0.6159, allocations: 177.6 kB / 0.9621 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.115e-05/0.616, allocations: 180.2 kB / 0.9623 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.6161, allocations: 412.8 kB / 0.9627 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/0.6161, allocations: 106.3 kB / 0.9628 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.192e-05/0.6161, allocations: 105 kB / 0.9629 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.839e-05/0.6162, allocations: 177.4 kB / 0.9631 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/0.6162, allocations: 185.2 kB / 0.9633 GB, free: 444 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.896e-05/0.6162, allocations: 181.3 kB / 0.9634 GB, free: 256 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.938e-05/0.6162, allocations: 185.3 kB / 0.9636 GB, free: 64 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001483/0.6164, allocations: 307.9 kB / 0.9639 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7e-05/0.6165, allocations: 187.4 kB / 0.9641 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.729e-05/0.6165, allocations: 178.3 kB / 0.9643 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.6167, allocations: 112.1 kB / 0.9644 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.6168, allocations: 177.4 kB / 0.9645 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.879e-05/0.6168, allocations: 110 kB / 0.9646 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.361e-05/0.6169, allocations: 84.75 kB / 0.9647 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6169, allocations: 0 / 0.9647 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002398/0.6171, allocations: 16.05 kB / 0.9647 GB, free: 14.87 MB / 0.7325 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.0002292/0.6174, allocations: 198.8 kB / 0.9649 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 6.101e-05/0.6174, allocations: 14.3 kB / 0.9649 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.6174, allocations: 0 / 0.9649 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.703e-06/0.6174, allocations: 1.031 kB / 0.9649 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004249/0.6179, allocations: 0.5276 MB / 0.9654 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002643/0.6181, allocations: 220.3 kB / 0.9657 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.6184, allocations: 0.6792 MB / 0.9663 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.919e-05/0.6184, allocations: 9.781 kB / 0.9663 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.6184, allocations: 0 / 0.9663 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of Templates: time 0.002152/0.6206, allocations: 0.7444 MB / 0.9671 GB, free: 12.84 MB / 0.7325 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