Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0012/0.001201, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001412/0.001412, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 223.2 MB / 239.9 MB, free: 5.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.668/2.668, allocations: 436.5 MB / 0.7104 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003604, allocations: 12 kB / 0.8708 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8663/0.8667, allocations: 153.6 MB / 1.021 GB, free: 1.262 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001232/0.868, allocations: 0.5409 MB / 1.021 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001045/0.869, allocations: 0.8819 MB / 1.022 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.723e-05/0.8691, allocations: 0 / 1.022 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.894e-05/0.8692, allocations: 3.938 kB / 1.022 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.8693, allocations: 19.95 kB / 1.022 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.8695, allocations: 31.95 kB / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001259/0.8696, allocations: 63.86 kB / 1.022 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.8698, allocations: 25.09 kB / 1.022 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.8699, allocations: 43.84 kB / 1.022 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.147e-05/0.87, allocations: 47.75 kB / 1.022 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.87, allocations: 4 kB / 1.022 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 2.034e-05/0.8701, allocations: 7.938 kB / 1.022 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.707e-05/0.8701, allocations: 23.91 kB / 1.022 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.906e-05/0.8701, allocations: 45.64 kB / 1.023 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.8703, allocations: 77.92 kB / 1.023 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.8703, allocations: 0 / 1.023 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.022e-06/0.8703, allocations: 0 / 1.023 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.439e-06/0.8703, allocations: 0 / 1.023 GB, free: 15.44 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007044/0.871, allocations: 442.8 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.871, allocations: 11.98 kB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.624e-05/0.8711, allocations: 11.91 kB / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006031/0.8717, allocations: 262.6 kB / 1.023 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.8717, allocations: 8 kB / 1.023 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.11e-05/0.8718, allocations: 15.95 kB / 1.023 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002928/0.8721, allocations: 131.1 kB / 1.023 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.8721, allocations: 0 / 1.023 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.8721, allocations: 7.984 kB / 1.023 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.8721, allocations: 0 / 1.023 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002867/0.8724, allocations: 91.86 kB / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006643/0.8731, allocations: 0.5087 MB / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002477/0.8733, allocations: 119.9 kB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.31e-05/0.8734, allocations: 4.062 kB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.8734, allocations: 38.56 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 2.215e-06/0.8735, allocations: 0 / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0006105/0.8741, allocations: 181.5 kB / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.8741, allocations: 110.8 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.8743, allocations: 147.2 kB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.8743, allocations: 33.69 kB / 1.025 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.59e-05/0.8744, allocations: 108.4 kB / 1.025 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.229e-05/0.8745, allocations: 23.64 kB / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-06/0.8745, allocations: 4 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.8746, allocations: 326.8 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.8747, allocations: 51.95 kB / 1.025 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.8749, allocations: 85.06 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.8751, allocations: 55.97 kB / 1.025 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.8751, allocations: 0 / 1.025 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004259/0.8755, allocations: 161.4 kB / 1.025 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.8756, allocations: 5.875 kB / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.8756, allocations: 0 / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.8756, allocations: 4 kB / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.8757, allocations: 19.98 kB / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.8758, allocations: 3.984 kB / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.8759, allocations: 31.88 kB / 1.025 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.8759, allocations: 0 / 1.025 GB, free: 12.2 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.hysteresis.y,hysteresis.y,$PRE.hysteresis1.y,hysteresis1.y,$PRE.hysteresis2.y,hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.000113/0.876, allocations: 125.8 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.533e-05/0.8761, allocations: 7.906 kB / 1.026 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002707/0.8764, allocations: 105.8 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.8764, allocations: 384 / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.8764, allocations: 0 / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.8764, allocations: 4 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002894/0.8767, allocations: 205.6 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.8768, allocations: 3.984 kB / 1.026 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.8769, allocations: 23.98 kB / 1.026 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.8769, allocations: 0 / 1.026 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.8769, allocations: 7.984 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.668e-06/0.8769, allocations: 0 / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.8769, allocations: 3.938 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004568/0.8774, allocations: 413.2 kB / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.48e-05/0.8775, allocations: 89.08 kB / 1.026 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.8775, allocations: 8 kB / 1.026 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.8777, allocations: 19.97 kB / 1.026 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.418e-05/0.8778, allocations: 23.95 kB / 1.026 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.8778, allocations: 4 kB / 1.026 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.158e-05/0.8779, allocations: 109.5 kB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.91e-07/0.8779, allocations: 0 / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003119/0.8782, allocations: 27.95 kB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 0.0001529/0.8784, allocations: 107.2 kB / 1.027 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005988/0.879, allocations: 119.8 kB / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.879, allocations: 3.938 kB / 1.027 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002562/0.8792, allocations: 55.95 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.8796, allocations: 14.02 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004626/0.88, allocations: 247.1 kB / 1.027 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.8803, allocations: 0.7119 MB / 1.028 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.965e-05/0.8804, allocations: 16.64 kB / 1.028 GB, free: 9.594 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.727e-05/0.8805, allocations: 15.44 kB / 1.028 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of SimCode: time 4.2e-07/0.8805, allocations: 0 / 1.028 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of Templates: time 0.003747/0.8842, allocations: 1.072 MB / 1.029 GB, free: 8.512 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches