Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_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.001349/0.001349, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001416/0.001416, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.366/1.366, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.575/2.575, allocations: 437 MB / 0.711 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001394, allocations: 64.91 kB / 0.8699 GB, free: 2.191 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2577, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005395/0.2631, allocations: 4.018 MB / 1.022 GB, free: 6.598 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0001879/0.2633, allocations: 155.5 kB / 1.022 GB, free: 6.445 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.681e-05/0.2634, allocations: 0 / 1.022 GB, free: 6.445 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 8.324e-05/0.2635, allocations: 7.875 kB / 1.022 GB, free: 6.438 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.114e-05/0.2636, allocations: 23.92 kB / 1.022 GB, free: 6.414 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003151/0.2639, allocations: 72.19 kB / 1.022 GB, free: 6.344 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.371e-05/0.264, allocations: 39.84 kB / 1.022 GB, free: 6.305 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.663e-05/0.264, allocations: 0 / 1.022 GB, free: 6.305 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.938e-05/0.2641, allocations: 19.98 kB / 1.022 GB, free: 6.285 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.514e-05/0.2641, allocations: 11.92 kB / 1.022 GB, free: 6.273 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.094e-05/0.2641, allocations: 0 / 1.022 GB, free: 6.273 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001899/0.2643, allocations: 67.81 kB / 1.022 GB, free: 6.207 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 4.538e-05/0.2644, allocations: 7.969 kB / 1.022 GB, free: 6.199 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.733e-05/0.2644, allocations: 8 kB / 1.022 GB, free: 6.191 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.2646, allocations: 35.91 kB / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2646, allocations: 0 / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2646, allocations: 0 / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.2646, allocations: 0 / 1.022 GB, free: 6.156 MB / 0.795 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.0003331/0.2649, allocations: 339.8 kB / 1.023 GB, free: 5.777 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.265, allocations: 12.86 kB / 1.023 GB, free: 5.766 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.472e-05/0.265, allocations: 8.875 kB / 1.023 GB, free: 5.758 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.2651, allocations: 172.3 kB / 1.023 GB, free: 5.551 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.382e-05/0.2652, allocations: 26.27 kB / 1.023 GB, free: 5.52 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.793e-06/0.2652, allocations: 384 / 1.023 GB, free: 5.52 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001194/0.2653, allocations: 49.62 kB / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.2653, allocations: 0 / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.2653, allocations: 0 / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.2654, allocations: 0 / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.771e-05/0.2654, allocations: 15.98 kB / 1.023 GB, free: 5.449 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004011/0.2658, allocations: 342 kB / 1.023 GB, free: 5.047 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 4.007e-05/0.2659, allocations: 22.56 kB / 1.023 GB, free: 5.016 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.459e-05/0.2659, allocations: 4.859 kB / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 8.069e-05/0.266, allocations: 85.16 kB / 1.023 GB, free: 4.906 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.266, allocations: 34.56 kB / 1.023 GB, free: 4.863 MB / 0.795 GB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.266, allocations: 4 kB / 1.023 GB, free: 4.859 MB / 0.795 GB Notification: Performance of matching and sorting (n=1): time 0.0001275/0.2661, allocations: 37.64 kB / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.2662, allocations: 51.41 kB / 1.023 GB, free: 4.754 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.731e-05/0.2663, allocations: 105.8 kB / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.2663, allocations: 25.7 kB / 1.024 GB, free: 4.609 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.788e-05/0.2663, allocations: 91.98 kB / 1.024 GB, free: 4.516 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.298e-06/0.2663, allocations: 0 / 1.024 GB, free: 4.516 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.161e-05/0.2664, allocations: 13.72 kB / 1.024 GB, free: 4.496 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.2665, allocations: 330.9 kB / 1.024 GB, free: 4.164 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.646e-05/0.2665, allocations: 0 / 1.024 GB, free: 4.164 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.621e-05/0.2666, allocations: 13.72 kB / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.195e-05/0.2666, allocations: 29.64 kB / 1.024 GB, free: 4.109 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2666, allocations: 0 / 1.024 GB, free: 4.109 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.879e-05/0.2667, allocations: 49.61 kB / 1.024 GB, free: 4.055 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.2668, allocations: 4 kB / 1.024 GB, free: 4.051 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.2668, allocations: 7.984 kB / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.2668, allocations: 0 / 1.024 GB, free: 4.043 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.227e-05/0.2668, allocations: 7.938 kB / 1.024 GB, free: 4.035 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.2669, allocations: 0 / 1.024 GB, free: 4.035 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.283e-05/0.2669, allocations: 4 kB / 1.024 GB, free: 4.031 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.2669, allocations: 0 / 1.024 GB, free: 4.031 MB / 0.795 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 9.187e-05/0.267, allocations: 109.8 kB / 1.024 GB, free: 3.914 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.94e-05/0.267, allocations: 8.062 kB / 1.024 GB, free: 3.906 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.2672, allocations: 125 kB / 1.024 GB, free: 3.77 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.694e-05/0.2673, allocations: 180.2 kB / 1.024 GB, free: 3.586 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.124e-05/0.2673, allocations: 176.3 kB / 1.025 GB, free: 3.406 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.866e-05/0.2674, allocations: 180.2 kB / 1.025 GB, free: 3.223 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002417/0.2677, allocations: 421.1 kB / 1.025 GB, free: 2.754 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.408e-05/0.2677, allocations: 105 kB / 1.025 GB, free: 2.645 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.18e-05/0.2677, allocations: 108.9 kB / 1.025 GB, free: 2.531 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.234e-05/0.2678, allocations: 176.3 kB / 1.026 GB, free: 2.352 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-05/0.2679, allocations: 184.2 kB / 1.026 GB, free: 2.164 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.274e-05/0.2679, allocations: 176.3 kB / 1.026 GB, free: 1.984 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.417e-05/0.268, allocations: 184.3 kB / 1.026 GB, free: 1.797 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001571/0.2682, allocations: 311.7 kB / 1.026 GB, free: 1.469 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 8.382e-05/0.2683, allocations: 185.9 kB / 1.027 GB, free: 1.262 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.815e-05/0.2684, allocations: 180.2 kB / 1.027 GB, free: 1.078 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.2685, allocations: 109 kB / 1.027 GB, free: 0.9648 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.454e-05/0.2686, allocations: 180.2 kB / 1.027 GB, free: 0.7812 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-05/0.2687, allocations: 112.9 kB / 1.027 GB, free: 0.6641 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.88e-05/0.2687, allocations: 87.27 kB / 1.027 GB, free: 0.5781 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2687, allocations: 0 / 1.027 GB, free: 0.5781 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002595/0.269, allocations: 16 kB / 1.027 GB, free: 0.5625 MB / 0.795 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.0003029/0.2693, allocations: 203 kB / 1.027 GB, free: 364 kB / 0.795 GB Notification: Performance of simCode: created initialization part: time 8.359e-05/0.2694, allocations: 15.94 kB / 1.027 GB, free: 348 kB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2694, allocations: 0 / 1.027 GB, free: 348 kB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 1.723e-06/0.2694, allocations: 0 / 1.027 GB, free: 348 kB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.2699, allocations: 457.6 kB / 1.028 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002994/0.2702, allocations: 219.6 kB / 1.028 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.2704, allocations: 0.6768 MB / 1.029 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.167e-05/0.2704, allocations: 7.438 kB / 1.029 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.2704, allocations: 0 / 1.029 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of Templates: time 0.001955/0.2724, allocations: 0.75 MB / 1.03 GB, free: 14.19 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches