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.399/2.399, allocations: 390.3 MB / 402.8 MB, free: 6.664 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.001041/0.001041, allocations: 176.9 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.6/1.6, allocations: 221.3 MB / 0.7915 GB, free: 5.414 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.0008815/0.0008815, allocations: 95.75 kB / 0.9317 GB, free: 5.734 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.028e-05/4.031e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3208, allocations: 143 MB / 1.219 GB, free: 13.48 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.052/1.373, allocations: 150.6 MB / 1.366 GB, free: 3.453 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/1.373, allocations: 77.75 kB / 1.366 GB, free: 3.41 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01222/1.386, allocations: 3.982 MB / 1.37 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.004e-06/1.386, allocations: 0 / 1.37 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.015e-05/1.386, allocations: 4 kB / 1.37 GB, free: 15.92 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.0007482/1.386, allocations: 481.5 kB / 1.37 GB, free: 15.41 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/1.387, allocations: 12.03 kB / 1.37 GB, free: 15.39 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/1.387, allocations: 27.89 kB / 1.37 GB, free: 15.37 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/1.387, allocations: 171 kB / 1.37 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.945e-05/1.387, allocations: 22.48 kB / 1.37 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.366e-05/1.387, allocations: 32.92 kB / 1.371 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003645/1.387, allocations: 225.8 kB / 1.371 GB, free: 14.95 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/1.387, allocations: 3.938 kB / 1.371 GB, free: 14.94 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.232e-05/1.387, allocations: 11.67 kB / 1.371 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/1.387, allocations: 7.953 kB / 1.371 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/1.388, allocations: 86.95 kB / 1.371 GB, free: 14.87 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007612/1.388, allocations: 0.5392 MB / 1.371 GB, free: 14.37 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003951/1.389, allocations: 285.8 kB / 1.372 GB, free: 14.19 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001865/1.389, allocations: 141.8 kB / 1.372 GB, free: 14.1 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.077e-06/1.389, allocations: 4 kB / 1.372 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007672/1.39, allocations: 0.5638 MB / 1.372 GB, free: 13.61 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 4.539e-06/1.39, allocations: 0 / 1.372 GB, free: 13.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0007627/1.391, allocations: 470.9 kB / 1.373 GB, free: 13.25 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/1.391, allocations: 59.83 kB / 1.373 GB, free: 13.18 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/1.391, allocations: 127.5 kB / 1.373 GB, free: 13.06 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.612e-05/1.391, allocations: 57.25 kB / 1.373 GB, free: 13.02 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.116e-05/1.391, allocations: 110.8 kB / 1.373 GB, free: 12.91 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.994e-05/1.391, allocations: 102.8 kB / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/1.391, allocations: 13.31 kB / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001495/1.391, allocations: 345.4 kB / 1.374 GB, free: 12.5 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003355/1.392, allocations: 181.8 kB / 1.374 GB, free: 12.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/1.392, allocations: 280.1 kB / 1.374 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002978/1.392, allocations: 194.4 kB / 1.374 GB, free: 11.99 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/1.392, allocations: 3.938 kB / 1.374 GB, free: 11.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009067/1.393, allocations: 0.5496 MB / 1.375 GB, free: 11.54 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.987e-05/1.393, allocations: 75.23 kB / 1.375 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.036e-06/1.393, allocations: 3.984 kB / 1.375 GB, free: 11.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/1.393, allocations: 12.31 kB / 1.375 GB, free: 11.44 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.481e-05/1.393, allocations: 23.36 kB / 1.375 GB, free: 11.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/1.393, allocations: 8 kB / 1.375 GB, free: 11.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004154/1.394, allocations: 81.38 kB / 1.375 GB, free: 11.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-05/1.394, allocations: 27.48 kB / 1.375 GB, free: 11.32 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.0001665/1.394, allocations: 168.3 kB / 1.375 GB, free: 11.17 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.129e-05/1.394, allocations: 23.81 kB / 1.375 GB, free: 11.15 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.477e-05/1.394, allocations: 41.36 kB / 1.375 GB, free: 11.14 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/1.394, allocations: 8 kB / 1.375 GB, free: 11.13 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.394, allocations: 0 / 1.375 GB, free: 11.13 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/1.394, allocations: 0 / 1.375 GB, free: 11.13 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001345/1.396, allocations: 0.9647 MB / 1.376 GB, free: 10.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/1.396, allocations: 0 / 1.376 GB, free: 10.28 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.622e-05/1.396, allocations: 11.94 kB / 1.376 GB, free: 10.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.117e-05/1.396, allocations: 0 / 1.376 GB, free: 10.27 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.007e-05/1.396, allocations: 30.09 kB / 1.376 GB, free: 10.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/1.396, allocations: 7.984 kB / 1.376 GB, free: 10.24 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/1.396, allocations: 3.953 kB / 1.376 GB, free: 10.24 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007395/1.397, allocations: 0.6145 MB / 1.377 GB, free: 9.684 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.878e-05/1.397, allocations: 92.92 kB / 1.377 GB, free: 9.574 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.348e-05/1.397, allocations: 29.17 kB / 1.377 GB, free: 9.559 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/1.397, allocations: 17.48 kB / 1.377 GB, free: 9.547 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/1.397, allocations: 98.11 kB / 1.377 GB, free: 9.465 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.345e-05/1.397, allocations: 38.78 kB / 1.377 GB, free: 9.438 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.871e-05/1.397, allocations: 95.89 kB / 1.377 GB, free: 9.348 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.397, allocations: 0 / 1.377 GB, free: 9.348 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004615/1.398, allocations: 108.7 kB / 1.377 GB, free: 9.258 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.0002569/1.398, allocations: 156.8 kB / 1.377 GB, free: 9.109 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008347/1.399, allocations: 0.569 MB / 1.378 GB, free: 8.668 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/1.399, allocations: 0.625 kB / 1.378 GB, free: 8.668 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003323/1.399, allocations: 259.5 kB / 1.378 GB, free: 8.508 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/1.399, allocations: 32.92 kB / 1.378 GB, free: 8.484 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006982/1.4, allocations: 373.5 kB / 1.379 GB, free: 8.156 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/1.4, allocations: 0.7465 MB / 1.379 GB, free: 7.379 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001207/1.401, allocations: 34.97 kB / 1.379 GB, free: 7.348 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/1.401, allocations: 52.89 kB / 1.379 GB, free: 7.305 MB / 0.8386 GB Notification: Performance of SimCode: time 6.92e-07/1.401, allocations: 0 / 1.379 GB, free: 7.305 MB / 0.8386 GB Notification: Performance of Templates: time 0.009479/1.41, allocations: 4.524 MB / 1.384 GB, free: 2.82 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