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.323/2.323, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001141/0.001141, allocations: 187.9 kB / 0.4902 GB, free: 2.227 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.66/1.66, allocations: 223.1 MB / 0.7992 GB, free: 14.75 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.0008548/0.0008548, allocations: 98.33 kB / 0.9396 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0006254/0.0006255, allocations: 10.34 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3383, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2209/0.5593, allocations: 150.6 MB / 1.376 GB, free: 2.934 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.5596, allocations: 67.97 kB / 1.376 GB, free: 2.867 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01185/0.5714, allocations: 3.988 MB / 1.38 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.665e-06/0.5715, allocations: 0 / 1.38 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.297e-06/0.5715, allocations: 4 kB / 1.38 GB, free: 14.87 MB / 0.8855 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.0007622/0.5723, allocations: 494.9 kB / 1.381 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.5723, allocations: 12.56 kB / 1.381 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.5724, allocations: 31.8 kB / 1.381 GB, free: 14.28 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000168/0.5726, allocations: 171 kB / 1.381 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.677e-05/0.5727, allocations: 23.98 kB / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.126e-05/0.5728, allocations: 35.92 kB / 1.381 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004203/0.5732, allocations: 225.4 kB / 1.381 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.5732, allocations: 0 / 1.381 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.56e-05/0.5733, allocations: 11.98 kB / 1.381 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.5733, allocations: 11.95 kB / 1.381 GB, free: 13.76 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001952/0.5735, allocations: 91.94 kB / 1.381 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009189/0.5744, allocations: 0.5431 MB / 1.382 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004689/0.5749, allocations: 287.3 kB / 1.382 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.5749, allocations: 4 kB / 1.382 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009039/0.5758, allocations: 0.5705 MB / 1.383 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 4.278e-06/0.5758, allocations: 0 / 1.383 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.001091/0.5769, allocations: 0.612 MB / 1.383 GB, free: 11.58 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.577, allocations: 59.78 kB / 1.383 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.5771, allocations: 140.1 kB / 1.384 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 8.984e-05/0.5772, allocations: 57.69 kB / 1.384 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.366e-05/0.5773, allocations: 105 kB / 1.384 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 9.336e-05/0.5774, allocations: 102.9 kB / 1.384 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.664e-05/0.5775, allocations: 12 kB / 1.384 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.5776, allocations: 339.2 kB / 1.384 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003452/0.578, allocations: 185.1 kB / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004001/0.5784, allocations: 280.1 kB / 1.385 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/0.5787, allocations: 205.5 kB / 1.385 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.5787, allocations: 0 / 1.385 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008738/0.5796, allocations: 0.5605 MB / 1.385 GB, free: 9.473 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.344e-05/0.5797, allocations: 67.41 kB / 1.385 GB, free: 9.395 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.5797, allocations: 320 / 1.385 GB, free: 9.395 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.5797, allocations: 19.92 kB / 1.385 GB, free: 9.375 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.528e-05/0.5798, allocations: 19.92 kB / 1.385 GB, free: 9.355 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.5798, allocations: 11.94 kB / 1.385 GB, free: 9.344 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004205/0.5802, allocations: 87.78 kB / 1.385 GB, free: 9.258 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.863e-05/0.5803, allocations: 24 kB / 1.386 GB, free: 9.234 MB / 0.8855 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.0002133/0.5805, allocations: 178.9 kB / 1.386 GB, free: 9.051 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.5806, allocations: 27.8 kB / 1.386 GB, free: 9.023 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.5807, allocations: 42.28 kB / 1.386 GB, free: 8.984 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.5807, allocations: 8 kB / 1.386 GB, free: 8.977 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.5807, allocations: 0 / 1.386 GB, free: 8.977 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.852e-06/0.5807, allocations: 3.984 kB / 1.386 GB, free: 8.973 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/0.5822, allocations: 0.966 MB / 1.387 GB, free: 7.938 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.5822, allocations: 4 kB / 1.387 GB, free: 7.934 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.263e-05/0.5822, allocations: 15.92 kB / 1.387 GB, free: 7.918 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.553e-06/0.5822, allocations: 7.938 kB / 1.387 GB, free: 7.91 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.588e-05/0.5823, allocations: 23.97 kB / 1.387 GB, free: 7.887 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.5823, allocations: 4 kB / 1.387 GB, free: 7.883 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.5823, allocations: 4.125 kB / 1.387 GB, free: 7.879 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007924/0.5831, allocations: 0.6341 MB / 1.387 GB, free: 7.191 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.702e-05/0.5832, allocations: 92.92 kB / 1.387 GB, free: 7.082 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.186e-05/0.5833, allocations: 31.98 kB / 1.388 GB, free: 7.051 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.5834, allocations: 11.98 kB / 1.388 GB, free: 7.039 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002035/0.5836, allocations: 99.8 kB / 1.388 GB, free: 6.941 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.132e-05/0.5837, allocations: 31.97 kB / 1.388 GB, free: 6.91 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.217e-05/0.5837, allocations: 99.27 kB / 1.388 GB, free: 6.812 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.195e-06/0.5837, allocations: 4 kB / 1.388 GB, free: 6.809 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004429/0.5842, allocations: 103.9 kB / 1.388 GB, free: 6.707 MB / 0.8855 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.0002957/0.5845, allocations: 155.9 kB / 1.388 GB, free: 6.547 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0008922/0.5854, allocations: 0.5755 MB / 1.389 GB, free: 5.945 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5854, allocations: 4.125 kB / 1.389 GB, free: 5.941 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003661/0.5858, allocations: 268.1 kB / 1.389 GB, free: 5.68 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.5861, allocations: 37.02 kB / 1.389 GB, free: 5.645 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008938/0.587, allocations: 0.4974 MB / 1.389 GB, free: 5.109 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004171/0.5875, allocations: 0.7387 MB / 1.39 GB, free: 4.34 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001222/0.5876, allocations: 38.97 kB / 1.39 GB, free: 4.305 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.5877, allocations: 47.41 kB / 1.39 GB, free: 4.258 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.5877, allocations: 7.938 kB / 1.39 GB, free: 4.25 MB / 0.8855 GB Notification: Performance of Templates: time 0.008813/0.5966, allocations: 4.52 MB / 1.395 GB, free: 15.76 MB / 0.9011 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