Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.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.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_latest_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_latest_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 10.0.0-master/package.mo): time 1.7/1.7, 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.0009045/0.0009045, allocations: 181.2 kB / 490.8 MB, free: 1.969 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.051/1.051, allocations: 221.3 MB / 0.7863 GB, free: 13.69 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.0008073/0.0008073, allocations: 103.8 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.773e-06/6.793e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1658, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4467/0.6126, allocations: 149.8 MB / 1.358 GB, free: 17.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000167/0.6128, allocations: 70.03 kB / 1.358 GB, free: 17.18 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.009665/0.6225, allocations: 3.668 MB / 1.362 GB, free: 16.99 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.6225, allocations: 2.938 kB / 1.362 GB, free: 16.99 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0004724/0.623, allocations: 481.8 kB / 1.362 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.859e-05/0.623, allocations: 13.22 kB / 1.362 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.6e-05/0.6231, allocations: 23.47 kB / 1.362 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.031e-05/0.6232, allocations: 180.2 kB / 1.362 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.6232, allocations: 17.41 kB / 1.362 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.207e-05/0.6233, allocations: 32.11 kB / 1.362 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001549/0.6234, allocations: 81.22 kB / 1.362 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002608/0.6237, allocations: 202.6 kB / 1.363 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.6237, allocations: 0 / 1.363 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.926e-05/0.6237, allocations: 10.11 kB / 1.363 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.6238, allocations: 7.281 kB / 1.363 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005881/0.6244, allocations: 0.4989 MB / 1.363 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002878/0.6246, allocations: 249 kB / 1.363 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.6248, allocations: 127 kB / 1.363 GB, free: 32 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.126e-05/0.6248, allocations: 5.25 kB / 1.363 GB, free: 32 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003616/0.6252, allocations: 306.6 kB / 1.364 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.493e-06/0.6252, allocations: 0 / 1.364 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0005025/0.6257, allocations: 348.2 kB / 1.364 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.988e-05/0.6257, allocations: 58.44 kB / 1.364 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.546e-05/0.6258, allocations: 128.1 kB / 1.364 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.734e-05/0.6259, allocations: 46.88 kB / 1.364 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.434e-05/0.6259, allocations: 104.2 kB / 1.364 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.468e-05/0.626, allocations: 101.9 kB / 1.364 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.372e-05/0.6261, allocations: 6.969 kB / 1.364 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.6262, allocations: 336.4 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002569/0.6264, allocations: 167.8 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002783/0.6267, allocations: 262.1 kB / 1.365 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003678/0.6271, allocations: 138.1 kB / 1.365 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.6271, allocations: 1.281 kB / 1.365 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007943/0.6279, allocations: 467.2 kB / 1.366 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.385e-06/0.6279, allocations: 5.219 kB / 1.366 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.6279, allocations: 3.219 kB / 1.366 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.6279, allocations: 8.781 kB / 1.366 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.203e-05/0.628, allocations: 27.67 kB / 1.366 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.628, allocations: 9.25 kB / 1.366 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003647/0.6284, allocations: 79.45 kB / 1.366 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.182e-05/0.6285, allocations: 25.53 kB / 1.366 GB, free: 31.04 MB / 0.8386 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.0001248/0.6286, allocations: 148.7 kB / 1.366 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.086e-05/0.6286, allocations: 33.22 kB / 1.366 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.251e-05/0.6287, allocations: 34.97 kB / 1.366 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.6287, allocations: 5.844 kB / 1.366 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.6287, allocations: 4.922 kB / 1.366 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.6287, allocations: 1.547 kB / 1.366 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009399/0.6297, allocations: 0.7986 MB / 1.367 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.6297, allocations: 1.562 kB / 1.367 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.05e-05/0.6297, allocations: 18.38 kB / 1.367 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.6297, allocations: 2.781 kB / 1.367 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/0.6298, allocations: 21.27 kB / 1.367 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.6298, allocations: 2.719 kB / 1.367 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6298, allocations: 2.859 kB / 1.367 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000455/0.6303, allocations: 0.5082 MB / 1.367 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.352e-05/0.6303, allocations: 95.69 kB / 1.368 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.561e-05/0.6304, allocations: 27.11 kB / 1.368 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.6305, allocations: 5.719 kB / 1.368 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.6306, allocations: 96.92 kB / 1.368 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-05/0.6307, allocations: 42.12 kB / 1.368 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.471e-05/0.6307, allocations: 88.45 kB / 1.368 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003366/0.6311, allocations: 82.25 kB / 1.368 GB, free: 30.1 MB / 0.8386 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.000171/0.6312, allocations: 146.7 kB / 1.368 GB, free: 30 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000564/0.6318, allocations: 469.4 kB / 1.368 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.6318, allocations: 1.281 kB / 1.368 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002458/0.6321, allocations: 250.1 kB / 1.369 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.6323, allocations: 28.62 kB / 1.369 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005868/0.6329, allocations: 350.4 kB / 1.369 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003809/0.6333, allocations: 0.7882 MB / 1.37 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.6333, allocations: 0 / 1.37 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of Templates: time 0.007158/0.6405, allocations: 4.86 MB / 1.375 GB, free: 28.74 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches