Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.916/4.916, allocations: 0.5623 GB / 0.5769 GB, free: 3.328 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.00236/0.002359, allocations: 354.1 kB / 0.644 GB, free: 185.7 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.335/4.335, allocations: 410.7 MB / 1.112 GB, free: 6.035 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.001785/0.001785, allocations: 182.2 kB / 1.225 GB, free: 6.234 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005079/0.0005082, allocations: 16 kB / 1.348 GB, free: 8.352 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6756/0.6762, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.0008225/0.677, allocations: 0.4889 MB / 1.461 GB, free: 283.9 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.6786, allocations: 1.268 MB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.649e-05/0.6787, allocations: 4 kB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 2.201e-05/0.6787, allocations: 3.938 kB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 7.149e-05/0.6788, allocations: 11.91 kB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007934/0.6796, allocations: 266.3 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0002404/0.6799, allocations: 292.2 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.68, allocations: 41.47 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.6802, allocations: 128.3 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.6803, allocations: 108.3 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 5.737e-05/0.6804, allocations: 19.94 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 9.998e-05/0.6805, allocations: 33.36 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 5.248e-05/0.6806, allocations: 55.84 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 7.187e-05/0.6807, allocations: 57.64 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.6809, allocations: 234.6 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.964e-06/0.681, allocations: 0 / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.17e-06/0.681, allocations: 0 / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 6.089e-06/0.681, allocations: 0.9062 kB / 1.464 GB, free: 281.4 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.000559/0.6816, allocations: 486.3 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.6816, allocations: 12.53 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.868e-05/0.6817, allocations: 19.91 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006077/0.6823, allocations: 266 kB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.572e-05/0.6824, allocations: 27.94 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.397e-05/0.6825, allocations: 31.98 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004072/0.6829, allocations: 207.6 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.6829, allocations: 1.875 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.541e-05/0.683, allocations: 11.98 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.389e-06/0.683, allocations: 4 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000247/0.6832, allocations: 99.88 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008922/0.6842, allocations: 0.5714 MB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005356/0.6847, allocations: 258.5 kB / 1.466 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.685, allocations: 125.5 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.685, allocations: 0 / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007502/0.6857, allocations: 0.4903 MB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=44): time 3.249e-06/0.6858, allocations: 0 / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of matching and sorting (n=44): time 0.001166/0.6869, allocations: 0.5595 MB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.687, allocations: 55.41 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.6871, allocations: 154.4 kB / 1.467 GB, free: 277.9 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 8.198e-05/0.6872, allocations: 54.69 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.512e-05/0.6873, allocations: 112.9 kB / 1.467 GB, free: 277.7 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 8.137e-05/0.6874, allocations: 102.8 kB / 1.467 GB, free: 277.6 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.407e-05/0.6875, allocations: 20.44 kB / 1.467 GB, free: 277.6 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.56e-05/0.6875, allocations: 336.6 kB / 1.468 GB, free: 277.3 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003986/0.6879, allocations: 173.1 kB / 1.468 GB, free: 277.1 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004266/0.6884, allocations: 276.1 kB / 1.468 GB, free: 276.8 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.6887, allocations: 199.2 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.624e-06/0.6887, allocations: 4 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001015/0.6898, allocations: 0.5504 MB / 1.469 GB, free: 276 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.687e-05/0.6898, allocations: 71.39 kB / 1.469 GB, free: 275.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.6899, allocations: 4 kB / 1.469 GB, free: 275.9 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.452e-05/0.6899, allocations: 4.875 kB / 1.469 GB, free: 275.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.496e-05/0.69, allocations: 27.86 kB / 1.469 GB, free: 275.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.69, allocations: 4.875 kB / 1.469 GB, free: 275.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005065/0.6905, allocations: 102.8 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-05/0.6906, allocations: 31.98 kB / 1.469 GB, free: 275.8 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.y,$PRE.truCleTruIni.y,$PRE.falCleFalIni.y,$PRE.truCleFalIni.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition27,$whenCondition28,$whenCondition25,$whenCondition26,tru.y,fal.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,falCleTruIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,truCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,falCleFalIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,truCleFalIni.y,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,swiCleInp1.y,$PRE.cleInp.y,cleInp.y,$PRE.latInp.y,latInp.y,$PRE.falCleFalIni.clr,falCleFalIni.clr,$PRE.falCleTruIni.clr,falCleTruIni.clr,$PRE.truCleFalIni.clr,truCleFalIni.clr,$PRE.truCleTruIni.clr,truCleTruIni.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.0002207/0.6909, allocations: 172.1 kB / 1.469 GB, free: 275.6 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.62e-05/0.6909, allocations: 27.77 kB / 1.469 GB, free: 275.6 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.682e-05/0.691, allocations: 37.97 kB / 1.469 GB, free: 275.5 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.141e-06/0.691, allocations: 5.125 kB / 1.469 GB, free: 275.5 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.19e-06/0.691, allocations: 3.984 kB / 1.469 GB, free: 275.5 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.146e-06/0.6911, allocations: 0 / 1.469 GB, free: 275.5 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.6922, allocations: 0.8521 MB / 1.47 GB, free: 274.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.47e-06/0.6923, allocations: 0 / 1.47 GB, free: 274.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.88e-05/0.6923, allocations: 18.23 kB / 1.47 GB, free: 274.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.012e-06/0.6923, allocations: 4 kB / 1.47 GB, free: 274.6 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.388e-05/0.6924, allocations: 19.97 kB / 1.47 GB, free: 274.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.094e-06/0.6924, allocations: 4 kB / 1.47 GB, free: 274.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.081e-06/0.6924, allocations: 0 / 1.47 GB, free: 274.6 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008093/0.6932, allocations: 0.5426 MB / 1.471 GB, free: 274 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.623e-05/0.6933, allocations: 94.27 kB / 1.471 GB, free: 273.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.96e-05/0.6934, allocations: 23.98 kB / 1.471 GB, free: 273.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.6936, allocations: 7.984 kB / 1.471 GB, free: 273.9 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.6937, allocations: 69.66 kB / 1.471 GB, free: 273.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.6938, allocations: 32.88 kB / 1.471 GB, free: 273.8 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.994e-05/0.6938, allocations: 103.5 kB / 1.471 GB, free: 273.7 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.82e-07/0.6939, allocations: 3.938 kB / 1.471 GB, free: 273.7 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0005307/0.6944, allocations: 92.83 kB / 1.471 GB, free: 273.6 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 ($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,truCleTruIni.u,truCleTruIni.y,falCleFalIni.u,falCleFalIni.y,truCleFalIni.u,truCleFalIni.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 14 (falCleFalIni.u,falCleTruIni.u,truCleTruIni.u,truCleFalIni.u,swiCleInp1.u,swiCleInp1.clr,swiCleInp.u,swiCleInp.clr,swiCleInp1.y,swiCleInp.y,truCleFalIni.y,falCleFalIni.y,truCleTruIni.y,falCleTruIni.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.000214/0.6946, allocations: 150.5 kB / 1.471 GB, free: 273.5 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0009019/0.6955, allocations: 0.5408 MB / 1.472 GB, free: 272.9 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.007e-06/0.6956, allocations: 0.9688 kB / 1.472 GB, free: 272.9 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003734/0.6959, allocations: 260.1 kB / 1.472 GB, free: 272.6 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004668/0.6964, allocations: 41.23 kB / 1.472 GB, free: 272.6 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008655/0.6973, allocations: 482.9 kB / 1.472 GB, free: 272.1 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001691/0.6975, allocations: 0.7357 MB / 1.473 GB, free: 271.3 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0001543/0.6977, allocations: 40.7 kB / 1.473 GB, free: 271.3 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.6978, allocations: 35.42 kB / 1.473 GB, free: 271.3 MB / 0.8542 GB Notification: Performance of SimCode: time 1.685e-06/0.6978, allocations: 0 / 1.473 GB, free: 271.3 MB / 0.8542 GB Notification: Performance of Templates: time 0.009528/0.7074, allocations: 3.991 MB / 1.477 GB, free: 267.5 MB / 0.8542 GB