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.175/2.175, allocations: 387.1 MB / 399.7 MB, free: 9.496 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.001193/0.001193, allocations: 180.1 kB / 492.3 MB, free: 0.6133 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.532/1.532, allocations: 221.3 MB / 0.7872 GB, free: 12.88 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.0008526/0.0008523, allocations: 80.02 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.172e-05/4.174e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.33, allocations: 142.3 MB / 1.212 GB, free: 38.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.006/1.336, allocations: 149.8 MB / 1.359 GB, free: 19.02 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/1.336, allocations: 70.83 kB / 1.359 GB, free: 19.02 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01171/1.348, allocations: 3.987 MB / 1.363 GB, free: 34.52 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.142e-06/1.348, allocations: 0 / 1.363 GB, free: 34.52 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.036e-05/1.348, allocations: 3.875 kB / 1.363 GB, free: 34.52 MB / 0.8386 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.000519/1.349, allocations: 484 kB / 1.363 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/1.349, allocations: 7.781 kB / 1.363 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.7e-05/1.349, allocations: 27.11 kB / 1.363 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.571e-05/1.349, allocations: 185.5 kB / 1.363 GB, free: 33.87 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/1.349, allocations: 21.62 kB / 1.363 GB, free: 33.87 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.235e-05/1.349, allocations: 36.11 kB / 1.363 GB, free: 33.87 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/1.349, allocations: 219 kB / 1.364 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/1.349, allocations: 0 / 1.364 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.316e-05/1.349, allocations: 13.17 kB / 1.364 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/1.349, allocations: 3.906 kB / 1.364 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001543/1.35, allocations: 91.64 kB / 1.364 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006667/1.35, allocations: 0.5374 MB / 1.364 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003255/1.351, allocations: 287.4 kB / 1.364 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/1.351, allocations: 137.1 kB / 1.365 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.191e-05/1.351, allocations: 4 kB / 1.365 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006012/1.351, allocations: 0.5732 MB / 1.365 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.623e-06/1.351, allocations: 0 / 1.365 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0006159/1.352, allocations: 467.3 kB / 1.366 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/1.352, allocations: 58.97 kB / 1.366 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.544e-05/1.352, allocations: 127.1 kB / 1.366 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.229e-05/1.352, allocations: 63.03 kB / 1.366 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.307e-05/1.352, allocations: 100.9 kB / 1.366 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.705e-05/1.352, allocations: 110.6 kB / 1.366 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.193e-05/1.352, allocations: 16.16 kB / 1.366 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001003/1.352, allocations: 338.2 kB / 1.366 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002671/1.353, allocations: 180.4 kB / 1.367 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003211/1.353, allocations: 278.5 kB / 1.367 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/1.353, allocations: 193 kB / 1.367 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/1.353, allocations: 7.75 kB / 1.367 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007036/1.354, allocations: 0.5493 MB / 1.368 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.166e-05/1.354, allocations: 69.2 kB / 1.368 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/1.354, allocations: 3.906 kB / 1.368 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/1.354, allocations: 3.812 kB / 1.368 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.023e-05/1.354, allocations: 25.83 kB / 1.368 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/1.354, allocations: 12.03 kB / 1.368 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003611/1.355, allocations: 78.41 kB / 1.368 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-05/1.355, allocations: 37.17 kB / 1.368 GB, free: 32.34 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.0001389/1.355, allocations: 161.7 kB / 1.368 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/1.355, allocations: 33.7 kB / 1.368 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.145e-05/1.355, allocations: 33.75 kB / 1.368 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/1.355, allocations: 7.656 kB / 1.368 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/1.355, allocations: 8 kB / 1.368 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/1.355, allocations: 2.625 kB / 1.368 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/1.356, allocations: 0.9639 MB / 1.369 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/1.356, allocations: 0 / 1.369 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.444e-05/1.356, allocations: 14.7 kB / 1.369 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/1.356, allocations: 3.969 kB / 1.369 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.849e-05/1.356, allocations: 25.2 kB / 1.369 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/1.356, allocations: 0 / 1.369 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/1.356, allocations: 3.844 kB / 1.369 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005818/1.357, allocations: 0.6181 MB / 1.37 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.568e-05/1.357, allocations: 103 kB / 1.37 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.041e-05/1.357, allocations: 30.06 kB / 1.37 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.998e-05/1.357, allocations: 14.2 kB / 1.37 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/1.357, allocations: 100.8 kB / 1.37 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-05/1.357, allocations: 35.23 kB / 1.37 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.931e-05/1.357, allocations: 96.91 kB / 1.37 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.3e-07/1.357, allocations: 0 / 1.37 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003649/1.358, allocations: 104.2 kB / 1.37 GB, free: 31.37 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.0002038/1.358, allocations: 153.5 kB / 1.37 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006397/1.358, allocations: 0.5619 MB / 1.371 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/1.359, allocations: 0 / 1.371 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002578/1.359, allocations: 265.7 kB / 1.371 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002534/1.359, allocations: 36.03 kB / 1.371 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000548/1.36, allocations: 371.4 kB / 1.371 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/1.36, allocations: 0.744 MB / 1.372 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001112/1.36, allocations: 34.45 kB / 1.372 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/1.36, allocations: 48.34 kB / 1.372 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of SimCode: time 3.91e-07/1.36, allocations: 0 / 1.372 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of Templates: time 0.007216/1.367, allocations: 4.532 MB / 1.377 GB, free: 29.93 MB / 0.8386 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