Running: ./testmodel.py --libraries=/home/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 (/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.111/2.111, allocations: 251 MB / 265.9 MB, free: 11.7 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001536/0.001536, allocations: 184.4 kB / 325.5 MB, free: 2.914 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.505/2.505, allocations: 205.4 MB / 0.5764 GB, free: 21.18 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 108.1 kB / 0.6809 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007204/0.0007207, allocations: 11.91 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2206, allocations: 106.3 MB / 0.8988 GB, free: 65.94 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2278/0.4484, allocations: 131.8 MB / 1.028 GB, free: 13.97 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.4488, allocations: 75.89 kB / 1.028 GB, free: 13.9 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008352/0.4571, allocations: 1.962 MB / 1.03 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.184e-06/0.4572, allocations: 0 / 1.03 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.261e-05/0.4572, allocations: 8 kB / 1.03 GB, free: 11.92 MB / 0.6823 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.0009897/0.4582, allocations: 459 kB / 1.03 GB, free: 11.43 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.4583, allocations: 8.031 kB / 1.03 GB, free: 11.42 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.046e-05/0.4584, allocations: 58.48 kB / 1.03 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.926e-05/0.4585, allocations: 23.84 kB / 1.03 GB, free: 11.33 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.4587, allocations: 176.3 kB / 1.03 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.876e-05/0.4587, allocations: 23.98 kB / 1.03 GB, free: 11.09 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.299e-05/0.4588, allocations: 27.98 kB / 1.03 GB, free: 11.07 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005715/0.4594, allocations: 202.6 kB / 1.03 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.4594, allocations: 0 / 1.03 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.924e-05/0.4595, allocations: 15.97 kB / 1.03 GB, free: 10.85 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.4595, allocations: 4 kB / 1.03 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003504/0.4598, allocations: 100.5 kB / 1.031 GB, free: 10.75 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001426/0.4613, allocations: 0.5431 MB / 1.031 GB, free: 10.15 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.4626, allocations: 342.9 kB / 1.031 GB, free: 9.809 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/0.4627, allocations: 7.953 kB / 1.031 GB, free: 9.801 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001221/0.4639, allocations: 0.4972 MB / 1.032 GB, free: 9.289 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 5.209e-06/0.4639, allocations: 3.984 kB / 1.032 GB, free: 9.285 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.00174/0.4657, allocations: 0.5729 MB / 1.032 GB, free: 8.707 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.192e-05/0.4658, allocations: 67.14 kB / 1.033 GB, free: 8.629 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.466, allocations: 138.5 kB / 1.033 GB, free: 8.484 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 9.411e-05/0.4661, allocations: 57.69 kB / 1.033 GB, free: 8.422 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.09e-05/0.4662, allocations: 105.1 kB / 1.033 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.4663, allocations: 94.91 kB / 1.033 GB, free: 8.223 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.191e-05/0.4664, allocations: 12 kB / 1.033 GB, free: 8.211 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001667/0.4665, allocations: 335 kB / 1.033 GB, free: 7.875 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003803/0.4669, allocations: 129.1 kB / 1.033 GB, free: 7.75 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004663/0.4674, allocations: 217.7 kB / 1.034 GB, free: 7.508 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/0.4677, allocations: 91.59 kB / 1.034 GB, free: 7.422 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.4677, allocations: 0 / 1.034 GB, free: 7.422 MB / 0.6823 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009703/0.4687, allocations: 382.6 kB / 1.034 GB, free: 7.043 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.4687, allocations: 4 kB / 1.034 GB, free: 7.039 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.4688, allocations: 4 kB / 1.034 GB, free: 7.035 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.4688, allocations: 4 kB / 1.034 GB, free: 7.031 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.469, allocations: 27.86 kB / 1.034 GB, free: 7.004 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.533e-05/0.469, allocations: 4 kB / 1.034 GB, free: 7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.4693, allocations: 36.08 kB / 1.034 GB, free: 6.965 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.944e-05/0.4693, allocations: 20 kB / 1.034 GB, free: 6.945 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 66 ($PRE.falCle.y,$PRE.truCle.y,$PRE.iniFalOut.y,$PRE.iniTruOut.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$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,$PRE.falCle.u,falCle.u,$PRE.falCle.clr,falCle.clr,falCle.y,$PRE.truCle.u,truCle.u,$PRE.truCle.clr,truCle.clr,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,$PRE.iniFalOut.clr,iniFalOut.clr,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,$PRE.iniTruOut.clr,iniTruOut.clr,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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002702/0.4696, allocations: 167 kB / 1.034 GB, free: 6.773 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.035e-05/0.4697, allocations: 31.75 kB / 1.034 GB, free: 6.742 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.4698, allocations: 34.31 kB / 1.034 GB, free: 6.711 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.4698, allocations: 4 kB / 1.034 GB, free: 6.707 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.4699, allocations: 8 kB / 1.034 GB, free: 6.699 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.4699, allocations: 3.984 kB / 1.034 GB, free: 6.695 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00171/0.4716, allocations: 0.8531 MB / 1.035 GB, free: 5.785 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/0.4716, allocations: 7.953 kB / 1.035 GB, free: 5.777 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.264e-05/0.4717, allocations: 15.92 kB / 1.035 GB, free: 5.762 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.4717, allocations: 0 / 1.035 GB, free: 5.762 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.393e-05/0.4718, allocations: 15.98 kB / 1.035 GB, free: 5.746 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/0.4718, allocations: 4 kB / 1.035 GB, free: 5.742 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4718, allocations: 3.984 kB / 1.035 GB, free: 5.738 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.4731, allocations: 0.5456 MB / 1.036 GB, free: 5.176 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.367e-05/0.4732, allocations: 96.86 kB / 1.036 GB, free: 5.062 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.4733, allocations: 24 kB / 1.036 GB, free: 5.039 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002973/0.4736, allocations: 27.91 kB / 1.036 GB, free: 5.012 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002758/0.4739, allocations: 83.83 kB / 1.036 GB, free: 4.93 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.29e-05/0.474, allocations: 27.98 kB / 1.036 GB, free: 4.902 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001276/0.4741, allocations: 109.3 kB / 1.036 GB, free: 4.797 MB / 0.6823 GB Notification: Performance of sort global known variables: time 7.51e-07/0.4741, allocations: 0 / 1.036 GB, free: 4.797 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005431/0.4747, allocations: 79.98 kB / 1.036 GB, free: 4.719 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 46 ($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.clr,falCle.y,truCle.u,truCle.clr,truCle.y,iniFalOut.u,iniFalOut.clr,iniFalOut.y,iniTruOut.u,iniTruOut.clr,iniTruOut.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 18 (iniTruOut.u,iniTruOut.clr,iniFalOut.u,iniFalOut.clr,truCle.u,truCle.clr,falCle.u,falCle.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp.u,swiCleInp.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 (46): * Single equations (assignments): 38 * 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.00182/0.4765, allocations: 1.118 MB / 1.037 GB, free: 3.574 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001065/0.4776, allocations: 387.5 kB / 1.038 GB, free: 3.195 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.4776, allocations: 0 / 1.038 GB, free: 3.195 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005967/0.4783, allocations: 263.7 kB / 1.038 GB, free: 2.938 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004061/0.4787, allocations: 23.98 kB / 1.038 GB, free: 2.914 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004195/0.4829, allocations: 2.691 MB / 1.041 GB, free: 132 kB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.4833, allocations: 0.7455 MB / 1.041 GB, free: 15.36 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000198/0.4835, allocations: 34.97 kB / 1.041 GB, free: 15.33 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002812/0.4838, allocations: 83.39 kB / 1.041 GB, free: 15.25 MB / 0.698 GB Notification: Performance of SimCode: time 1.122e-06/0.4838, allocations: 0 / 1.041 GB, free: 15.25 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.5122, allocations: 5.003 MB / 1.046 GB, free: 10.38 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003522/0.5126, allocations: 179.2 kB / 1.046 GB, free: 10.14 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.444/2.956, allocations: 0 / 1.046 GB, free: 10.14 MB / 0.698 GB