Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.614/1.614, allocations: 289.7 MB / 302.2 MB, free: 2.18 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001181/0.001181, allocations: 186.4 kB / 371.6 MB, free: 3.363 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.8/1.8, allocations: 205.1 MB / 0.6309 GB, free: 11.73 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009317/0.000932, allocations: 86.22 kB / 0.745 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.542e-05/4.545e-05, allocations: 4 kB / 0.8663 GB, free: 15.06 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.305, allocations: 116.3 MB / 0.9798 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9282/1.233, allocations: 139.5 MB / 1.116 GB, free: 44.29 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/1.234, allocations: 74.44 kB / 1.116 GB, free: 44.26 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01056/1.244, allocations: 3.959 MB / 1.12 GB, free: 42.06 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.723e-06/1.244, allocations: 0 / 1.12 GB, free: 42.06 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 9.578e-06/1.244, allocations: 4 kB / 1.12 GB, free: 42.05 MB / 0.7448 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.0005116/1.245, allocations: 479 kB / 1.12 GB, free: 41.58 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/1.245, allocations: 8.031 kB / 1.12 GB, free: 41.57 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.738e-05/1.245, allocations: 25 kB / 1.12 GB, free: 41.55 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.895e-05/1.245, allocations: 174.2 kB / 1.121 GB, free: 41.35 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.976e-05/1.245, allocations: 23.34 kB / 1.121 GB, free: 41.34 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.575e-05/1.245, allocations: 35.06 kB / 1.121 GB, free: 41.31 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/1.245, allocations: 213 kB / 1.121 GB, free: 41.2 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/1.245, allocations: 3.938 kB / 1.121 GB, free: 41.2 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/1.245, allocations: 22.7 kB / 1.121 GB, free: 41.18 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/1.245, allocations: 1.125 kB / 1.121 GB, free: 41.18 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001567/1.246, allocations: 90.38 kB / 1.121 GB, free: 41.13 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006804/1.246, allocations: 0.5421 MB / 1.122 GB, free: 40.76 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003475/1.247, allocations: 280.6 kB / 1.122 GB, free: 40.59 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/1.247, allocations: 139.5 kB / 1.122 GB, free: 40.51 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.409e-05/1.247, allocations: 4 kB / 1.122 GB, free: 40.5 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006198/1.247, allocations: 0.5622 MB / 1.122 GB, free: 40.2 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=48): time 2.214e-06/1.248, allocations: 4.219 kB / 1.122 GB, free: 40.2 MB / 0.7448 GB Notification: Performance of matching and sorting (n=48): time 0.0006583/1.248, allocations: 472.8 kB / 1.123 GB, free: 39.89 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/1.248, allocations: 59.78 kB / 1.123 GB, free: 39.82 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.702e-05/1.248, allocations: 128.3 kB / 1.123 GB, free: 39.71 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 6.777e-05/1.248, allocations: 62.28 kB / 1.123 GB, free: 39.66 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.349e-05/1.248, allocations: 97.48 kB / 1.123 GB, free: 39.57 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 7.823e-05/1.249, allocations: 110.4 kB / 1.123 GB, free: 39.5 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/1.249, allocations: 18.09 kB / 1.123 GB, free: 39.49 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.781e-05/1.249, allocations: 336.1 kB / 1.124 GB, free: 39.17 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002637/1.249, allocations: 180.9 kB / 1.124 GB, free: 39.07 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003167/1.249, allocations: 277.1 kB / 1.124 GB, free: 38.86 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002278/1.249, allocations: 191.8 kB / 1.124 GB, free: 38.71 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/1.249, allocations: 3.953 kB / 1.124 GB, free: 38.7 MB / 0.7448 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007162/1.25, allocations: 0.5624 MB / 1.125 GB, free: 38.28 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.782e-05/1.25, allocations: 70.2 kB / 1.125 GB, free: 38.21 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/1.25, allocations: 0 / 1.125 GB, free: 38.21 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/1.25, allocations: 9.5 kB / 1.125 GB, free: 38.2 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.097e-05/1.25, allocations: 26.06 kB / 1.125 GB, free: 38.18 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/1.25, allocations: 4 kB / 1.125 GB, free: 38.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003923/1.251, allocations: 83.19 kB / 1.125 GB, free: 38.12 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.216e-05/1.251, allocations: 28.14 kB / 1.125 GB, free: 38.1 MB / 0.7448 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.0001386/1.251, allocations: 174.6 kB / 1.125 GB, free: 37.95 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.808e-05/1.251, allocations: 27.67 kB / 1.125 GB, free: 37.93 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/1.251, allocations: 43.53 kB / 1.125 GB, free: 37.92 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/1.251, allocations: 4 kB / 1.125 GB, free: 37.92 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/1.251, allocations: 0.8125 kB / 1.125 GB, free: 37.92 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/1.251, allocations: 0.5625 kB / 1.125 GB, free: 37.92 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/1.252, allocations: 0.9527 MB / 1.126 GB, free: 37.24 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/1.252, allocations: 0 / 1.126 GB, free: 37.24 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.501e-05/1.252, allocations: 18.75 kB / 1.126 GB, free: 37.23 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/1.252, allocations: 4 kB / 1.126 GB, free: 37.22 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.778e-05/1.252, allocations: 29.8 kB / 1.126 GB, free: 37.21 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/1.252, allocations: 0.75 kB / 1.126 GB, free: 37.21 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/1.252, allocations: 4 kB / 1.126 GB, free: 37.21 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005973/1.253, allocations: 0.6229 MB / 1.127 GB, free: 36.7 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.242e-05/1.253, allocations: 96.86 kB / 1.127 GB, free: 36.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.197e-05/1.253, allocations: 27.28 kB / 1.127 GB, free: 36.58 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.998e-05/1.253, allocations: 18.81 kB / 1.127 GB, free: 36.57 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/1.253, allocations: 102.1 kB / 1.127 GB, free: 36.54 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.025e-05/1.253, allocations: 33.06 kB / 1.127 GB, free: 36.52 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.867e-05/1.254, allocations: 100.9 kB / 1.127 GB, free: 36.43 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.5e-07/1.254, allocations: 4 kB / 1.127 GB, free: 36.43 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003593/1.254, allocations: 97.62 kB / 1.127 GB, free: 36.35 MB / 0.7448 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.0002137/1.254, allocations: 154.3 kB / 1.128 GB, free: 36.21 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0006701/1.255, allocations: 0.5672 MB / 1.128 GB, free: 35.78 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/1.255, allocations: 0 / 1.128 GB, free: 35.78 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002603/1.255, allocations: 258.3 kB / 1.128 GB, free: 35.62 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000264/1.255, allocations: 42.86 kB / 1.128 GB, free: 35.6 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005701/1.256, allocations: 373.3 kB / 1.129 GB, free: 35.3 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001637/1.256, allocations: 0.7424 MB / 1.129 GB, free: 34.55 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001082/1.256, allocations: 42.39 kB / 1.129 GB, free: 34.53 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/1.256, allocations: 45.91 kB / 1.13 GB, free: 34.5 MB / 0.7448 GB Notification: Performance of SimCode: time 4.7e-07/1.256, allocations: 0 / 1.13 GB, free: 34.5 MB / 0.7448 GB Notification: Performance of Templates: time 0.007161/1.264, allocations: 4.536 MB / 1.134 GB, free: 32.02 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)