Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 104.2 kB / 15.98 MB, free: 6.355 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.001756/0.001756, allocations: 198.8 kB / 16.91 MB, free: 6.188 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.318/1.318, allocations: 222.9 MB / 240.6 MB, free: 15.45 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.197/2.197, allocations: 390.2 MB / 0.665 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.61 kB / 0.8127 GB, free: 33.32 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2522, allocations: 140.4 MB / 0.9498 GB, free: 9.273 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.005176/0.2574, allocations: 3.343 MB / 0.953 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0001139/0.2576, allocations: 51.86 kB / 0.9531 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.427e-05/0.2576, allocations: 0 / 0.9531 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.605e-05/0.2577, allocations: 3.938 kB / 0.9531 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.012e-05/0.2578, allocations: 15.97 kB / 0.9531 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006005/0.2584, allocations: 171.3 kB / 0.9533 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.572e-05/0.2585, allocations: 35.84 kB / 0.9533 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.234e-05/0.2586, allocations: 7.984 kB / 0.9533 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.519e-05/0.2586, allocations: 8 kB / 0.9533 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.25e-05/0.2587, allocations: 23.97 kB / 0.9533 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.296e-05/0.2587, allocations: 0 / 0.9533 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000338/0.259, allocations: 179.4 kB / 0.9535 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.12e-05/0.2591, allocations: 4 kB / 0.9535 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.678e-05/0.2591, allocations: 11.97 kB / 0.9535 GB, free: 5.398 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001799/0.2593, allocations: 88.12 kB / 0.9536 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2593, allocations: 0 / 0.9536 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2593, allocations: 3.938 kB / 0.9536 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.2593, allocations: 0 / 0.9536 GB, free: 5.309 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.0003702/0.2597, allocations: 355.4 kB / 0.9539 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.2598, allocations: 12.03 kB / 0.954 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.738e-05/0.2598, allocations: 0.9375 kB / 0.954 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.2599, allocations: 160.4 kB / 0.9541 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.44e-05/0.26, allocations: 34.25 kB / 0.9541 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.02e-05/0.26, allocations: 384 / 0.9541 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001265/0.2602, allocations: 53.5 kB / 0.9542 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.2602, allocations: 0 / 0.9542 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.2602, allocations: 0 / 0.9542 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.2602, allocations: 8 kB / 0.9542 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.556e-05/0.2603, allocations: 11.98 kB / 0.9542 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006369/0.2609, allocations: 0.5832 MB / 0.9548 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 4.359e-05/0.261, allocations: 18.58 kB / 0.9548 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.418e-05/0.261, allocations: 8.797 kB / 0.9548 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002459/0.2613, allocations: 348.5 kB / 0.9551 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.2613, allocations: 34.56 kB / 0.9552 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 1.333e-06/0.2613, allocations: 0 / 0.9552 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0001358/0.2614, allocations: 29.7 kB / 0.9552 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.2615, allocations: 55.41 kB / 0.9553 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.572e-05/0.2616, allocations: 101.8 kB / 0.9554 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.2616, allocations: 25.7 kB / 0.9554 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.641e-05/0.2616, allocations: 84.05 kB / 0.9555 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.19e-06/0.2616, allocations: 8.062 kB / 0.9555 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.2617, allocations: 29.7 kB / 0.9555 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2618, allocations: 318.7 kB / 0.9558 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.567e-05/0.2618, allocations: 4 kB / 0.9558 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.604e-05/0.2619, allocations: 17.89 kB / 0.9558 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.404e-05/0.2619, allocations: 17.72 kB / 0.9558 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2619, allocations: 8 kB / 0.9558 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.084e-05/0.262, allocations: 49.62 kB / 0.9559 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.262, allocations: 9.875 kB / 0.9559 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.262, allocations: 0 / 0.9559 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.262, allocations: 96 / 0.9559 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.411e-05/0.2621, allocations: 7.984 kB / 0.9559 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.2621, allocations: 4 kB / 0.9559 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.267e-05/0.2621, allocations: 7.844 kB / 0.9559 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.946e-06/0.2622, allocations: 0 / 0.9559 GB, free: 2.555 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 7.382e-05/0.2622, allocations: 121.8 kB / 0.956 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.821e-05/0.2623, allocations: 3.984 kB / 0.956 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/0.2624, allocations: 116.9 kB / 0.9561 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.645e-05/0.2625, allocations: 180.3 kB / 0.9563 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.907e-05/0.2626, allocations: 184.2 kB / 0.9565 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.236e-05/0.2626, allocations: 184.3 kB / 0.9567 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002372/0.2629, allocations: 409.1 kB / 0.9571 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.324e-05/0.2629, allocations: 105 kB / 0.9572 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.865e-05/0.263, allocations: 101 kB / 0.9573 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.225e-05/0.263, allocations: 180.2 kB / 0.9574 GB, free: 0.8828 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.268e-05/0.2631, allocations: 176.3 kB / 0.9576 GB, free: 0.7031 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.239e-05/0.2632, allocations: 196.3 kB / 0.9578 GB, free: 0.5039 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.86e-05/0.2632, allocations: 176.3 kB / 0.958 GB, free: 332 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000147/0.2634, allocations: 311.7 kB / 0.9583 GB, free: 16 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 7.305e-05/0.2634, allocations: 182.1 kB / 0.9584 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.021e-05/0.2635, allocations: 188.2 kB / 0.9586 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.2637, allocations: 109 kB / 0.9587 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.621e-05/0.2638, allocations: 180.3 kB / 0.9589 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.07e-05/0.2638, allocations: 108.9 kB / 0.959 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 4.282e-05/0.2639, allocations: 79.28 kB / 0.9591 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.876e-06/0.2639, allocations: 0 / 0.9591 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000279/0.2641, allocations: 39.94 kB / 0.9591 GB, free: 15.07 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.0002723/0.2644, allocations: 244.6 kB / 0.9593 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 7.034e-05/0.2645, allocations: 12.06 kB / 0.9593 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2645, allocations: 0 / 0.9593 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 2.785e-06/0.2645, allocations: 7.938 kB / 0.9594 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00045/0.265, allocations: 453 kB / 0.9598 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002687/0.2653, allocations: 219.5 kB / 0.96 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.2655, allocations: 0.6768 MB / 0.9607 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.195e-05/0.2655, allocations: 7.438 kB / 0.9607 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of SimCode: time 3.91e-07/0.2655, allocations: 0 / 0.9607 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of Templates: time 0.002706/0.2683, allocations: 1.19 MB / 0.9618 GB, free: 12.23 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches