Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.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.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falCleTruIni.u|falCleTruIni.clr|falCleTruIni.y|falCleFalIni.u|falCleFalIni.clr|falCleFalIni.y|truCleTruIni.u|truCleTruIni.clr|truCleTruIni.y|truCleFalIni.u|truCleFalIni.clr|truCleFalIni.y|swiCleInp.u|swiCleInp.clr|swiCleInp.y|swiCleInp1.u|swiCleInp1.clr|swiCleInp1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falCleTruIni.u|falCleTruIni.clr|falCleTruIni.y|falCleFalIni.u|falCleFalIni.clr|falCleFalIni.y|truCleTruIni.u|truCleTruIni.clr|truCleTruIni.y|truCleFalIni.u|truCleFalIni.clr|truCleFalIni.y|swiCleInp.u|swiCleInp.clr|swiCleInp.y|swiCleInp1.u|swiCleInp1.clr|swiCleInp1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") [: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 9.1.1-maint.9.1.x/package.mo): time 1.726/1.726, allocations: 387.2 MB / 394.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000997/0.000997, allocations: 187.5 kB / 487 MB, free: 0.75 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.092/1.092, allocations: 221.3 MB / 0.7819 GB, free: 6.805 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008229/0.0008229, allocations: 99 kB / 0.9213 GB, free: 43.68 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 5.37e-06/5.39e-06, allocations: 0 / 1.066 GB, free: 7.555 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5076/0.5076, allocations: 142.3 MB / 1.205 GB, free: 72.89 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1541/0.6618, allocations: 149.1 MB / 1.351 GB, free: 14.28 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001475/0.6619, allocations: 67.95 kB / 1.351 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.01042/0.6724, allocations: 3.666 MB / 1.354 GB, free: 10.58 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 8.346e-06/0.6724, allocations: 4 kB / 1.354 GB, free: 10.58 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.000446/0.6728, allocations: 482.1 kB / 1.355 GB, free: 10.05 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.6729, allocations: 8.031 kB / 1.355 GB, free: 10.04 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.309e-05/0.673, allocations: 27.89 kB / 1.355 GB, free: 10.02 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.783e-05/0.6731, allocations: 183 kB / 1.355 GB, free: 9.797 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.619e-05/0.6731, allocations: 8.484 kB / 1.355 GB, free: 9.789 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.847e-05/0.6732, allocations: 27.98 kB / 1.355 GB, free: 9.762 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001624/0.6733, allocations: 86.98 kB / 1.355 GB, free: 9.68 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002764/0.6736, allocations: 197.4 kB / 1.355 GB, free: 9.48 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.6736, allocations: 3.938 kB / 1.355 GB, free: 9.477 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.086e-05/0.6737, allocations: 15.88 kB / 1.355 GB, free: 9.461 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.6737, allocations: 0.6875 kB / 1.355 GB, free: 9.461 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006266/0.6743, allocations: 0.5008 MB / 1.356 GB, free: 8.922 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003126/0.6746, allocations: 246.7 kB / 1.356 GB, free: 8.672 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.6748, allocations: 132.8 kB / 1.356 GB, free: 8.539 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 9.258e-06/0.6748, allocations: 0 / 1.356 GB, free: 8.539 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000384/0.6752, allocations: 315.7 kB / 1.357 GB, free: 8.219 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=48): time 1.432e-06/0.6752, allocations: 0 / 1.357 GB, free: 8.219 MB / 0.8542 GB Notification: Performance of matching and sorting (n=48): time 0.0005199/0.6757, allocations: 347 kB / 1.357 GB, free: 7.871 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.6758, allocations: 55.84 kB / 1.357 GB, free: 7.805 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.453e-05/0.6759, allocations: 122.2 kB / 1.357 GB, free: 7.68 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 8.17e-05/0.6759, allocations: 53.69 kB / 1.357 GB, free: 7.621 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.914e-05/0.676, allocations: 101 kB / 1.357 GB, free: 7.52 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 7.523e-05/0.6761, allocations: 102.8 kB / 1.357 GB, free: 7.418 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.399e-05/0.6761, allocations: 8 kB / 1.357 GB, free: 7.41 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 8.527e-05/0.6762, allocations: 334.8 kB / 1.358 GB, free: 7.074 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002691/0.6765, allocations: 165.3 kB / 1.358 GB, free: 6.914 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000311/0.6768, allocations: 263.1 kB / 1.358 GB, free: 6.621 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003839/0.6772, allocations: 137.4 kB / 1.358 GB, free: 6.484 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.6772, allocations: 0 / 1.358 GB, free: 6.484 MB / 0.8542 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008436/0.678, allocations: 472.9 kB / 1.359 GB, free: 6.016 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.6781, allocations: 4 kB / 1.359 GB, free: 6.012 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.6781, allocations: 4 kB / 1.359 GB, free: 6.008 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.6781, allocations: 7.938 kB / 1.359 GB, free: 6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.863e-05/0.6782, allocations: 27.86 kB / 1.359 GB, free: 5.973 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.6782, allocations: 4 kB / 1.359 GB, free: 5.969 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003815/0.6786, allocations: 83.91 kB / 1.359 GB, free: 5.887 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.903e-05/0.6786, allocations: 27.64 kB / 1.359 GB, free: 5.863 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.falCleTruIni.clr,$PRE.falCleFalIni.clr,$PRE.truCleTruIni.clr,$PRE.truCleFalIni.clr,$PRE.swiCleInp.clr,$PRE.swiCleInp1.clr,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.falCleTruIni.u,falCleTruIni.u,falCleTruIni.clr,$PRE.falCleTruIni.y,falCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,falCleFalIni.clr,$PRE.falCleFalIni.y,falCleFalIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,truCleTruIni.clr,$PRE.truCleTruIni.y,truCleTruIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,truCleFalIni.clr,$PRE.truCleFalIni.y,truCleFalIni.y,$PRE.swiCleInp.u,swiCleInp.u,swiCleInp.clr,$PRE.swiCleInp.y,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,swiCleInp1.clr,$PRE.swiCleInp1.y,swiCleInp1.y,$PRE.cleInp.y,cleInp.y,$PRE.togInp.y,togInp.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * 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.0001366/0.6788, allocations: 158 kB / 1.359 GB, free: 5.703 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.052e-05/0.6788, allocations: 23.8 kB / 1.359 GB, free: 5.68 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.425e-05/0.6789, allocations: 34.06 kB / 1.359 GB, free: 5.648 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.86e-06/0.6789, allocations: 7.938 kB / 1.359 GB, free: 5.641 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.6789, allocations: 0 / 1.359 GB, free: 5.641 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.6789, allocations: 0 / 1.359 GB, free: 5.641 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.68, allocations: 0.8037 MB / 1.36 GB, free: 4.781 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.68, allocations: 0 / 1.36 GB, free: 4.781 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.312e-05/0.68, allocations: 20.73 kB / 1.36 GB, free: 4.762 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.68, allocations: 4 kB / 1.36 GB, free: 4.758 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.84e-05/0.6801, allocations: 20.09 kB / 1.36 GB, free: 4.738 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.6801, allocations: 4 kB / 1.36 GB, free: 4.734 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.6801, allocations: 3.906 kB / 1.36 GB, free: 4.73 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005332/0.6807, allocations: 0.5087 MB / 1.36 GB, free: 4.172 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.309e-05/0.6807, allocations: 98.39 kB / 1.36 GB, free: 4.059 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.289e-05/0.6808, allocations: 27.92 kB / 1.36 GB, free: 4.031 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.6809, allocations: 3.984 kB / 1.36 GB, free: 4.027 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.6811, allocations: 95.8 kB / 1.361 GB, free: 3.934 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-05/0.6811, allocations: 35.97 kB / 1.361 GB, free: 3.898 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.879e-05/0.6812, allocations: 92.05 kB / 1.361 GB, free: 3.809 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003483/0.6815, allocations: 83.98 kB / 1.361 GB, free: 3.727 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 48 (swiCleInp1.clr,swiCleInp.clr,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,falCleTruIni.u,falCleTruIni.y,falCleFalIni.u,falCleFalIni.y,truCleTruIni.u,truCleTruIni.y,truCleFalIni.u,truCleFalIni.y,swiCleInp.u,swiCleInp.y,swiCleInp1.u,swiCleInp1.y,cleInp.y,togInp.y,falCleFalIni.clr,falCleTruIni.clr,truCleFalIni.clr,truCleTruIni.clr) * Number of discrete states: 12 (truCleFalIni.u,truCleFalIni.y,falCleTruIni.u,falCleTruIni.y,truCleTruIni.u,truCleTruIni.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.y,falCleFalIni.u,falCleFalIni.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0002057/0.6817, allocations: 142.3 kB / 1.361 GB, free: 3.574 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006386/0.6824, allocations: 460.7 kB / 1.361 GB, free: 3.117 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.6824, allocations: 4.188 kB / 1.361 GB, free: 3.113 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003025/0.6827, allocations: 259.7 kB / 1.362 GB, free: 2.859 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.683, allocations: 22.86 kB / 1.362 GB, free: 2.84 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006611/0.6836, allocations: 344.2 kB / 1.362 GB, free: 2.469 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004115/0.6841, allocations: 0.7997 MB / 1.363 GB, free: 1.641 MB / 0.8542 GB Notification: Performance of SimCode: time 2.6e-07/0.6841, allocations: 0 / 1.363 GB, free: 1.641 MB / 0.8542 GB Notification: Performance of Templates: time 0.007454/0.6915, allocations: 4.851 MB / 1.367 GB, free: 12.87 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches