Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.968/4.968, allocations: 0.5623 GB / 0.5769 GB, free: 3.316 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002417/0.002416, allocations: 355.6 kB / 0.644 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.137/4.137, allocations: 410.7 MB / 1.112 GB, free: 6.074 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001821/0.001821, allocations: 185.3 kB / 1.225 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004849/0.000485, allocations: 16 kB / 1.348 GB, free: 8.277 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5883/0.5888, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle): time 0.0008326/0.5896, allocations: 498.8 kB / 1.461 GB, free: 283.9 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.5913, allocations: 1.275 MB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.016e-05/0.5914, allocations: 0 / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 2.205e-05/0.5914, allocations: 3.938 kB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 7.449e-05/0.5915, allocations: 12.47 kB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008129/0.5923, allocations: 276.8 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0002373/0.5926, allocations: 287.5 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.5927, allocations: 43.52 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001371/0.5929, allocations: 132.8 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.593, allocations: 111.6 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 5.587e-05/0.5931, allocations: 20 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.5932, allocations: 28.48 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 5.229e-05/0.5933, allocations: 57.41 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 7.003e-05/0.5934, allocations: 57.64 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.5936, allocations: 241.5 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.5937, allocations: 0 / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.985e-06/0.5937, allocations: 3.938 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.217e-05/0.5937, allocations: 0.75 kB / 1.464 GB, free: 281.3 MB / 0.8542 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.0005694/0.5943, allocations: 478.9 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.5943, allocations: 17.25 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.762e-05/0.5944, allocations: 19.91 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006283/0.5951, allocations: 275.6 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.539e-05/0.5951, allocations: 16 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.485e-05/0.5952, allocations: 35.98 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004452/0.5957, allocations: 214.5 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.5957, allocations: 2.156 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.923e-05/0.5958, allocations: 19.95 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.295e-06/0.5958, allocations: 4 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000239/0.5961, allocations: 95.88 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009183/0.597, allocations: 0.5623 MB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000523/0.5975, allocations: 255.2 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002196/0.5978, allocations: 117.5 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.5978, allocations: 1.828 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008282/0.5986, allocations: 0.5482 MB / 1.466 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=44): time 4.088e-06/0.5987, allocations: 0.6875 kB / 1.466 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=44): time 0.001215/0.5999, allocations: 0.5567 MB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.6, allocations: 55.41 kB / 1.467 GB, free: 277.9 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.6001, allocations: 158.4 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 9.422e-05/0.6002, allocations: 57.69 kB / 1.467 GB, free: 277.7 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.642e-05/0.6003, allocations: 114 kB / 1.467 GB, free: 277.6 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 8.407e-05/0.6004, allocations: 102.9 kB / 1.467 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.784e-05/0.6004, allocations: 16 kB / 1.467 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.824e-05/0.6005, allocations: 339.5 kB / 1.468 GB, free: 277.1 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004044/0.6009, allocations: 179.1 kB / 1.468 GB, free: 277 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004626/0.6014, allocations: 291.5 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.6018, allocations: 192.9 kB / 1.468 GB, free: 276.4 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.081e-06/0.6018, allocations: 4.5 kB / 1.468 GB, free: 276.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00111/0.6029, allocations: 0.571 MB / 1.469 GB, free: 275.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.925e-05/0.603, allocations: 67.39 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.603, allocations: 6.656 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.603, allocations: 7.938 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.028e-05/0.6031, allocations: 23.92 kB / 1.469 GB, free: 275.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.788e-05/0.6032, allocations: 11.94 kB / 1.469 GB, free: 275.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004899/0.6037, allocations: 96.94 kB / 1.469 GB, free: 275.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-05/0.6038, allocations: 28 kB / 1.469 GB, free: 275.6 MB / 0.8542 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.0002229/0.604, allocations: 173.1 kB / 1.469 GB, free: 275.4 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.826e-05/0.6041, allocations: 32.53 kB / 1.469 GB, free: 275.4 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.179e-05/0.6042, allocations: 35.19 kB / 1.469 GB, free: 275.4 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.416e-06/0.6042, allocations: 4 kB / 1.469 GB, free: 275.4 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.6042, allocations: 4 kB / 1.469 GB, free: 275.4 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.25e-06/0.6042, allocations: 6.891 kB / 1.469 GB, free: 275.4 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001427/0.6056, allocations: 0.8771 MB / 1.47 GB, free: 274.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.75e-06/0.6057, allocations: 0.5625 kB / 1.47 GB, free: 274.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.237e-05/0.6057, allocations: 13.56 kB / 1.47 GB, free: 274.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.6058, allocations: 4 kB / 1.47 GB, free: 274.4 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.154e-05/0.6058, allocations: 21.06 kB / 1.47 GB, free: 274.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.015e-06/0.6058, allocations: 7.938 kB / 1.47 GB, free: 274.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.6059, allocations: 1.062 kB / 1.47 GB, free: 274.4 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008875/0.6067, allocations: 0.5354 MB / 1.471 GB, free: 273.8 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.956e-05/0.6068, allocations: 96.92 kB / 1.471 GB, free: 273.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.6069, allocations: 24.86 kB / 1.471 GB, free: 273.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.6071, allocations: 11.98 kB / 1.471 GB, free: 273.7 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002294/0.6073, allocations: 92.77 kB / 1.471 GB, free: 273.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.587e-05/0.6074, allocations: 35.97 kB / 1.471 GB, free: 273.6 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.551e-05/0.6075, allocations: 101.7 kB / 1.471 GB, free: 273.5 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.93e-07/0.6075, allocations: 0 / 1.471 GB, free: 273.5 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0005554/0.6081, allocations: 99.89 kB / 1.471 GB, free: 273.4 MB / 0.8542 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.0002181/0.6083, allocations: 155.8 kB / 1.471 GB, free: 273.2 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0009625/0.6093, allocations: 0.555 MB / 1.472 GB, free: 272.6 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.839e-06/0.6093, allocations: 4 kB / 1.472 GB, free: 272.6 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003692/0.6097, allocations: 264 kB / 1.472 GB, free: 272.4 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004898/0.6102, allocations: 38.08 kB / 1.472 GB, free: 272.3 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008835/0.6111, allocations: 465.9 kB / 1.473 GB, free: 271.9 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001788/0.6113, allocations: 0.7395 MB / 1.473 GB, free: 271.1 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0001751/0.6115, allocations: 41.34 kB / 1.473 GB, free: 271.1 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.6116, allocations: 51.39 kB / 1.473 GB, free: 271 MB / 0.8542 GB Notification: Performance of SimCode: time 1.685e-06/0.6117, allocations: 0 / 1.473 GB, free: 271 MB / 0.8542 GB Notification: Performance of Templates: time 0.01026/0.6219, allocations: 4.435 MB / 1.478 GB, free: 266.8 MB / 0.8542 GB