Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.726/1.726, allocations: 288.3 MB / 303.2 MB, free: 8.133 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.001917/0.001917, allocations: 191 kB / 371.9 MB, free: 10.27 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.957/1.957, allocations: 205.4 MB / 0.6306 GB, free: 10.02 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008594/0.0008592, allocations: 101.8 kB / 0.7439 GB, free: 5.934 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003825/0.0003827, allocations: 12.62 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.195/0.1954, allocations: 115.3 MB / 0.9794 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle): time 0.0008843/0.1964, allocations: 482.3 kB / 0.9799 GB, free: 27.21 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001334/0.1977, allocations: 1.278 MB / 0.9811 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.034e-05/0.1978, allocations: 0 / 0.9811 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.001e-05/0.1978, allocations: 15.8 kB / 0.9812 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.787e-05/0.1979, allocations: 15.98 kB / 0.9812 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006232/0.1985, allocations: 270.6 kB / 0.9814 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001426/0.1987, allocations: 175.8 kB / 0.9816 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.1988, allocations: 48.78 kB / 0.9817 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.1989, allocations: 127.8 kB / 0.9818 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.199, allocations: 111.6 kB / 0.9819 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.024e-05/0.1991, allocations: 27.88 kB / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.171e-05/0.1992, allocations: 31.97 kB / 0.9819 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.978e-05/0.1992, allocations: 51.86 kB / 0.982 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.672e-05/0.1993, allocations: 61.64 kB / 0.982 GB, free: 25 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001867/0.1995, allocations: 231.7 kB / 0.9823 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1995, allocations: 4 kB / 0.9823 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.904e-06/0.1995, allocations: 0 / 0.9823 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.1995, allocations: 0 / 0.9823 GB, free: 24.77 MB / 0.6198 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.0005409/0.2, allocations: 482.3 kB / 0.9827 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.2001, allocations: 12.02 kB / 0.9827 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.841e-05/0.2002, allocations: 23.91 kB / 0.9828 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005875/0.2008, allocations: 282.6 kB / 0.983 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.753e-05/0.2008, allocations: 20 kB / 0.9831 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.696e-05/0.2009, allocations: 31.98 kB / 0.9831 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.2012, allocations: 214.8 kB / 0.9833 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.2012, allocations: 0 / 0.9833 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.2013, allocations: 19.91 kB / 0.9833 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.2013, allocations: 4 kB / 0.9833 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001618/0.2014, allocations: 91.88 kB / 0.9834 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007114/0.2022, allocations: 0.5742 MB / 0.984 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003575/0.2025, allocations: 242.6 kB / 0.9842 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 8.596e-06/0.2026, allocations: 7.953 kB / 0.9842 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006083/0.2032, allocations: 0.5452 MB / 0.9847 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=44): time 1.894e-06/0.2032, allocations: 3.938 kB / 0.9847 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of matching and sorting (n=44): time 0.0008031/0.204, allocations: 0.5558 MB / 0.9853 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.878e-05/0.204, allocations: 55.41 kB / 0.9853 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.506e-05/0.2041, allocations: 155.4 kB / 0.9855 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.23e-05/0.2042, allocations: 65.69 kB / 0.9855 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.796e-05/0.2043, allocations: 113.2 kB / 0.9856 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.923e-05/0.2043, allocations: 102.8 kB / 0.9857 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.261e-05/0.2044, allocations: 12 kB / 0.9858 GB, free: 20.97 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.995e-05/0.2044, allocations: 334.8 kB / 0.9861 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002694/0.2047, allocations: 185.1 kB / 0.9863 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003066/0.205, allocations: 293.8 kB / 0.9865 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.2052, allocations: 189.5 kB / 0.9867 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2052, allocations: 0 / 0.9867 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007185/0.206, allocations: 0.5646 MB / 0.9873 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.176e-05/0.206, allocations: 71.44 kB / 0.9873 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.206, allocations: 0 / 0.9873 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.2061, allocations: 8 kB / 0.9873 GB, free: 19.26 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.166e-05/0.2061, allocations: 27.86 kB / 0.9874 GB, free: 19.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.2061, allocations: 11.92 kB / 0.9874 GB, free: 19.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003933/0.2065, allocations: 95.64 kB / 0.9875 GB, free: 19.13 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-05/0.2066, allocations: 27.98 kB / 0.9875 GB, free: 19.1 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 70 ($PRE.falCleTruIni.clr,$PRE.falCleFalIni.clr,$PRE.truCleTruIni.clr,$PRE.truCleFalIni.clr,$PRE.swiCleInp.clr,$PRE.swiCleInp1.clr,$whenCondition27,$whenCondition28,$whenCondition25,$whenCondition26,fal.y,tru.y,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.falCleTruIni.u,falCleTruIni.u,$PRE.falCleTruIni.y,falCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,$PRE.falCleFalIni.y,falCleFalIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,$PRE.truCleTruIni.y,truCleTruIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,$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,truCleFalIni.clr,truCleTruIni.clr,falCleFalIni.clr,falCleTruIni.clr) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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.000143/0.2068, allocations: 179 kB / 0.9877 GB, free: 18.92 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.057e-05/0.2068, allocations: 31.66 kB / 0.9877 GB, free: 18.89 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.274e-05/0.2069, allocations: 38.31 kB / 0.9877 GB, free: 18.85 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2069, allocations: 4 kB / 0.9877 GB, free: 18.85 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.2069, allocations: 0 / 0.9877 GB, free: 18.85 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.2069, allocations: 3.984 kB / 0.9877 GB, free: 18.84 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009397/0.2079, allocations: 0.8858 MB / 0.9886 GB, free: 17.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2079, allocations: 4 kB / 0.9886 GB, free: 17.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.24e-05/0.2079, allocations: 11.94 kB / 0.9886 GB, free: 17.89 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.2079, allocations: 4 kB / 0.9886 GB, free: 17.88 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.43e-05/0.208, allocations: 19.97 kB / 0.9886 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.208, allocations: 0 / 0.9886 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.208, allocations: 4 kB / 0.9886 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005234/0.2085, allocations: 0.5384 MB / 0.9892 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.722e-05/0.2086, allocations: 100.7 kB / 0.9893 GB, free: 17.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.277e-05/0.2086, allocations: 31.92 kB / 0.9893 GB, free: 17.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.353e-05/0.2087, allocations: 15.97 kB / 0.9893 GB, free: 17.14 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.2089, allocations: 87.81 kB / 0.9894 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-05/0.2089, allocations: 35.97 kB / 0.9894 GB, free: 17.02 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.054e-05/0.209, allocations: 100.3 kB / 0.9895 GB, free: 16.92 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.209, allocations: 4 kB / 0.9895 GB, free: 16.92 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003673/0.2093, allocations: 99.98 kB / 0.9896 GB, free: 16.82 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 44 (swiCleInp1.clr,swiCleInp.clr,$whenCondition27,$whenCondition28,$whenCondition25,$whenCondition26,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,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) * Number of discrete states: 12 (falCleFalIni.u,falCleFalIni.y,falCleTruIni.u,falCleTruIni.y,truCleTruIni.u,truCleTruIni.y,truCleFalIni.u,truCleFalIni.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 36 * 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.0001904/0.2095, allocations: 141.1 kB / 0.9898 GB, free: 16.68 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006348/0.2102, allocations: 0.5569 MB / 0.9903 GB, free: 16.09 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2102, allocations: 4.25 kB / 0.9903 GB, free: 16.09 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002528/0.2105, allocations: 264 kB / 0.9906 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.2107, allocations: 25.23 kB / 0.9906 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006542/0.2114, allocations: 473.4 kB / 0.991 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001556/0.2115, allocations: 0.7413 MB / 0.9918 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001484/0.2117, allocations: 38.97 kB / 0.9918 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.2118, allocations: 47.39 kB / 0.9918 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of SimCode: time 2.7e-07/0.2118, allocations: 0 / 0.9918 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of Templates: time 0.007442/0.2193, allocations: 4.422 MB / 0.9962 GB, free: 10.08 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)