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.001668/0.001668, allocations: 115.3 kB / 16.37 MB, free: 6 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.001783/0.001783, allocations: 193.3 kB / 17.31 MB, free: 5.613 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.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.292/2.292, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 63.03 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2974, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005475/0.3029, allocations: 4.038 MB / 0.955 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0002039/0.3032, allocations: 155.5 kB / 0.9552 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.782e-05/0.3032, allocations: 0 / 0.9552 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 9.967e-05/0.3033, allocations: 11.88 kB / 0.9552 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.052e-05/0.3035, allocations: 19.91 kB / 0.9552 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.3038, allocations: 79.73 kB / 0.9553 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.72e-05/0.3039, allocations: 35.86 kB / 0.9553 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.35e-05/0.304, allocations: 0 / 0.9553 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.008e-05/0.304, allocations: 11.98 kB / 0.9553 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.181e-05/0.3041, allocations: 19.92 kB / 0.9554 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.3041, allocations: 0 / 0.9554 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.3043, allocations: 63.8 kB / 0.9554 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.465e-05/0.3044, allocations: 0 / 0.9554 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.996e-05/0.3044, allocations: 11.98 kB / 0.9554 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.3045, allocations: 39.89 kB / 0.9555 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.3046, allocations: 4 kB / 0.9555 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.203e-06/0.3046, allocations: 0 / 0.9555 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.3046, allocations: 0 / 0.9555 GB, free: 3.57 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.0004274/0.305, allocations: 335.5 kB / 0.9558 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.305, allocations: 15.97 kB / 0.9558 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.595e-05/0.3051, allocations: 4.938 kB / 0.9558 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.3052, allocations: 164.4 kB / 0.956 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.065e-05/0.3053, allocations: 26.27 kB / 0.956 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.3053, allocations: 384 / 0.956 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.3054, allocations: 45.61 kB / 0.956 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.3055, allocations: 4 kB / 0.9561 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.3055, allocations: 0 / 0.9561 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.3055, allocations: 0 / 0.9561 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.73e-05/0.3055, allocations: 19.98 kB / 0.9561 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004834/0.306, allocations: 341.9 kB / 0.9564 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 4.44e-05/0.3061, allocations: 22.56 kB / 0.9564 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.568e-05/0.3061, allocations: 4.859 kB / 0.9564 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 9.712e-05/0.3062, allocations: 81.17 kB / 0.9565 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.3063, allocations: 38.56 kB / 0.9565 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3063, allocations: 4 kB / 0.9565 GB, free: 2.281 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0001454/0.3064, allocations: 37.62 kB / 0.9566 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.3065, allocations: 51.41 kB / 0.9566 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.979e-05/0.3065, allocations: 105.8 kB / 0.9567 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.3066, allocations: 25.7 kB / 0.9568 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.991e-05/0.3066, allocations: 91.97 kB / 0.9568 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.857e-06/0.3066, allocations: 3.938 kB / 0.9568 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.067e-05/0.3067, allocations: 21.84 kB / 0.9569 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.3068, allocations: 318.8 kB / 0.9572 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.575e-05/0.3068, allocations: 3.984 kB / 0.9572 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.198e-05/0.3069, allocations: 17.72 kB / 0.9572 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.571e-05/0.3069, allocations: 21.66 kB / 0.9572 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3069, allocations: 0 / 0.9572 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.401e-05/0.307, allocations: 53.59 kB / 0.9573 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.307, allocations: 5.719 kB / 0.9573 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.307, allocations: 4 kB / 0.9573 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.307, allocations: 0 / 0.9573 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.748e-05/0.3071, allocations: 7.938 kB / 0.9573 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.3071, allocations: 3.984 kB / 0.9573 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.905e-05/0.3071, allocations: 4 kB / 0.9573 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.3071, allocations: 0 / 0.9573 GB, free: 1.449 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 9.614e-05/0.3072, allocations: 117.8 kB / 0.9574 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.606e-05/0.3073, allocations: 4 kB / 0.9574 GB, free: 1.32 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.3074, allocations: 121 kB / 0.9575 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-05/0.3075, allocations: 180.2 kB / 0.9577 GB, free: 1.004 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.114e-05/0.3076, allocations: 184.3 kB / 0.9579 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.61e-05/0.3077, allocations: 180.2 kB / 0.958 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002813/0.3079, allocations: 409.2 kB / 0.9584 GB, free: 180 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.718e-05/0.308, allocations: 105.3 kB / 0.9585 GB, free: 68 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000154/0.3081, allocations: 108.9 kB / 0.9586 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.846e-05/0.3082, allocations: 180.2 kB / 0.9588 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.8e-05/0.3083, allocations: 180.2 kB / 0.959 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.37e-05/0.3083, allocations: 180.3 kB / 0.9591 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.199e-05/0.3084, allocations: 180.3 kB / 0.9593 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000139/0.3086, allocations: 315.7 kB / 0.9596 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 8.746e-05/0.3087, allocations: 182 kB / 0.9598 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.604e-05/0.3087, allocations: 180.3 kB / 0.96 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.3089, allocations: 109 kB / 0.9601 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.424e-05/0.309, allocations: 188.2 kB / 0.9602 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/0.309, allocations: 108.9 kB / 0.9604 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 4.89e-05/0.3091, allocations: 79.28 kB / 0.9604 GB, free: 14 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3091, allocations: 0 / 0.9604 GB, free: 14 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002407/0.3093, allocations: 15.98 kB / 0.9604 GB, free: 13.99 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.0002234/0.3095, allocations: 206.4 kB / 0.9606 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 7.564e-05/0.3096, allocations: 15.92 kB / 0.9607 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3096, allocations: 0 / 0.9607 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.3096, allocations: 0 / 0.9607 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004375/0.3101, allocations: 467.8 kB / 0.9611 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002429/0.3103, allocations: 173.9 kB / 0.9613 GB, free: 13.1 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.3106, allocations: 0.6729 MB / 0.9619 GB, free: 12.4 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.98e-05/0.3106, allocations: 11.92 kB / 0.9619 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.757e-05/0.3107, allocations: 7.438 kB / 0.9619 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of SimCode: time 2.8e-07/0.3107, allocations: 4 kB / 0.9619 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of Templates: time 0.002913/0.3136, allocations: 0.6315 MB / 0.9626 GB, free: 11.75 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 -s cvode -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