Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.545/2.545, allocations: 390.3 MB / 405.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 175.3 kB / 498.1 MB, free: 5.762 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.681/1.681, allocations: 223.2 MB / 0.7948 GB, free: 18.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009322/0.0009321, allocations: 102.6 kB / 0.9346 GB, free: 7.141 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003959/0.0003958, allocations: 12.47 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3122, allocations: 142.4 MB / 1.223 GB, free: 89.55 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.197/0.5092, allocations: 150 MB / 1.369 GB, free: 3.383 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.5095, allocations: 79.95 kB / 1.369 GB, free: 3.305 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01231/0.5218, allocations: 4.367 MB / 1.374 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.983e-06/0.5219, allocations: 0 / 1.374 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.234e-05/0.5219, allocations: 4 kB / 1.374 GB, free: 14.92 MB / 0.8855 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.0008128/0.5227, allocations: 0.5331 MB / 1.374 GB, free: 14.33 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.5227, allocations: 8.031 kB / 1.374 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.5229, allocations: 27.72 kB / 1.374 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.5231, allocations: 198.8 kB / 1.374 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.504e-05/0.5231, allocations: 19.98 kB / 1.374 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.333e-05/0.5232, allocations: 16 kB / 1.374 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003021/0.5235, allocations: 142.4 kB / 1.375 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.5235, allocations: 0 / 1.375 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.5235, allocations: 11.95 kB / 1.375 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.5235, allocations: 0 / 1.375 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002597/0.5238, allocations: 99.88 kB / 1.375 GB, free: 13.76 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000874/0.5247, allocations: 0.6765 MB / 1.375 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003948/0.5251, allocations: 155.9 kB / 1.376 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.5251, allocations: 4.062 kB / 1.376 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003216/0.5255, allocations: 161.8 kB / 1.376 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.5255, allocations: 0 / 1.376 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.0005816/0.5261, allocations: 233.3 kB / 1.376 GB, free: 12.43 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/0.5261, allocations: 114.8 kB / 1.376 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.5263, allocations: 169.7 kB / 1.376 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.696e-05/0.5264, allocations: 33.7 kB / 1.376 GB, free: 12.07 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.505e-05/0.5265, allocations: 136.4 kB / 1.376 GB, free: 11.94 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.675e-05/0.5265, allocations: 35.52 kB / 1.376 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.507e-05/0.5265, allocations: 4 kB / 1.376 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.5267, allocations: 330.8 kB / 1.377 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/0.5269, allocations: 115.9 kB / 1.377 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.5272, allocations: 180.5 kB / 1.377 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002728/0.5275, allocations: 159.8 kB / 1.377 GB, free: 11.08 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.5275, allocations: 0 / 1.377 GB, free: 11.08 MB / 0.8855 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007212/0.5282, allocations: 388.6 kB / 1.378 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.08e-05/0.5283, allocations: 71.39 kB / 1.378 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.5283, allocations: 3.938 kB / 1.378 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.5284, allocations: 4 kB / 1.378 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.5285, allocations: 32.05 kB / 1.378 GB, free: 10.56 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.5285, allocations: 4 kB / 1.378 GB, free: 10.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000473/0.529, allocations: 107.8 kB / 1.378 GB, free: 10.45 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.529, allocations: 19.98 kB / 1.378 GB, free: 10.43 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.booPul.y,pul.booPul.y,$whenCondition1,$whenCondition2,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.booPul.y,pul1.booPul.y,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * 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.0001566/0.5292, allocations: 150.6 kB / 1.378 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.85e-05/0.5292, allocations: 23.69 kB / 1.378 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002778/0.5295, allocations: 102.6 kB / 1.378 GB, free: 10.15 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.5295, allocations: 0 / 1.378 GB, free: 10.15 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.5295, allocations: 8 kB / 1.378 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.5295, allocations: 0 / 1.378 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002329/0.5298, allocations: 249.5 kB / 1.378 GB, free: 9.848 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.5298, allocations: 0 / 1.378 GB, free: 9.848 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.144e-05/0.5299, allocations: 19.98 kB / 1.378 GB, free: 9.828 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.5299, allocations: 3.938 kB / 1.378 GB, free: 9.824 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.5299, allocations: 8 kB / 1.378 GB, free: 9.816 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.5299, allocations: 0 / 1.378 GB, free: 9.816 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.5299, allocations: 0 / 1.378 GB, free: 9.816 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003802/0.5303, allocations: 242 kB / 1.379 GB, free: 9.543 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.534e-05/0.5304, allocations: 96.86 kB / 1.379 GB, free: 9.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.125e-05/0.5304, allocations: 4 kB / 1.379 GB, free: 9.426 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.5306, allocations: 27.97 kB / 1.379 GB, free: 9.398 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.619e-05/0.5306, allocations: 31.89 kB / 1.379 GB, free: 9.367 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.5307, allocations: 11.94 kB / 1.379 GB, free: 9.355 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001054/0.5308, allocations: 140.2 kB / 1.379 GB, free: 9.219 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5308, allocations: 0 / 1.379 GB, free: 9.219 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002936/0.5311, allocations: 59.98 kB / 1.379 GB, free: 9.16 MB / 0.8855 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 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001982/0.5313, allocations: 115.2 kB / 1.379 GB, free: 9.039 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000609/0.5319, allocations: 358.8 kB / 1.379 GB, free: 8.664 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.5319, allocations: 4 kB / 1.379 GB, free: 8.66 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000184/0.5321, allocations: 75.91 kB / 1.379 GB, free: 8.586 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002549/0.5324, allocations: 44 kB / 1.379 GB, free: 8.543 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006168/0.533, allocations: 334.2 kB / 1.38 GB, free: 8.184 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.5333, allocations: 0.7245 MB / 1.38 GB, free: 7.434 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001082/0.5335, allocations: 21.91 kB / 1.38 GB, free: 7.414 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.312e-05/0.5335, allocations: 23.44 kB / 1.381 GB, free: 7.391 MB / 0.8855 GB Notification: Performance of SimCode: time 2.2e-07/0.5335, allocations: 0 / 1.381 GB, free: 7.391 MB / 0.8855 GB Notification: Performance of Templates: time 0.006571/0.5401, allocations: 3.096 MB / 1.384 GB, free: 4.336 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches