Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.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.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWat.y.1.|per.TWatMax|assWatTem.assMes.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWat.y.1.|per.TWatMax|assWatTem.assMes.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.00161/0.00161, allocations: 191 kB / 17.29 MB, free: 5.516 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.511/1.511, allocations: 222.9 MB / 241 MB, free: 14.99 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.295/2.295, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 63.33 kB / 0.814 GB, free: 32.68 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2954, allocations: 140.4 MB / 0.9511 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature): time 0.003921/0.2994, allocations: 2.186 MB / 0.9533 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002252/0.3017, allocations: 1.374 MB / 0.9546 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.3019, allocations: 7.938 kB / 0.9546 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0006869/0.3026, allocations: 199.6 kB / 0.9548 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003394/0.303, allocations: 119.4 kB / 0.9549 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004357/0.3034, allocations: 143.6 kB / 0.955 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003192/0.3038, allocations: 231.1 kB / 0.9553 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.304, allocations: 48.38 kB / 0.9553 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.3041, allocations: 95.5 kB / 0.9554 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.3043, allocations: 87.56 kB / 0.9555 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.672e-05/0.3044, allocations: 15.98 kB / 0.9555 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001551/0.3045, allocations: 55.91 kB / 0.9556 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.3047, allocations: 91.69 kB / 0.9556 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001751/0.3048, allocations: 142.9 kB / 0.9558 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005022/0.3054, allocations: 358.6 kB / 0.9561 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.046e-06/0.3054, allocations: 0 / 0.9561 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.665e-06/0.3054, allocations: 3.938 kB / 0.9561 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.726e-06/0.3054, allocations: 0 / 0.9561 GB, free: 2.895 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.001162/0.3066, allocations: 0.6725 MB / 0.9568 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.3066, allocations: 8.031 kB / 0.9568 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.277e-05/0.3067, allocations: 44.38 kB / 0.9568 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004826/0.3072, allocations: 360.2 kB / 0.9572 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.3072, allocations: 8.375 kB / 0.9572 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.398e-05/0.3072, allocations: 7.938 kB / 0.9572 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001909/0.3074, allocations: 81.59 kB / 0.9573 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.3075, allocations: 0 / 0.9573 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.3075, allocations: 0 / 0.9573 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3075, allocations: 3.938 kB / 0.9573 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001027/0.3076, allocations: 35.98 kB / 0.9573 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000751/0.3084, allocations: 456.5 kB / 0.9577 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002107/0.3086, allocations: 70.61 kB / 0.9578 GB, free: 1.012 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.423e-05/0.3087, allocations: 24.84 kB / 0.9578 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.3087, allocations: 0 / 0.9578 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.3089, allocations: 75.39 kB / 0.9579 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.603e-06/0.3089, allocations: 0 / 0.9579 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0003789/0.3093, allocations: 145.1 kB / 0.958 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.3093, allocations: 59.34 kB / 0.9581 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006491/0.31, allocations: 0.5254 MB / 0.9586 GB, free: 144 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.31, allocations: 33.81 kB / 0.9586 GB, free: 104 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002262/0.3103, allocations: 227.9 kB / 0.9589 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.3103, allocations: 19.75 kB / 0.9589 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.63e-05/0.3104, allocations: 41.69 kB / 0.9589 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3106, allocations: 358.8 kB / 0.9593 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.3107, allocations: 47.97 kB / 0.9593 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.3108, allocations: 72.67 kB / 0.9594 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/0.311, allocations: 96.34 kB / 0.9595 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.311, allocations: 4 kB / 0.9595 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002971/0.3113, allocations: 197 kB / 0.9597 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3113, allocations: 4 kB / 0.9597 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3113, allocations: 0 / 0.9597 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.3113, allocations: 4 kB / 0.9597 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.3114, allocations: 27.92 kB / 0.9597 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.3115, allocations: 0 / 0.9597 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.3116, allocations: 19.92 kB / 0.9597 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/0.3116, allocations: 8 kB / 0.9597 GB, free: 14.96 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.TWat.tab.nextTimeEvent,$whenCondition1,TWat.tab.nextTimeEventScaled,$PRE.TWat.tab.nextTimeEventScaled,TWat.tab.nextTimeEvent,assWatTem.hys.y,$PRE.assWatTem.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 0.0001795/0.3118, allocations: 185 kB / 0.9599 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.969e-05/0.3119, allocations: 35.53 kB / 0.9599 GB, free: 14.74 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.52e-05/0.3119, allocations: 51.78 kB / 0.96 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.312, allocations: 3.938 kB / 0.96 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.312, allocations: 0 / 0.96 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.312, allocations: 4 kB / 0.96 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.3122, allocations: 293.5 kB / 0.9603 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3122, allocations: 4 kB / 0.9603 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.176e-05/0.3123, allocations: 4 kB / 0.9603 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3123, allocations: 0 / 0.9603 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.3123, allocations: 4 kB / 0.9603 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3123, allocations: 3.938 kB / 0.9603 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3123, allocations: 0 / 0.9603 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002344/0.3125, allocations: 152.5 kB / 0.9604 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.3127, allocations: 124.4 kB / 0.9605 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.3127, allocations: 4 kB / 0.9605 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.13e-05/0.3128, allocations: 11.92 kB / 0.9606 GB, free: 14 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.97e-05/0.3129, allocations: 15.98 kB / 0.9606 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.946e-06/0.3129, allocations: 0 / 0.9606 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003987/0.3133, allocations: 362.8 kB / 0.9609 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3133, allocations: 3.938 kB / 0.9609 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002758/0.3136, allocations: 40 kB / 0.961 GB, free: 13.59 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: 4 ($whenCondition1,assWatTem.hys.y,TWat.tab.nextTimeEvent,TWat.tab.nextTimeEventScaled) * Number of discrete states: 3 (TWat.tab.nextTimeEventScaled,assWatTem.hys.y,TWat.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001087/0.3147, allocations: 428.3 kB / 0.9614 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002495/0.3149, allocations: 93.45 kB / 0.9615 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3149, allocations: 0 / 0.9615 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 7.586e-05/0.315, allocations: 27.98 kB / 0.9615 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.3154, allocations: 52.98 kB / 0.9615 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.3164, allocations: 0.6325 MB / 0.9622 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004163/0.3168, allocations: 0.8176 MB / 0.963 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.685e-05/0.3169, allocations: 29.66 kB / 0.963 GB, free: 11.63 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.53e-05/0.317, allocations: 27.42 kB / 0.963 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of SimCode: time 3e-07/0.317, allocations: 0 / 0.963 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of Templates: time 0.006925/0.3239, allocations: 2.856 MB / 0.9658 GB, free: 8.773 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.makefile (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.sim & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches