Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.714/1.714, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009096/0.0009096, allocations: 173.3 kB / 490.8 MB, free: 1.938 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.057/1.057, allocations: 221.4 MB / 0.7863 GB, free: 13.76 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.0007975/0.0007976, allocations: 100.6 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.725e-06/7.745e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1723, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4566/0.6289, allocations: 150 MB / 1.358 GB, free: 17.46 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001713/0.6291, allocations: 71.56 kB / 1.358 GB, free: 17.46 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01084/0.64, allocations: 4.06 MB / 1.362 GB, free: 17.21 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.103e-06/0.64, allocations: 2.344 kB / 1.362 GB, free: 17.21 MB / 0.823 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.0005664/0.6406, allocations: 0.5225 MB / 1.363 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.937e-05/0.6406, allocations: 9.406 kB / 1.363 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.196e-05/0.6407, allocations: 29.03 kB / 1.363 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.6408, allocations: 195.7 kB / 1.363 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.6408, allocations: 5.516 kB / 1.363 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.853e-05/0.6409, allocations: 14.69 kB / 1.363 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001108/0.641, allocations: 58.77 kB / 1.363 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001417/0.6411, allocations: 116.3 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.6411, allocations: 5.031 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.6412, allocations: 5.109 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.6412, allocations: 2.094 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006266/0.6418, allocations: 0.6533 MB / 1.364 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.6421, allocations: 136 kB / 1.364 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.756e-05/0.6421, allocations: 46.64 kB / 1.364 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.6422, allocations: 1.406 kB / 1.364 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001143/0.6423, allocations: 127.4 kB / 1.364 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.172e-06/0.6423, allocations: 4 kB / 1.364 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0002309/0.6425, allocations: 127.5 kB / 1.364 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.109e-05/0.6425, allocations: 105.6 kB / 1.364 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.6427, allocations: 164.5 kB / 1.364 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/0.6427, allocations: 31.75 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.41e-05/0.6428, allocations: 114.7 kB / 1.364 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.789e-05/0.6428, allocations: 34.05 kB / 1.364 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.185e-05/0.6429, allocations: 2.75 kB / 1.364 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.692e-05/0.643, allocations: 332.4 kB / 1.365 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001439/0.6431, allocations: 84.12 kB / 1.365 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/0.6433, allocations: 147.5 kB / 1.365 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003142/0.6436, allocations: 110.4 kB / 1.365 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.6436, allocations: 1.062 kB / 1.365 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005816/0.6442, allocations: 286.5 kB / 1.365 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.818e-06/0.6442, allocations: 5.781 kB / 1.365 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.6442, allocations: 5.312 kB / 1.365 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.6442, allocations: 2.656 kB / 1.365 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.6443, allocations: 18.73 kB / 1.365 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.6443, allocations: 9.156 kB / 1.365 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004279/0.6448, allocations: 118.8 kB / 1.366 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.338e-05/0.6448, allocations: 16.14 kB / 1.366 GB, free: 30.95 MB / 0.8386 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 () * 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 8.327e-05/0.6449, allocations: 113.9 kB / 1.366 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.387e-05/0.6449, allocations: 16.62 kB / 1.366 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.6451, allocations: 75.02 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.6451, allocations: 1.969 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.6451, allocations: 4.938 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.6451, allocations: 2.594 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.6452, allocations: 216.6 kB / 1.366 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.6452, allocations: 0.9688 kB / 1.366 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.206e-05/0.6453, allocations: 23.47 kB / 1.366 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.6453, allocations: 1.938 kB / 1.366 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.6454, allocations: 3.375 kB / 1.366 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.6454, allocations: 2.031 kB / 1.366 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.6454, allocations: 5.219 kB / 1.366 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001676/0.6455, allocations: 194.5 kB / 1.366 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.694e-05/0.6456, allocations: 95.42 kB / 1.366 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.6456, allocations: 3.75 kB / 1.366 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.6458, allocations: 32.66 kB / 1.366 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.419e-05/0.6458, allocations: 27.36 kB / 1.366 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.6458, allocations: 5.859 kB / 1.366 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.496e-05/0.6459, allocations: 141.3 kB / 1.367 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002491/0.6462, allocations: 43.12 kB / 1.367 GB, free: 30.29 MB / 0.8386 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) * 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.0001451/0.6463, allocations: 128.4 kB / 1.367 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003066/0.6467, allocations: 224.1 kB / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/0.6467, allocations: 0 / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.484e-05/0.6468, allocations: 56.5 kB / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.647, allocations: 43.94 kB / 1.367 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003562/0.6474, allocations: 201.1 kB / 1.367 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000274/0.6476, allocations: 0.7497 MB / 1.368 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/0.6477, allocations: 0 / 1.368 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of Templates: time 0.005022/0.6527, allocations: 2.935 MB / 1.371 GB, free: 29.07 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches