Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.501/1.501, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.001282/0.001282, allocations: 187 kB / 326.5 MB, free: 2.258 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.089/2.089, allocations: 205.4 MB / 0.5775 GB, free: 20.3 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.001146/0.001146, allocations: 90.36 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003935/0.0003935, allocations: 10 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2594, allocations: 106.3 MB / 0.9002 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1665/0.4259, allocations: 132 MB / 1.029 GB, free: 11.7 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/0.4262, allocations: 67.95 kB / 1.029 GB, free: 11.63 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005104/0.4313, allocations: 1.978 MB / 1.031 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.864e-06/0.4313, allocations: 0 / 1.031 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.051e-05/0.4313, allocations: 4 kB / 1.031 GB, free: 9.645 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.0006411/0.432, allocations: 459.1 kB / 1.031 GB, free: 9.148 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.432, allocations: 8.031 kB / 1.031 GB, free: 9.141 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.761e-05/0.4321, allocations: 50.55 kB / 1.032 GB, free: 9.082 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.569e-05/0.4322, allocations: 19.89 kB / 1.032 GB, free: 9.062 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.4323, allocations: 180.8 kB / 1.032 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.839e-05/0.4324, allocations: 27.98 kB / 1.032 GB, free: 8.82 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.441e-05/0.4324, allocations: 27.98 kB / 1.032 GB, free: 8.793 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.4328, allocations: 202.1 kB / 1.032 GB, free: 8.59 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.4328, allocations: 0 / 1.032 GB, free: 8.59 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.057e-05/0.4328, allocations: 11.98 kB / 1.032 GB, free: 8.578 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.4328, allocations: 4 kB / 1.032 GB, free: 8.574 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.433, allocations: 99.94 kB / 1.032 GB, free: 8.477 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000851/0.4339, allocations: 0.5431 MB / 1.033 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000673/0.4346, allocations: 346.5 kB / 1.033 GB, free: 7.535 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.4346, allocations: 4.344 kB / 1.033 GB, free: 7.531 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006567/0.4353, allocations: 0.495 MB / 1.033 GB, free: 7.023 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 1.603e-06/0.4353, allocations: 0 / 1.033 GB, free: 7.023 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.0009086/0.4362, allocations: 0.5844 MB / 1.034 GB, free: 6.434 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.4363, allocations: 63.16 kB / 1.034 GB, free: 6.359 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.4364, allocations: 133.1 kB / 1.034 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.996e-05/0.4364, allocations: 57.91 kB / 1.034 GB, free: 6.156 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.765e-05/0.4365, allocations: 101.1 kB / 1.034 GB, free: 6.055 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 8.146e-05/0.4366, allocations: 106.8 kB / 1.034 GB, free: 5.949 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/0.4366, allocations: 8 kB / 1.034 GB, free: 5.941 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.4367, allocations: 338.8 kB / 1.035 GB, free: 5.602 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002083/0.4369, allocations: 129.1 kB / 1.035 GB, free: 5.477 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000249/0.4372, allocations: 205.8 kB / 1.035 GB, free: 5.246 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.4374, allocations: 98.12 kB / 1.035 GB, free: 5.148 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4374, allocations: 0 / 1.035 GB, free: 5.148 MB / 0.6823 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005139/0.4379, allocations: 374.7 kB / 1.036 GB, free: 4.777 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.4379, allocations: 14.3 kB / 1.036 GB, free: 4.766 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.4379, allocations: 0 / 1.036 GB, free: 4.766 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.4379, allocations: 11.98 kB / 1.036 GB, free: 4.754 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.521e-05/0.438, allocations: 27.86 kB / 1.036 GB, free: 4.727 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.438, allocations: 4 kB / 1.036 GB, free: 4.723 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.4382, allocations: 31.89 kB / 1.036 GB, free: 4.691 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.4382, allocations: 16.19 kB / 1.036 GB, free: 4.676 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.0001537/0.4384, allocations: 171 kB / 1.036 GB, free: 4.5 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.121e-05/0.4384, allocations: 23.8 kB / 1.036 GB, free: 4.477 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.712e-05/0.4385, allocations: 42.27 kB / 1.036 GB, free: 4.438 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.4385, allocations: 4 kB / 1.036 GB, free: 4.434 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4385, allocations: 0 / 1.036 GB, free: 4.434 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.4386, allocations: 7.984 kB / 1.036 GB, free: 4.426 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009486/0.4395, allocations: 0.8532 MB / 1.037 GB, free: 3.516 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4395, allocations: 0 / 1.037 GB, free: 3.516 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.444e-05/0.4396, allocations: 15.92 kB / 1.037 GB, free: 3.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.065e-06/0.4396, allocations: 7.953 kB / 1.037 GB, free: 3.492 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.442e-05/0.4396, allocations: 15.98 kB / 1.037 GB, free: 3.477 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4396, allocations: 4 kB / 1.037 GB, free: 3.473 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4396, allocations: 3.984 kB / 1.037 GB, free: 3.469 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006532/0.4403, allocations: 0.5341 MB / 1.037 GB, free: 2.918 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 9.13e-05/0.4404, allocations: 96.91 kB / 1.037 GB, free: 2.805 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.786e-05/0.4405, allocations: 23.95 kB / 1.037 GB, free: 2.781 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001625/0.4406, allocations: 27.97 kB / 1.037 GB, free: 2.754 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.4408, allocations: 83.83 kB / 1.038 GB, free: 2.672 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.939e-05/0.4408, allocations: 27.98 kB / 1.038 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.287e-05/0.4409, allocations: 107.2 kB / 1.038 GB, free: 2.539 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.864e-06/0.4409, allocations: 4 kB / 1.038 GB, free: 2.535 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003096/0.4412, allocations: 87.86 kB / 1.038 GB, free: 2.449 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.0009546/0.4422, allocations: 1.118 MB / 1.039 GB, free: 1.305 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005474/0.4428, allocations: 379.2 kB / 1.039 GB, free: 0.9336 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4428, allocations: 4.125 kB / 1.039 GB, free: 0.9297 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000329/0.4431, allocations: 267.9 kB / 1.039 GB, free: 0.668 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.4434, allocations: 27.88 kB / 1.039 GB, free: 0.6406 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.4459, allocations: 2.683 MB / 1.042 GB, free: 13.86 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.4461, allocations: 0.7455 MB / 1.043 GB, free: 13.09 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001087/0.4463, allocations: 34.97 kB / 1.043 GB, free: 13.06 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.4464, allocations: 79.39 kB / 1.043 GB, free: 12.98 MB / 0.698 GB Notification: Performance of SimCode: time 2.31e-07/0.4464, allocations: 0 / 1.043 GB, free: 12.98 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01675/0.4632, allocations: 5.014 MB / 1.048 GB, free: 8.121 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002447/0.4635, allocations: 198.8 kB / 1.048 GB, free: 7.871 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.747/2.21, allocations: 0 / 1.048 GB, free: 7.871 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)