Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.486/1.486, allocations: 249.5 MB / 257 MB, free: 6.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001062/0.001062, allocations: 184.8 kB / 316.3 MB, free: 3.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.3 MB / 0.5671 GB, free: 15.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007919/0.0007919, allocations: 97.84 kB / 0.6714 GB, free: 4.906 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.708e-05/2.707e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.249, allocations: 106.3 MB / 0.8852 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6468/0.8959, allocations: 132.3 MB / 1.014 GB, free: 5.434 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.8961, allocations: 73.2 kB / 1.015 GB, free: 5.395 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00658/0.9027, allocations: 2.128 MB / 1.017 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.443e-06/0.9028, allocations: 0 / 1.017 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.498e-06/0.9028, allocations: 4.656 kB / 1.017 GB, free: 3.492 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.000828/0.9036, allocations: 479.6 kB / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.9037, allocations: 8.031 kB / 1.017 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.411e-05/0.9037, allocations: 11.91 kB / 1.017 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.9039, allocations: 197.1 kB / 1.017 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.9039, allocations: 4 kB / 1.017 GB, free: 2.738 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.107e-05/0.9039, allocations: 8 kB / 1.017 GB, free: 2.73 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001634/0.9041, allocations: 57.12 kB / 1.017 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.9043, allocations: 128.8 kB / 1.017 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.9043, allocations: 0 / 1.017 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.9044, allocations: 7.891 kB / 1.017 GB, free: 2.566 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.9044, allocations: 4 kB / 1.017 GB, free: 2.562 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008894/0.9053, allocations: 0.5639 MB / 1.018 GB, free: 2 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001885/0.9055, allocations: 134.4 kB / 1.018 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.518e-05/0.9056, allocations: 42.2 kB / 1.018 GB, free: 1.828 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.9056, allocations: 4 kB / 1.018 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002228/0.9058, allocations: 147.1 kB / 1.018 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.9058, allocations: 0 / 1.018 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0002596/0.9061, allocations: 128.1 kB / 1.018 GB, free: 1.578 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.9062, allocations: 102.8 kB / 1.019 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.9063, allocations: 147.4 kB / 1.019 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.9063, allocations: 29.64 kB / 1.019 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.894e-05/0.9064, allocations: 108.1 kB / 1.019 GB, free: 1.176 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.384e-05/0.9064, allocations: 43.2 kB / 1.019 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.098e-05/0.9065, allocations: 0 / 1.019 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.9066, allocations: 326.6 kB / 1.019 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.574e-05/0.9067, allocations: 47.31 kB / 1.019 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.9068, allocations: 93.48 kB / 1.019 GB, free: 0.707 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.737e-05/0.9069, allocations: 34.92 kB / 1.019 GB, free: 0.6836 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.9069, allocations: 4 kB / 1.019 GB, free: 0.6797 MB / 0.6355 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002357/0.9071, allocations: 164 kB / 1.02 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.9071, allocations: 4 kB / 1.02 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.9071, allocations: 0 / 1.02 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.9072, allocations: 4 kB / 1.02 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.9074, allocations: 51.7 kB / 1.02 GB, free: 500 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.9074, allocations: 4 kB / 1.02 GB, free: 496 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003139/0.9078, allocations: 55.89 kB / 1.02 GB, free: 440 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.9078, allocations: 11.98 kB / 1.02 GB, free: 428 kB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.hysteresis.y,hysteresis.y,$whenCondition2,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.T_start,pul.T_start,$PRE.pul.count,pul.count,$whenCondition1,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.T_start,pul1.T_start,$PRE.pul1.count,pul1.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.9079, allocations: 114 kB / 1.02 GB, free: 312 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.961e-05/0.9079, allocations: 19.77 kB / 1.02 GB, free: 292 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001598/0.9081, allocations: 78.48 kB / 1.02 GB, free: 216 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.9081, allocations: 0 / 1.02 GB, free: 216 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.415e-06/0.9081, allocations: 4 kB / 1.02 GB, free: 212 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.9081, allocations: 0 / 1.02 GB, free: 212 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.9084, allocations: 192.6 kB / 1.02 GB, free: 16 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.9084, allocations: 8 kB / 1.02 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.9086, allocations: 35.91 kB / 1.02 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.9086, allocations: 4 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.9086, allocations: 3.812 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.9086, allocations: 3.953 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.9086, allocations: 4 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002566/0.9089, allocations: 180.7 kB / 1.02 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.921e-05/0.909, allocations: 96.75 kB / 1.02 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.395e-05/0.909, allocations: 7.984 kB / 1.02 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/0.9093, allocations: 48.14 kB / 1.02 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.9094, allocations: 47.55 kB / 1.02 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.9094, allocations: 7.984 kB / 1.02 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.769e-05/0.9095, allocations: 119.1 kB / 1.021 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9095, allocations: 0 / 1.021 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002533/0.9098, allocations: 32 kB / 1.021 GB, free: 15.41 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,hysteresis1.y,pul.T_start,pul.count,$whenCondition1,hysteresis2.y,pul1.T_start,pul1.count,hysteresis.y) * Number of discrete states: 5 (hysteresis.y,pul1.count,hysteresis2.y,pul.count,hysteresis1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002161/0.91, allocations: 110 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002597/0.9103, allocations: 114.8 kB / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.9103, allocations: 0 / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001351/0.9104, allocations: 62.81 kB / 1.021 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.9107, allocations: 34.22 kB / 1.021 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004622/0.9112, allocations: 178.8 kB / 1.021 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.9115, allocations: 0.7124 MB / 1.022 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001005/0.9116, allocations: 21.55 kB / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.19e-05/0.9117, allocations: 23.38 kB / 1.022 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of SimCode: time 2.71e-07/0.9117, allocations: 0 / 1.022 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of Templates: time 0.004253/0.916, allocations: 1.981 MB / 1.024 GB, free: 12.24 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches