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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.583/2.583, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.00142/0.00142, allocations: 186.7 kB / 498.1 MB, free: 5.754 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.534/1.534, allocations: 223.2 MB / 0.7949 GB, free: 17.97 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.001007/0.001007, allocations: 100.1 kB / 0.9346 GB, free: 6.273 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000433/0.000433, allocations: 7.594 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3148, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1988/0.5137, allocations: 149.8 MB / 1.369 GB, free: 12.29 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/0.514, allocations: 71.95 kB / 1.369 GB, free: 12.22 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01246/0.5265, allocations: 3.989 MB / 1.373 GB, free: 8.227 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.365e-06/0.5266, allocations: 0 / 1.373 GB, free: 8.227 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.127e-05/0.5266, allocations: 4 kB / 1.373 GB, free: 8.223 MB / 0.8698 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.0008771/0.5275, allocations: 498.9 kB / 1.374 GB, free: 7.672 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.744e-05/0.5276, allocations: 8.031 kB / 1.374 GB, free: 7.664 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.5277, allocations: 27.91 kB / 1.374 GB, free: 7.637 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.5279, allocations: 179.1 kB / 1.374 GB, free: 7.422 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.702e-05/0.528, allocations: 23.94 kB / 1.374 GB, free: 7.398 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.512e-05/0.5281, allocations: 35.98 kB / 1.374 GB, free: 7.363 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004649/0.5286, allocations: 217.4 kB / 1.374 GB, free: 7.145 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.5286, allocations: 0 / 1.374 GB, free: 7.145 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.525e-05/0.5286, allocations: 19.95 kB / 1.374 GB, free: 7.125 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.5286, allocations: 3.953 kB / 1.374 GB, free: 7.121 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002124/0.5289, allocations: 99.81 kB / 1.374 GB, free: 7.023 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008968/0.5298, allocations: 0.5394 MB / 1.375 GB, free: 6.434 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004901/0.5303, allocations: 290.6 kB / 1.375 GB, free: 6.141 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.102e-05/0.5303, allocations: 4 kB / 1.375 GB, free: 6.137 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007993/0.5311, allocations: 0.5741 MB / 1.376 GB, free: 5.555 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=48): time 2.244e-06/0.5311, allocations: 0 / 1.376 GB, free: 5.555 MB / 0.8698 GB Notification: Performance of matching and sorting (n=48): time 0.001045/0.5322, allocations: 0.6121 MB / 1.376 GB, free: 4.934 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.5322, allocations: 59.83 kB / 1.376 GB, free: 4.863 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.5324, allocations: 128.8 kB / 1.376 GB, free: 4.73 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 9.555e-05/0.5325, allocations: 61.7 kB / 1.376 GB, free: 4.664 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.267e-05/0.5326, allocations: 105 kB / 1.377 GB, free: 4.559 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.5327, allocations: 106.9 kB / 1.377 GB, free: 4.453 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.277e-05/0.5327, allocations: 12 kB / 1.377 GB, free: 4.441 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.5329, allocations: 343.2 kB / 1.377 GB, free: 4.098 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/0.5333, allocations: 185.1 kB / 1.377 GB, free: 3.918 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004051/0.5337, allocations: 280 kB / 1.377 GB, free: 3.613 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003535/0.534, allocations: 201.5 kB / 1.378 GB, free: 3.406 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.534, allocations: 0 / 1.378 GB, free: 3.406 MB / 0.8698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009473/0.535, allocations: 0.5721 MB / 1.378 GB, free: 2.812 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.409e-05/0.5351, allocations: 67.39 kB / 1.378 GB, free: 2.734 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.5351, allocations: 4 kB / 1.378 GB, free: 2.73 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.5351, allocations: 4 kB / 1.378 GB, free: 2.727 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.842e-05/0.5352, allocations: 27.86 kB / 1.378 GB, free: 2.699 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.5352, allocations: 4 kB / 1.378 GB, free: 2.695 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004276/0.5356, allocations: 84.25 kB / 1.378 GB, free: 2.613 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-05/0.5357, allocations: 27.98 kB / 1.378 GB, free: 2.586 MB / 0.8698 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 () * Number of clocked 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.0002224/0.5359, allocations: 182.9 kB / 1.379 GB, free: 2.398 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.098e-05/0.536, allocations: 35.64 kB / 1.379 GB, free: 2.363 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.649e-05/0.5361, allocations: 34.28 kB / 1.379 GB, free: 2.332 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.5361, allocations: 4 kB / 1.379 GB, free: 2.328 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.5361, allocations: 0 / 1.379 GB, free: 2.328 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.5362, allocations: 7.984 kB / 1.379 GB, free: 2.32 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001414/0.5376, allocations: 0.966 MB / 1.38 GB, free: 1.285 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.5376, allocations: 4.125 kB / 1.38 GB, free: 1.281 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.462e-05/0.5376, allocations: 19.92 kB / 1.38 GB, free: 1.262 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.381e-06/0.5377, allocations: 4 kB / 1.38 GB, free: 1.258 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.43e-05/0.5377, allocations: 23.97 kB / 1.38 GB, free: 1.234 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.5377, allocations: 3.938 kB / 1.38 GB, free: 1.23 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.5377, allocations: 4 kB / 1.38 GB, free: 1.227 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000831/0.5386, allocations: 0.6225 MB / 1.38 GB, free: 0.5469 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.744e-05/0.5386, allocations: 92.92 kB / 1.38 GB, free: 448 kB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.435e-05/0.5387, allocations: 35.98 kB / 1.38 GB, free: 412 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.5389, allocations: 11.98 kB / 1.38 GB, free: 400 kB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.539, allocations: 103.7 kB / 1.38 GB, free: 296 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.637e-05/0.5391, allocations: 35.97 kB / 1.381 GB, free: 260 kB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.881e-05/0.5392, allocations: 103 kB / 1.381 GB, free: 160 kB / 0.8698 GB Notification: Performance of sort global known variables: time 3e-07/0.5392, allocations: 0 / 1.381 GB, free: 160 kB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0004433/0.5396, allocations: 99.92 kB / 1.381 GB, free: 60 kB / 0.8698 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) * Number of clocked states: 0 () * 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.0002993/0.5399, allocations: 160.4 kB / 1.381 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0008927/0.5408, allocations: 0.5712 MB / 1.381 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5408, allocations: 0 / 1.381 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000352/0.5412, allocations: 267.7 kB / 1.382 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/0.5415, allocations: 32.72 kB / 1.382 GB, free: 15 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009464/0.5425, allocations: 0.5022 MB / 1.382 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003695/0.5428, allocations: 0.7464 MB / 1.383 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001331/0.543, allocations: 38.95 kB / 1.383 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/0.5431, allocations: 47.41 kB / 1.383 GB, free: 13.6 MB / 0.8855 GB Notification: Performance of SimCode: time 4.2e-07/0.5431, allocations: 0 / 1.383 GB, free: 13.6 MB / 0.8855 GB Notification: Performance of Templates: time 0.008927/0.5521, allocations: 4.516 MB / 1.387 GB, free: 9.109 MB / 0.8855 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