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.899/1.899, allocations: 292.3 MB / 308.1 MB, free: 4.336 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.002053/0.002053, allocations: 198.1 kB / 376.9 MB, free: 1.867 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.841/1.841, allocations: 205.1 MB / 0.6354 GB, free: 9.805 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.001049/0.001049, allocations: 96.75 kB / 0.748 GB, free: 61.07 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 51.92 kB / 0.8704 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2703, allocations: 114.5 MB / 0.9822 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle): time 0.002484/0.2728, allocations: 0.8445 MB / 0.9831 GB, free: 9.535 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002056/0.2749, allocations: 1.355 MB / 0.9844 GB, free: 8.164 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.275, allocations: 4 kB / 0.9844 GB, free: 8.16 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 4.86e-05/0.2751, allocations: 11.86 kB / 0.9844 GB, free: 8.148 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 8.84e-05/0.2752, allocations: 3.938 kB / 0.9844 GB, free: 8.145 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008621/0.2761, allocations: 291.5 kB / 0.9847 GB, free: 7.859 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0003882/0.2765, allocations: 323.6 kB / 0.985 GB, free: 7.543 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.2767, allocations: 53.08 kB / 0.985 GB, free: 7.492 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.2769, allocations: 147.6 kB / 0.9852 GB, free: 7.348 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.2771, allocations: 123.6 kB / 0.9853 GB, free: 7.227 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 7.202e-05/0.2772, allocations: 20 kB / 0.9853 GB, free: 7.207 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.2773, allocations: 35.92 kB / 0.9854 GB, free: 7.172 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 7.008e-05/0.2774, allocations: 63.84 kB / 0.9854 GB, free: 7.109 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0001491/0.2775, allocations: 123.6 kB / 0.9855 GB, free: 6.988 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0003947/0.2779, allocations: 323.4 kB / 0.9858 GB, free: 6.672 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.278, allocations: 4 kB / 0.9858 GB, free: 6.668 MB / 0.7136 GB Notification: Performance of FrontEnd: time 9.72e-07/0.278, allocations: 4 kB / 0.9858 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.278, allocations: 0 / 0.9858 GB, free: 6.664 MB / 0.7136 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.0008759/0.2789, allocations: 0.5492 MB / 0.9864 GB, free: 6.051 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.2789, allocations: 8.031 kB / 0.9864 GB, free: 6.043 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.279, allocations: 28.69 kB / 0.9864 GB, free: 6.016 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006056/0.2796, allocations: 252.3 kB / 0.9867 GB, free: 5.73 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/0.2797, allocations: 24.36 kB / 0.9867 GB, free: 5.707 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.861e-05/0.2798, allocations: 40.36 kB / 0.9867 GB, free: 5.668 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003738/0.2801, allocations: 214 kB / 0.9869 GB, free: 5.453 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.2802, allocations: 3.938 kB / 0.9869 GB, free: 5.449 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.406e-05/0.2802, allocations: 19.95 kB / 0.9869 GB, free: 5.43 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.2802, allocations: 8 kB / 0.987 GB, free: 5.422 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001891/0.2804, allocations: 95.88 kB / 0.987 GB, free: 5.328 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008596/0.2813, allocations: 0.5664 MB / 0.9876 GB, free: 4.711 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004327/0.2818, allocations: 246.6 kB / 0.9878 GB, free: 4.461 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.282, allocations: 120.8 kB / 0.988 GB, free: 4.34 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.282, allocations: 0 / 0.988 GB, free: 4.34 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007651/0.2828, allocations: 0.5516 MB / 0.9885 GB, free: 3.777 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=44): time 1.694e-06/0.2828, allocations: 0 / 0.9885 GB, free: 3.777 MB / 0.7136 GB Notification: Performance of matching and sorting (n=44): time 0.000957/0.2837, allocations: 0.5558 MB / 0.989 GB, free: 3.215 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.974e-05/0.2838, allocations: 63.3 kB / 0.9891 GB, free: 3.141 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.2839, allocations: 157.6 kB / 0.9892 GB, free: 2.977 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.886e-05/0.284, allocations: 61.69 kB / 0.9893 GB, free: 2.91 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.497e-05/0.2841, allocations: 116.9 kB / 0.9894 GB, free: 2.793 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.376e-05/0.2842, allocations: 98.94 kB / 0.9895 GB, free: 2.695 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.2844, allocations: 130.1 kB / 0.9896 GB, free: 2.562 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.2845, allocations: 334.8 kB / 0.99 GB, free: 2.227 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003245/0.2848, allocations: 181.1 kB / 0.9901 GB, free: 2.047 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003709/0.2852, allocations: 297.7 kB / 0.9904 GB, free: 1.715 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000468/0.2857, allocations: 369.1 kB / 0.9908 GB, free: 1.305 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.2857, allocations: 4 kB / 0.9908 GB, free: 1.301 MB / 0.7136 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008223/0.2865, allocations: 0.5643 MB / 0.9913 GB, free: 0.7188 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.212e-05/0.2866, allocations: 67.33 kB / 0.9914 GB, free: 0.6406 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.2866, allocations: 4 kB / 0.9914 GB, free: 0.6367 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.2866, allocations: 8 kB / 0.9914 GB, free: 0.6289 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.235e-05/0.2867, allocations: 32.17 kB / 0.9914 GB, free: 0.5977 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.2867, allocations: 8 kB / 0.9914 GB, free: 0.5898 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003754/0.2871, allocations: 79.62 kB / 0.9915 GB, free: 0.5117 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.232e-05/0.2872, allocations: 31.98 kB / 0.9915 GB, free: 492 kB / 0.7136 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,falCleTruIni.clr,falCleFalIni.clr,truCleTruIni.clr,truCleFalIni.clr,togInp.y,$PRE.togInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,$PRE.swiCleInp1.y,swiCleInp1.clr,swiCleInp1.u,$PRE.swiCleInp1.u,swiCleInp.y,$PRE.swiCleInp.y,swiCleInp.clr,swiCleInp.u,$PRE.swiCleInp.u,truCleFalIni.y,$PRE.truCleFalIni.y,truCleFalIni.u,$PRE.truCleFalIni.u,truCleTruIni.y,$PRE.truCleTruIni.y,truCleTruIni.u,$PRE.truCleTruIni.u,falCleFalIni.y,$PRE.falCleFalIni.y,falCleFalIni.u,$PRE.falCleFalIni.u,falCleTruIni.y,$PRE.falCleTruIni.y,falCleTruIni.u,$PRE.falCleTruIni.u,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001858/0.2874, allocations: 178.9 kB / 0.9917 GB, free: 304 kB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.547e-05/0.2874, allocations: 35.7 kB / 0.9917 GB, free: 268 kB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001013/0.2875, allocations: 34.31 kB / 0.9918 GB, free: 232 kB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.2875, allocations: 7.938 kB / 0.9918 GB, free: 224 kB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.2875, allocations: 0 / 0.9918 GB, free: 224 kB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.2876, allocations: 4 kB / 0.9918 GB, free: 220 kB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.2887, allocations: 0.8781 MB / 0.9926 GB, free: 15.28 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.2887, allocations: 7.922 kB / 0.9926 GB, free: 15.27 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.974e-05/0.2888, allocations: 11.94 kB / 0.9927 GB, free: 15.26 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.2888, allocations: 0 / 0.9927 GB, free: 15.26 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.821e-05/0.2888, allocations: 23.97 kB / 0.9927 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2888, allocations: 0 / 0.9927 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2888, allocations: 0 / 0.9927 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.29, allocations: 1.251 MB / 0.9939 GB, free: 13.93 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.016e-05/0.29, allocations: 104.8 kB / 0.994 GB, free: 13.81 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.239e-05/0.2901, allocations: 27.98 kB / 0.994 GB, free: 13.78 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.195e-05/0.2902, allocations: 12 kB / 0.994 GB, free: 13.77 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.2904, allocations: 63.89 kB / 0.9941 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.495e-05/0.2904, allocations: 43.95 kB / 0.9941 GB, free: 13.66 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 6.039e-05/0.2905, allocations: 105.4 kB / 0.9942 GB, free: 13.56 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2905, allocations: 0 / 0.9942 GB, free: 13.56 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004835/0.291, allocations: 99.84 kB / 0.9943 GB, free: 13.46 MB / 0.7292 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000219/0.2912, allocations: 149.8 kB / 0.9945 GB, free: 13.31 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007654/0.292, allocations: 0.5722 MB / 0.995 GB, free: 12.71 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.292, allocations: 0 / 0.995 GB, free: 12.71 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003073/0.2923, allocations: 251.8 kB / 0.9953 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.2927, allocations: 47.89 kB / 0.9953 GB, free: 12.42 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000915/0.2936, allocations: 0.6935 MB / 0.996 GB, free: 11.69 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.2939, allocations: 0.7413 MB / 0.9967 GB, free: 10.92 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001224/0.294, allocations: 38.97 kB / 0.9968 GB, free: 10.89 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.2942, allocations: 51.39 kB / 0.9968 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of SimCode: time 2.51e-07/0.2942, allocations: 0 / 0.9968 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of Templates: time 0.008973/0.3032, allocations: 4.986 MB / 1.002 GB, free: 5.875 MB / 0.7292 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)