Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.291/2.291, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002586/0.002586, allocations: 177.5 kB / 325.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.619/2.619, allocations: 205.4 MB / 0.5766 GB, free: 21.12 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00109/0.001091, allocations: 100.1 kB / 0.6811 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.00063/0.00063, allocations: 14.72 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.243, allocations: 106.3 MB / 0.8989 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001791/0.2449, allocations: 1.189 MB / 0.9001 GB, free: 64.75 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008272/0.2457, allocations: 354 kB / 0.9004 GB, free: 64.4 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.737e-05/0.2458, allocations: 0 / 0.9004 GB, free: 64.4 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.585e-05/0.2458, allocations: 11.88 kB / 0.9004 GB, free: 64.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.246, allocations: 23.89 kB / 0.9004 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003205/0.2463, allocations: 75.89 kB / 0.9005 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001842/0.2465, allocations: 139.8 kB / 0.9006 GB, free: 64.15 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.2467, allocations: 41.22 kB / 0.9007 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.2468, allocations: 87.8 kB / 0.9008 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.247, allocations: 87.67 kB / 0.9008 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.05e-05/0.247, allocations: 8 kB / 0.9008 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 4.097e-05/0.2471, allocations: 12 kB / 0.9009 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.49e-05/0.2472, allocations: 51.86 kB / 0.9009 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.263e-05/0.2472, allocations: 65.52 kB / 0.901 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002109/0.2475, allocations: 171.5 kB / 0.9011 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2475, allocations: 0 / 0.9011 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.843e-06/0.2475, allocations: 0 / 0.9011 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.2475, allocations: 4 kB / 0.9011 GB, free: 63.62 MB / 0.6042 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.0008621/0.2484, allocations: 450.7 kB / 0.9016 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.2484, allocations: 12.03 kB / 0.9016 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.77e-05/0.2485, allocations: 19.86 kB / 0.9016 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004849/0.249, allocations: 257.1 kB / 0.9018 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.054e-05/0.2491, allocations: 19.94 kB / 0.9019 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.241e-05/0.2491, allocations: 27.98 kB / 0.9019 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.2496, allocations: 205.5 kB / 0.9021 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.2497, allocations: 0 / 0.9021 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.537e-05/0.2497, allocations: 11.98 kB / 0.9021 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.2497, allocations: 0 / 0.9021 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003432/0.2501, allocations: 104.5 kB / 0.9022 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.2512, allocations: 0.5352 MB / 0.9027 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.2523, allocations: 294.5 kB / 0.903 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.2524, allocations: 0 / 0.903 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009403/0.2533, allocations: 490.1 kB / 0.9035 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=42): time 4.088e-06/0.2533, allocations: 0 / 0.9035 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of matching and sorting (n=42): time 0.001394/0.2547, allocations: 0.5163 MB / 0.904 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.2548, allocations: 55.41 kB / 0.904 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001494/0.255, allocations: 154.9 kB / 0.9042 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.57e-05/0.2551, allocations: 53.69 kB / 0.9042 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.843e-05/0.2552, allocations: 121.2 kB / 0.9043 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.285e-05/0.2553, allocations: 94.94 kB / 0.9044 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.27e-05/0.2553, allocations: 8 kB / 0.9044 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.164e-05/0.2554, allocations: 338.8 kB / 0.9048 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003391/0.2557, allocations: 129.1 kB / 0.9049 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004054/0.2562, allocations: 227.4 kB / 0.9051 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.2564, allocations: 90.19 kB / 0.9052 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2565, allocations: 4 kB / 0.9052 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008845/0.2574, allocations: 394.5 kB / 0.9056 GB, free: 58.83 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.2574, allocations: 8 kB / 0.9056 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.2574, allocations: 4 kB / 0.9056 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.697e-05/0.2575, allocations: 4 kB / 0.9056 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.2576, allocations: 27.86 kB / 0.9056 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.2576, allocations: 8.312 kB / 0.9056 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.258, allocations: 39.73 kB / 0.9057 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.297e-05/0.258, allocations: 20 kB / 0.9057 GB, free: 58.72 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.falCle.y,$PRE.truCle.y,$PRE.iniFalOut.y,$PRE.iniTruOut.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition26,$whenCondition25,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.falCle.u,falCle.u,falCle.y,$PRE.truCle.u,truCle.u,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,iniTruOut.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.pulseStart,cleInp.pulseStart,$PRE.latInp.pulseStart,latInp.pulseStart,$PRE.iniTruOut.clr,iniTruOut.clr,$PRE.iniFalOut.clr,iniFalOut.clr,$PRE.falCle.clr,falCle.clr,$PRE.truCle.clr,truCle.clr) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * 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.0002467/0.2583, allocations: 166.9 kB / 0.9058 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.154e-05/0.2584, allocations: 35.67 kB / 0.9059 GB, free: 58.51 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.2585, allocations: 42.3 kB / 0.9059 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.2585, allocations: 4 kB / 0.9059 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.2585, allocations: 0 / 0.9059 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.2586, allocations: 0 / 0.9059 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.26, allocations: 0.8112 MB / 0.9067 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.26, allocations: 0 / 0.9067 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.344e-05/0.2601, allocations: 8 kB / 0.9067 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.168e-06/0.2601, allocations: 4 kB / 0.9067 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-05/0.2602, allocations: 15.97 kB / 0.9067 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.223e-06/0.2602, allocations: 3.938 kB / 0.9067 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.2602, allocations: 4 kB / 0.9067 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000975/0.2612, allocations: 0.4987 MB / 0.9072 GB, free: 57.05 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.241e-05/0.2613, allocations: 108.7 kB / 0.9073 GB, free: 56.92 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.2614, allocations: 23.98 kB / 0.9073 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002815/0.2617, allocations: 19.97 kB / 0.9074 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000251/0.262, allocations: 71.8 kB / 0.9074 GB, free: 56.81 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-05/0.262, allocations: 31.97 kB / 0.9075 GB, free: 56.78 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.868e-05/0.2621, allocations: 106.8 kB / 0.9076 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2621, allocations: 0 / 0.9076 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005262/0.2627, allocations: 79.98 kB / 0.9076 GB, free: 56.6 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCle.u,falCle.y,truCle.u,truCle.y,iniFalOut.u,iniFalOut.y,iniTruOut.u,iniTruOut.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 14 (iniFalOut.u,iniTruOut.u,falCle.u,truCle.u,swiCleInp.u,swiCleInp.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.y,iniTruOut.y,iniFalOut.y,truCle.y,falCle.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * 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.000245/0.2629, allocations: 137.8 kB / 0.9078 GB, free: 56.46 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0009643/0.2639, allocations: 355.3 kB / 0.9081 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.264, allocations: 0 / 0.9081 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004741/0.2644, allocations: 220.4 kB / 0.9083 GB, free: 55.9 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.2649, allocations: 33.34 kB / 0.9084 GB, free: 55.87 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.2664, allocations: 0.4971 MB / 0.9088 GB, free: 55.34 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.2667, allocations: 0.7413 MB / 0.9096 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.000217/0.2669, allocations: 30.97 kB / 0.9096 GB, free: 54.55 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001886/0.2671, allocations: 43.41 kB / 0.9096 GB, free: 54.5 MB / 0.6042 GB Notification: Performance of SimCode: time 1.393e-06/0.2671, allocations: 0 / 0.9096 GB, free: 54.5 MB / 0.6042 GB Notification: Performance of Templates: time 0.009286/0.2764, allocations: 3.09 MB / 0.9127 GB, free: 51.42 MB / 0.6042 GB