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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.315/2.315, allocations: 390.5 MB / 398 MB, free: 10.95 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.001241/0.001241, allocations: 175.9 kB / 491.2 MB, free: 1.582 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.513/1.513, allocations: 221.5 MB / 0.7868 GB, free: 13.26 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.0009083/0.000908, allocations: 97.66 kB / 0.9269 GB, free: 13.75 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.775e-05/1.778e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3021, allocations: 143 MB / 1.212 GB, free: 39.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.073/1.375, allocations: 149.9 MB / 1.359 GB, free: 17.62 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003032/1.375, allocations: 71.27 kB / 1.359 GB, free: 17.62 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01177/1.387, allocations: 3.955 MB / 1.363 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.194e-06/1.387, allocations: 0 / 1.363 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.167e-05/1.387, allocations: 3.844 kB / 1.363 GB, free: 33.14 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.0006373/1.388, allocations: 492.6 kB / 1.363 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/1.388, allocations: 9.078 kB / 1.363 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.954e-05/1.388, allocations: 27.08 kB / 1.363 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/1.388, allocations: 176.2 kB / 1.363 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.571e-05/1.388, allocations: 9.906 kB / 1.363 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.285e-05/1.388, allocations: 30.78 kB / 1.363 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001722/1.388, allocations: 78.7 kB / 1.363 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/1.389, allocations: 196.4 kB / 1.364 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/1.389, allocations: 3.938 kB / 1.364 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/1.389, allocations: 18.66 kB / 1.364 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/1.389, allocations: 3.906 kB / 1.364 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007505/1.39, allocations: 0.5 MB / 1.364 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000332/1.39, allocations: 256.8 kB / 1.364 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/1.39, allocations: 125.4 kB / 1.365 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.594e-05/1.39, allocations: 7.812 kB / 1.365 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007071/1.391, allocations: 0.5403 MB / 1.365 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.452e-06/1.391, allocations: 0 / 1.365 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.000616/1.392, allocations: 435.6 kB / 1.365 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/1.392, allocations: 59.5 kB / 1.366 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.095e-05/1.392, allocations: 119.2 kB / 1.366 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.246e-05/1.392, allocations: 50.89 kB / 1.366 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.184e-05/1.392, allocations: 113.1 kB / 1.366 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.334e-05/1.392, allocations: 102.7 kB / 1.366 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.158e-05/1.392, allocations: 0 / 1.366 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001196/1.392, allocations: 336.3 kB / 1.366 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/1.392, allocations: 165 kB / 1.366 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002789/1.393, allocations: 264.7 kB / 1.367 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003678/1.393, allocations: 140.1 kB / 1.367 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/1.393, allocations: 3.953 kB / 1.367 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007431/1.394, allocations: 469.3 kB / 1.367 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.102e-05/1.394, allocations: 80.23 kB / 1.367 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/1.394, allocations: 0 / 1.367 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/1.394, allocations: 12.03 kB / 1.367 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.677e-05/1.394, allocations: 25.84 kB / 1.367 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/1.394, allocations: 7.719 kB / 1.367 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003442/1.394, allocations: 72.16 kB / 1.367 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.076e-05/1.394, allocations: 28.86 kB / 1.367 GB, free: 31.13 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.0001669/1.394, allocations: 146.4 kB / 1.368 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.951e-05/1.395, allocations: 27.2 kB / 1.368 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.805e-05/1.395, allocations: 36.61 kB / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/1.395, allocations: 3.812 kB / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/1.395, allocations: 0 / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/1.395, allocations: 7.156 kB / 1.368 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/1.396, allocations: 0.8686 MB / 1.368 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/1.396, allocations: 0 / 1.368 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.675e-05/1.396, allocations: 14.58 kB / 1.368 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/1.396, allocations: 3.812 kB / 1.368 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.495e-05/1.396, allocations: 23.58 kB / 1.369 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/1.396, allocations: 0 / 1.369 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.396, allocations: 3.844 kB / 1.369 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005447/1.396, allocations: 0.5789 MB / 1.369 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.513e-05/1.396, allocations: 102.8 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.094e-05/1.396, allocations: 21.03 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.353e-05/1.397, allocations: 2.766 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001528/1.397, allocations: 99.31 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.949e-05/1.397, allocations: 36.55 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.789e-05/1.397, allocations: 88.52 kB / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.373e-06/1.397, allocations: 0 / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000356/1.397, allocations: 90.66 kB / 1.37 GB, free: 30.19 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.0002294/1.397, allocations: 154.5 kB / 1.37 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000589/1.398, allocations: 0.5241 MB / 1.37 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/1.398, allocations: 3.938 kB / 1.37 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000234/1.398, allocations: 243.6 kB / 1.37 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/1.399, allocations: 30.06 kB / 1.37 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000539/1.399, allocations: 331 kB / 1.371 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/1.399, allocations: 0.7468 MB / 1.371 GB, free: 29.08 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000112/1.4, allocations: 39.06 kB / 1.372 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/1.4, allocations: 45.94 kB / 1.372 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of SimCode: time 5.61e-07/1.4, allocations: 3.938 kB / 1.372 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of Templates: time 0.008764/1.408, allocations: 4.36 MB / 1.376 GB, free: 28.77 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