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/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 187 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.599/1.599, allocations: 205.1 MB / 222.5 MB, free: 4.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.885/1.885, allocations: 292.3 MB / 0.549 GB, free: 12.76 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 72.38 kB / 0.6723 GB, free: 26.08 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3056, allocations: 114.5 MB / 0.7841 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle): time 0.002843/0.3085, allocations: 0.7823 MB / 0.7849 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002229/0.3107, allocations: 1.341 MB / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.3109, allocations: 0 / 0.7862 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 6.017e-05/0.311, allocations: 19.8 kB / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001045/0.3111, allocations: 7.875 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.3122, allocations: 313.5 kB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005547/0.3128, allocations: 383.2 kB / 0.7869 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002038/0.313, allocations: 49.11 kB / 0.7869 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.3133, allocations: 163.7 kB / 0.7871 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002543/0.3136, allocations: 131.6 kB / 0.7872 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.719e-05/0.3136, allocations: 36 kB / 0.7873 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001567/0.3138, allocations: 59.91 kB / 0.7873 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.3139, allocations: 75.84 kB / 0.7874 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001858/0.3141, allocations: 135.6 kB / 0.7875 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005382/0.3147, allocations: 335.1 kB / 0.7878 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3147, allocations: 3.938 kB / 0.7878 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.275e-06/0.3147, allocations: 0 / 0.7878 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.344e-05/0.3147, allocations: 4 kB / 0.7878 GB, free: 8.902 MB / 0.6075 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.001175/0.3159, allocations: 0.5375 MB / 0.7884 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.696e-05/0.316, allocations: 12.03 kB / 0.7884 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001794/0.3162, allocations: 28.73 kB / 0.7884 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009153/0.3171, allocations: 264.3 kB / 0.7887 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.477e-05/0.3172, allocations: 28.34 kB / 0.7887 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.669e-05/0.3173, allocations: 36.36 kB / 0.7887 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005262/0.3178, allocations: 225.8 kB / 0.7889 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.3178, allocations: 7.938 kB / 0.7889 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.899e-05/0.3179, allocations: 11.98 kB / 0.789 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.3179, allocations: 4 kB / 0.789 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002581/0.3182, allocations: 87.94 kB / 0.789 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/0.3194, allocations: 0.5703 MB / 0.7896 GB, free: 6.949 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005482/0.32, allocations: 250.1 kB / 0.7898 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.3202, allocations: 108.8 kB / 0.7899 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.3202, allocations: 4 kB / 0.7899 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009508/0.3212, allocations: 0.5569 MB / 0.7905 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=44): time 3.076e-06/0.3212, allocations: 0 / 0.7905 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of matching and sorting (n=44): time 0.001142/0.3224, allocations: 0.5518 MB / 0.791 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.3224, allocations: 71.28 kB / 0.7911 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.3226, allocations: 152.3 kB / 0.7912 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.545e-05/0.3227, allocations: 57.7 kB / 0.7913 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.864e-05/0.3228, allocations: 116.8 kB / 0.7914 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.689e-05/0.3229, allocations: 98.86 kB / 0.7915 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.3231, allocations: 134.2 kB / 0.7916 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3233, allocations: 338.8 kB / 0.792 GB, free: 4.461 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000358/0.3236, allocations: 181.1 kB / 0.7921 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004238/0.3241, allocations: 289.8 kB / 0.7924 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00052/0.3246, allocations: 369 kB / 0.7928 GB, free: 3.547 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.3246, allocations: 0 / 0.7928 GB, free: 3.547 MB / 0.6075 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009432/0.3256, allocations: 0.576 MB / 0.7933 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.587e-05/0.3257, allocations: 67.39 kB / 0.7934 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.3257, allocations: 4 kB / 0.7934 GB, free: 2.867 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.3257, allocations: 4 kB / 0.7934 GB, free: 2.863 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.018e-05/0.3258, allocations: 31.8 kB / 0.7934 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.3258, allocations: 7.938 kB / 0.7934 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/0.3262, allocations: 84 kB / 0.7935 GB, free: 2.742 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-05/0.3263, allocations: 28 kB / 0.7935 GB, free: 2.715 MB / 0.6075 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.000201/0.3265, allocations: 178.9 kB / 0.7937 GB, free: 2.531 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.879e-05/0.3266, allocations: 27.8 kB / 0.7937 GB, free: 2.504 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.3267, allocations: 38.31 kB / 0.7938 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.3267, allocations: 7.938 kB / 0.7938 GB, free: 2.461 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.3267, allocations: 0 / 0.7938 GB, free: 2.461 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.3267, allocations: 3.984 kB / 0.7938 GB, free: 2.457 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001341/0.3281, allocations: 0.8792 MB / 0.7946 GB, free: 1.52 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.3281, allocations: 3.938 kB / 0.7946 GB, free: 1.516 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.063e-05/0.3281, allocations: 7.938 kB / 0.7946 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.3281, allocations: 11.98 kB / 0.7947 GB, free: 1.496 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.578e-05/0.3282, allocations: 19.97 kB / 0.7947 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.3282, allocations: 0 / 0.7947 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3282, allocations: 4 kB / 0.7947 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008217/0.329, allocations: 0.5361 MB / 0.7952 GB, free: 0.9219 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.3292, allocations: 96.8 kB / 0.7953 GB, free: 0.8086 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.219e-05/0.3292, allocations: 31.98 kB / 0.7953 GB, free: 0.7773 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.689e-05/0.3293, allocations: 11.98 kB / 0.7953 GB, free: 0.7656 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.3295, allocations: 67.91 kB / 0.7954 GB, free: 0.6992 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.261e-05/0.3296, allocations: 39.95 kB / 0.7954 GB, free: 0.6602 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.959e-05/0.3297, allocations: 102.2 kB / 0.7955 GB, free: 0.5625 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3297, allocations: 0 / 0.7955 GB, free: 0.5625 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004462/0.3301, allocations: 99.89 kB / 0.7956 GB, free: 476 kB / 0.6075 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.0003084/0.3304, allocations: 153.5 kB / 0.7958 GB, free: 316 kB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0009412/0.3314, allocations: 0.565 MB / 0.7963 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3314, allocations: 0 / 0.7963 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.00035/0.3318, allocations: 259.8 kB / 0.7966 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003609/0.3321, allocations: 43.84 kB / 0.7966 GB, free: 15.42 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009085/0.3331, allocations: 437.5 kB / 0.797 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004961/0.3336, allocations: 0.7293 MB / 0.7978 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001386/0.3337, allocations: 42.95 kB / 0.7978 GB, free: 14.17 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.3339, allocations: 47.41 kB / 0.7978 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of SimCode: time 5.91e-07/0.3339, allocations: 0 / 0.7978 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of Templates: time 0.009678/0.3435, allocations: 4.567 MB / 0.8023 GB, free: 9.59 MB / 0.6231 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)