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.001455/0.001455, allocations: 108.2 kB / 15.99 MB, free: 6.359 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.00149/0.00149, allocations: 196.3 kB / 16.91 MB, free: 6.199 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.4/1.4, allocations: 222.9 MB / 240.6 MB, free: 15.42 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.297/2.297, allocations: 390.2 MB / 0.665 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 68.77 kB / 0.8127 GB, free: 33.24 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2711, allocations: 140.4 MB / 0.9498 GB, free: 9.234 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005849/0.2769, allocations: 4.065 MB / 0.9537 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002116/0.2772, allocations: 159.5 kB / 0.9539 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.459e-05/0.2772, allocations: 0 / 0.9539 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.894e-05/0.2773, allocations: 0 / 0.9539 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.792e-05/0.2774, allocations: 11.92 kB / 0.9539 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003466/0.2778, allocations: 75.77 kB / 0.954 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.273e-05/0.2779, allocations: 35.84 kB / 0.954 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.082e-05/0.2779, allocations: 0 / 0.954 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.13e-05/0.278, allocations: 23.92 kB / 0.954 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.115e-05/0.2781, allocations: 15.91 kB / 0.954 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.2781, allocations: 4 kB / 0.954 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001826/0.2783, allocations: 51.83 kB / 0.9541 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.396e-05/0.2783, allocations: 11.97 kB / 0.9541 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.555e-05/0.2784, allocations: 7.938 kB / 0.9541 GB, free: 4.75 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.629e-05/0.2785, allocations: 31.97 kB / 0.9541 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2785, allocations: 4 kB / 0.9541 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.442e-06/0.2785, allocations: 0 / 0.9541 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.2785, allocations: 0 / 0.9541 GB, free: 4.715 MB / 0.7325 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.0003484/0.2788, allocations: 335.8 kB / 0.9545 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.2789, allocations: 8.031 kB / 0.9545 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.922e-05/0.2789, allocations: 4.938 kB / 0.9545 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.279, allocations: 160.4 kB / 0.9546 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.941e-05/0.2791, allocations: 30.25 kB / 0.9547 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.2791, allocations: 12.3 kB / 0.9547 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001194/0.2793, allocations: 49.62 kB / 0.9547 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.2793, allocations: 0 / 0.9547 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.2793, allocations: 3.938 kB / 0.9547 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.2793, allocations: 4 kB / 0.9547 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.222e-05/0.2794, allocations: 11.98 kB / 0.9547 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004014/0.2798, allocations: 337.9 kB / 0.9551 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 3.67e-05/0.2798, allocations: 26.52 kB / 0.9551 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.527e-05/0.2798, allocations: 8.859 kB / 0.9551 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 9.048e-05/0.2799, allocations: 89.17 kB / 0.9552 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.28, allocations: 30.56 kB / 0.9552 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.28, allocations: 0 / 0.9552 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0001357/0.2801, allocations: 41.67 kB / 0.9552 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.2802, allocations: 51.41 kB / 0.9553 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.2803, allocations: 109.9 kB / 0.9554 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.2803, allocations: 25.7 kB / 0.9554 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.155e-05/0.2804, allocations: 91.98 kB / 0.9555 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.138e-06/0.2804, allocations: 0 / 0.9555 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.228e-05/0.2804, allocations: 17.72 kB / 0.9555 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.876e-05/0.2805, allocations: 314.8 kB / 0.9558 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.581e-05/0.2805, allocations: 7.984 kB / 0.9558 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.597e-05/0.2806, allocations: 17.72 kB / 0.9558 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.102e-05/0.2806, allocations: 17.72 kB / 0.9559 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2806, allocations: 0 / 0.9559 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.823e-05/0.2807, allocations: 57.53 kB / 0.9559 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.2807, allocations: 4 kB / 0.9559 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.2807, allocations: 0 / 0.9559 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.2807, allocations: 0 / 0.9559 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.286e-05/0.2808, allocations: 15.92 kB / 0.9559 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.2808, allocations: 4.062 kB / 0.9559 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.727e-05/0.2808, allocations: 0 / 0.9559 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.2808, allocations: 0 / 0.9559 GB, free: 2.59 MB / 0.7325 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 8.704e-05/0.2809, allocations: 121.3 kB / 0.9561 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.532e-05/0.281, allocations: 3.938 kB / 0.9561 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.2811, allocations: 117 kB / 0.9562 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-05/0.2812, allocations: 184.3 kB / 0.9564 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001361/0.2813, allocations: 184.2 kB / 0.9565 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.291e-05/0.2814, allocations: 176.3 kB / 0.9567 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002227/0.2816, allocations: 413.1 kB / 0.9571 GB, free: 1.316 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.199e-05/0.2816, allocations: 104.9 kB / 0.9572 GB, free: 1.207 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.502e-05/0.2817, allocations: 105 kB / 0.9573 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001047/0.2818, allocations: 184.2 kB / 0.9575 GB, free: 0.9102 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.335e-05/0.2819, allocations: 180.3 kB / 0.9576 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001279/0.282, allocations: 180.2 kB / 0.9578 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.452e-05/0.2821, allocations: 176.3 kB / 0.958 GB, free: 372 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001486/0.2822, allocations: 315.7 kB / 0.9583 GB, free: 32 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.112e-05/0.2823, allocations: 182.1 kB / 0.9585 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.065e-05/0.2824, allocations: 184.2 kB / 0.9586 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000155/0.2826, allocations: 113 kB / 0.9587 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-05/0.2826, allocations: 180.5 kB / 0.9589 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.994e-05/0.2827, allocations: 101 kB / 0.959 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 4.897e-05/0.2827, allocations: 91.27 kB / 0.9591 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2827, allocations: 0 / 0.9591 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002605/0.283, allocations: 16 kB / 0.9591 GB, free: 15.13 MB / 0.7481 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.0002526/0.2832, allocations: 206.4 kB / 0.9593 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 6.298e-05/0.2833, allocations: 11.97 kB / 0.9593 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2833, allocations: 128 / 0.9593 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.645e-06/0.2833, allocations: 8 kB / 0.9593 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.2837, allocations: 457.9 kB / 0.9598 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000244/0.284, allocations: 199.6 kB / 0.9599 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.2844, allocations: 0.6807 MB / 0.9606 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.169e-05/0.2845, allocations: 7.438 kB / 0.9606 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of SimCode: time 2.5e-07/0.2845, allocations: 0 / 0.9606 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of Templates: time 0.002134/0.2866, allocations: 0.7495 MB / 0.9614 GB, free: 12.76 MB / 0.7481 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