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.247/2.247, allocations: 248.5 MB / 261.1 MB, free: 6.086 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001431/0.001431, allocations: 178.6 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.958/1.958, allocations: 205.2 MB / 0.571 GB, free: 11.79 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.001066/0.001066, allocations: 99.77 kB / 0.6754 GB, free: 0.8711 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.542e-05/5.557e-05, allocations: 4 kB / 0.7869 GB, free: 97.78 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2142, allocations: 106.2 MB / 0.8907 GB, free: 7.438 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8629/1.077, allocations: 131.7 MB / 1.019 GB, free: 3.492 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/1.077, allocations: 70.95 kB / 1.019 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.008603/1.086, allocations: 1.967 MB / 1.021 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.663e-06/1.086, allocations: 4 kB / 1.021 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.252e-05/1.086, allocations: 4 kB / 1.021 GB, free: 1.688 MB / 0.6355 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.0009259/1.087, allocations: 447.2 kB / 1.022 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.887e-05/1.087, allocations: 12.03 kB / 1.022 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.442e-05/1.087, allocations: 52.66 kB / 1.022 GB, free: 1.156 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.708e-05/1.087, allocations: 23.86 kB / 1.022 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/1.088, allocations: 179.5 kB / 1.022 GB, free: 0.9219 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.52e-05/1.088, allocations: 22.17 kB / 1.022 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.314e-05/1.088, allocations: 23.48 kB / 1.022 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005412/1.088, allocations: 202 kB / 1.022 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/1.088, allocations: 0 / 1.022 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.121e-05/1.088, allocations: 11.67 kB / 1.022 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/1.088, allocations: 7.938 kB / 1.022 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000325/1.089, allocations: 95.8 kB / 1.022 GB, free: 0.6562 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/1.09, allocations: 0.5423 MB / 1.023 GB, free: 152 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/1.091, allocations: 335.1 kB / 1.023 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00039/1.092, allocations: 156.9 kB / 1.023 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/1.092, allocations: 0 / 1.023 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0011/1.093, allocations: 494.6 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.056e-06/1.093, allocations: 0 / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.001227/1.094, allocations: 443.9 kB / 1.024 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.215e-05/1.094, allocations: 55.41 kB / 1.024 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/1.095, allocations: 138.1 kB / 1.024 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.07e-05/1.095, allocations: 56 kB / 1.024 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.816e-05/1.095, allocations: 109.9 kB / 1.025 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/1.095, allocations: 95.59 kB / 1.025 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-05/1.095, allocations: 10.56 kB / 1.025 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001632/1.095, allocations: 336.8 kB / 1.025 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003521/1.096, allocations: 122.1 kB / 1.025 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004457/1.096, allocations: 211.9 kB / 1.025 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002724/1.096, allocations: 89.7 kB / 1.025 GB, free: 14 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/1.096, allocations: 7.938 kB / 1.025 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009216/1.097, allocations: 366.4 kB / 1.026 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/1.097, allocations: 8.219 kB / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/1.097, allocations: 0 / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.22e-05/1.097, allocations: 11.94 kB / 1.026 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/1.097, allocations: 32.05 kB / 1.026 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.902e-05/1.098, allocations: 4 kB / 1.026 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002866/1.098, allocations: 34.8 kB / 1.026 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.082e-05/1.098, allocations: 19.81 kB / 1.026 GB, free: 13.62 MB / 0.6511 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 () * 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.0002616/1.098, allocations: 151.2 kB / 1.026 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/1.098, allocations: 31.66 kB / 1.026 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/1.098, allocations: 38.69 kB / 1.026 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/1.098, allocations: 4 kB / 1.026 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/1.098, allocations: 0 / 1.026 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/1.098, allocations: 3.984 kB / 1.026 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/1.1, allocations: 0.8549 MB / 1.027 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/1.1, allocations: 0 / 1.027 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.609e-05/1.1, allocations: 11.92 kB / 1.027 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.716e-05/1.1, allocations: 4 kB / 1.027 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.02e-05/1.1, allocations: 21.66 kB / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.835e-06/1.101, allocations: 4 kB / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.101, allocations: 0 / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001167/1.102, allocations: 0.5428 MB / 1.027 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.033e-05/1.102, allocations: 88.92 kB / 1.028 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/1.102, allocations: 22.67 kB / 1.028 GB, free: 12.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002966/1.102, allocations: 23.72 kB / 1.028 GB, free: 12.08 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002646/1.103, allocations: 81.59 kB / 1.028 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.479e-05/1.103, allocations: 31.47 kB / 1.028 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001105/1.103, allocations: 111.8 kB / 1.028 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.91e-07/1.103, allocations: 0 / 1.028 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005165/1.103, allocations: 78.86 kB / 1.028 GB, free: 11.82 MB / 0.6511 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) * 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.001707/1.105, allocations: 1.114 MB / 1.029 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001043/1.106, allocations: 370.2 kB / 1.029 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/1.106, allocations: 0 / 1.029 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005505/1.107, allocations: 258.9 kB / 1.03 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/1.107, allocations: 22.89 kB / 1.03 GB, free: 10.38 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/1.109, allocations: 472 kB / 1.03 GB, free: 9.973 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/1.109, allocations: 0.7455 MB / 1.031 GB, free: 9.199 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002017/1.11, allocations: 30.97 kB / 1.031 GB, free: 9.172 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002759/1.11, allocations: 87.14 kB / 1.031 GB, free: 9.129 MB / 0.6511 GB Notification: Performance of SimCode: time 1.412e-06/1.11, allocations: 4 kB / 1.031 GB, free: 9.125 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03219/1.142, allocations: 5.16 MB / 1.036 GB, free: 4.082 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003417/1.143, allocations: 160.5 kB / 1.036 GB, free: 3.855 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.557/3.7, allocations: 0 / 1.036 GB, free: 3.855 MB / 0.6511 GB