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.004903/0.004903, allocations: 103 kB / 15.73 MB, free: 6.492 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.001095/0.001095, allocations: 198.4 kB / 16.68 MB, free: 6.375 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.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.436/2.436, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 66.05 kB / 0.9508 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3226, allocations: 140.4 MB / 1.088 GB, free: 1.492 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006612/0.3292, allocations: 4.018 MB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002702/0.3295, allocations: 167.4 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.155e-05/0.3296, allocations: 0 / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.3297, allocations: 0 / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.955e-05/0.3298, allocations: 11.91 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003921/0.3302, allocations: 81.88 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.3304, allocations: 39.86 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.63e-05/0.3304, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.368e-05/0.3305, allocations: 15.97 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.099e-05/0.3305, allocations: 15.88 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.143e-05/0.3306, allocations: 3.938 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002208/0.3308, allocations: 63.8 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.186e-05/0.3309, allocations: 3.984 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.57e-05/0.3309, allocations: 8 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.3311, allocations: 51.83 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3311, allocations: 0 / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.964e-06/0.3311, allocations: 4 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.147e-05/0.3311, allocations: 0 / 1.092 GB, free: 12.99 MB / 0.8575 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.0005076/0.3316, allocations: 327.6 kB / 1.093 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.3317, allocations: 12.03 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.096e-05/0.3317, allocations: 0.9375 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.3319, allocations: 168.3 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.304e-05/0.332, allocations: 30.27 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.332, allocations: 384 / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001593/0.3322, allocations: 53.56 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.3322, allocations: 0 / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.3322, allocations: 4 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.425e-05/0.3322, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.642e-05/0.3323, allocations: 11.98 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004873/0.3328, allocations: 334 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.888e-05/0.3328, allocations: 14.64 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.802e-05/0.3329, allocations: 12.86 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.71e-05/0.3329, allocations: 85.11 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.333, allocations: 34.5 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 2.375e-06/0.333, allocations: 0 / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001593/0.3332, allocations: 41.62 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.3332, allocations: 51.41 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.133e-05/0.3333, allocations: 109.9 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.3333, allocations: 29.7 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.031e-05/0.3334, allocations: 88.03 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.614e-06/0.3334, allocations: 3.906 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.267e-05/0.3335, allocations: 17.72 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3336, allocations: 318.8 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.495e-05/0.3336, allocations: 4 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.577e-05/0.3337, allocations: 21.84 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.525e-05/0.3337, allocations: 21.72 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3337, allocations: 0 / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.813e-05/0.3338, allocations: 49.62 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.3339, allocations: 4 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.3339, allocations: 4 kB / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.3339, allocations: 96 / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.483e-05/0.334, allocations: 11.97 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.334, allocations: 4 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.871e-05/0.334, allocations: 4 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.334, allocations: 4 kB / 1.094 GB, free: 10.88 MB / 0.8575 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.441e-05/0.3341, allocations: 113.8 kB / 1.094 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.3341, allocations: 4 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001267/0.3343, allocations: 120.9 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.09e-05/0.3343, allocations: 180.3 kB / 1.094 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-05/0.3344, allocations: 188.2 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.633e-05/0.3345, allocations: 180.3 kB / 1.095 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002529/0.3348, allocations: 409.2 kB / 1.095 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.162e-05/0.3348, allocations: 104.9 kB / 1.095 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.857e-05/0.3349, allocations: 109 kB / 1.095 GB, free: 9.383 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.158e-05/0.335, allocations: 184.2 kB / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.577e-05/0.3351, allocations: 176.3 kB / 1.096 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.028e-05/0.3352, allocations: 176.3 kB / 1.096 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.429e-05/0.3352, allocations: 184.2 kB / 1.096 GB, free: 8.648 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001873/0.3354, allocations: 319.6 kB / 1.096 GB, free: 8.312 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.901e-05/0.3355, allocations: 178.1 kB / 1.097 GB, free: 8.113 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.106e-05/0.3356, allocations: 176.3 kB / 1.097 GB, free: 7.934 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.3358, allocations: 120.8 kB / 1.097 GB, free: 7.809 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.459e-05/0.3358, allocations: 176.3 kB / 1.097 GB, free: 7.629 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.359e-05/0.3359, allocations: 104.9 kB / 1.097 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.284e-05/0.3359, allocations: 95.27 kB / 1.097 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3359, allocations: 0 / 1.097 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000249/0.3362, allocations: 15.94 kB / 1.097 GB, free: 7.41 MB / 0.8575 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.0002671/0.3365, allocations: 199 kB / 1.097 GB, free: 7.207 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 7.607e-05/0.3366, allocations: 8 kB / 1.097 GB, free: 7.199 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3366, allocations: 0 / 1.097 GB, free: 7.199 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.925e-06/0.3366, allocations: 8.062 kB / 1.097 GB, free: 7.191 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004487/0.337, allocations: 461.2 kB / 1.098 GB, free: 6.738 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000267/0.3373, allocations: 181.9 kB / 1.098 GB, free: 6.535 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.3376, allocations: 0.6729 MB / 1.099 GB, free: 5.836 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.543e-05/0.3377, allocations: 15.94 kB / 1.099 GB, free: 5.82 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.564e-05/0.3377, allocations: 7.438 kB / 1.099 GB, free: 5.812 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.3377, allocations: 0 / 1.099 GB, free: 5.812 MB / 0.8575 GB Notification: Performance of Templates: time 0.002776/0.3405, allocations: 0.6474 MB / 1.099 GB, free: 5.172 MB / 0.8575 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches