Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.363/2.363, allocations: 284.9 MB / 292.4 MB, free: 10.55 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001528/0.001528, allocations: 188.8 kB / 360.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.073/2.073, allocations: 205.3 MB / 0.6191 GB, free: 12.21 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001074/0.001073, allocations: 95.81 kB / 0.7321 GB, free: 44.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.004e-05/3.004e-05, allocations: 8 kB / 0.8509 GB, free: 3.312 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8093/0.8094, allocations: 115.3 MB / 0.9634 GB, free: 78.45 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2293/1.039, allocations: 137.6 MB / 1.098 GB, free: 2.801 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/1.039, allocations: 72.61 kB / 1.098 GB, free: 2.73 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01943/1.058, allocations: 3.943 MB / 1.102 GB, free: 14.87 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.663e-06/1.059, allocations: 0 / 1.102 GB, free: 14.87 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 9.157e-06/1.059, allocations: 0 / 1.102 GB, free: 14.87 MB / 0.7136 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.0008647/1.059, allocations: 490.4 kB / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/1.059, allocations: 12.03 kB / 1.102 GB, free: 14.32 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/1.06, allocations: 23.86 kB / 1.102 GB, free: 14.29 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/1.06, allocations: 180.5 kB / 1.102 GB, free: 14.08 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.862e-05/1.06, allocations: 15.98 kB / 1.102 GB, free: 14.06 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/1.06, allocations: 29.11 kB / 1.102 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002889/1.06, allocations: 83.98 kB / 1.103 GB, free: 13.95 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004703/1.061, allocations: 187.9 kB / 1.103 GB, free: 13.77 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/1.061, allocations: 0 / 1.103 GB, free: 13.77 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.571e-05/1.061, allocations: 11.98 kB / 1.103 GB, free: 13.75 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/1.061, allocations: 3.953 kB / 1.103 GB, free: 13.75 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/1.062, allocations: 0.497 MB / 1.103 GB, free: 13.21 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007941/1.063, allocations: 267 kB / 1.103 GB, free: 12.95 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004308/1.063, allocations: 136.8 kB / 1.104 GB, free: 12.81 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/1.063, allocations: 8 kB / 1.104 GB, free: 12.8 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001363/1.065, allocations: 499.5 kB / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 3.627e-06/1.065, allocations: 0 / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.001195/1.066, allocations: 439.8 kB / 1.105 GB, free: 11.87 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/1.066, allocations: 56.06 kB / 1.105 GB, free: 11.8 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/1.066, allocations: 128.8 kB / 1.105 GB, free: 11.67 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001122/1.066, allocations: 45.7 kB / 1.105 GB, free: 11.62 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/1.066, allocations: 105.3 kB / 1.105 GB, free: 11.51 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/1.066, allocations: 102.8 kB / 1.105 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.376e-05/1.067, allocations: 4 kB / 1.105 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001711/1.067, allocations: 342.8 kB / 1.105 GB, free: 11.06 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004622/1.067, allocations: 153.3 kB / 1.105 GB, free: 10.91 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/1.068, allocations: 243.8 kB / 1.106 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006761/1.068, allocations: 138.1 kB / 1.106 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/1.068, allocations: 0 / 1.106 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001487/1.07, allocations: 470.5 kB / 1.106 GB, free: 10.05 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 7.84e-05/1.07, allocations: 67.39 kB / 1.106 GB, free: 9.969 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/1.07, allocations: 4 kB / 1.106 GB, free: 9.965 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.62e-05/1.07, allocations: 4 kB / 1.106 GB, free: 9.961 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/1.07, allocations: 27.86 kB / 1.106 GB, free: 9.934 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/1.07, allocations: 10.75 kB / 1.106 GB, free: 9.926 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007464/1.071, allocations: 75.44 kB / 1.106 GB, free: 9.855 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.678e-05/1.071, allocations: 31.98 kB / 1.106 GB, free: 9.824 MB / 0.7136 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.falCleTruIni.y,$PRE.truCleTruIni.y,$PRE.falCleFalIni.y,$PRE.truCleFalIni.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.falCleTruIni.u,falCleTruIni.u,$PRE.falCleTruIni.clr,falCleTruIni.clr,falCleTruIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,$PRE.truCleTruIni.clr,truCleTruIni.clr,truCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,$PRE.falCleFalIni.clr,falCleFalIni.clr,falCleFalIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,$PRE.truCleFalIni.clr,truCleFalIni.clr,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * 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.000266/1.071, allocations: 141.9 kB / 1.107 GB, free: 9.676 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00107/1.073, allocations: 443.6 kB / 1.107 GB, free: 9.238 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.877e-05/1.073, allocations: 23.81 kB / 1.107 GB, free: 9.215 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001257/1.073, allocations: 34.17 kB / 1.107 GB, free: 9.18 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/1.073, allocations: 4 kB / 1.107 GB, free: 9.176 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/1.073, allocations: 4 kB / 1.107 GB, free: 9.172 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.475e-06/1.073, allocations: 4 kB / 1.107 GB, free: 9.168 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001544/1.074, allocations: 0.7998 MB / 1.108 GB, free: 8.324 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/1.074, allocations: 4 kB / 1.108 GB, free: 8.32 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.224e-05/1.075, allocations: 7.938 kB / 1.108 GB, free: 8.312 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-05/1.075, allocations: 4 kB / 1.108 GB, free: 8.309 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.437e-05/1.075, allocations: 15.97 kB / 1.108 GB, free: 8.293 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.174e-06/1.075, allocations: 0 / 1.108 GB, free: 8.293 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.075, allocations: 3.938 kB / 1.108 GB, free: 8.289 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/1.076, allocations: 0.5272 MB / 1.108 GB, free: 7.746 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.723e-05/1.076, allocations: 104.8 kB / 1.108 GB, free: 7.625 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/1.076, allocations: 19.98 kB / 1.109 GB, free: 7.605 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/1.076, allocations: 0 / 1.109 GB, free: 7.605 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/1.076, allocations: 86.14 kB / 1.109 GB, free: 7.523 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.628e-05/1.077, allocations: 31.97 kB / 1.109 GB, free: 7.492 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.36e-05/1.077, allocations: 87.28 kB / 1.109 GB, free: 7.406 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.41e-07/1.077, allocations: 0 / 1.109 GB, free: 7.406 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0006532/1.077, allocations: 79.98 kB / 1.109 GB, free: 7.328 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,falCleTruIni.u,falCleTruIni.clr,falCleTruIni.y,truCleTruIni.u,truCleTruIni.clr,truCleTruIni.y,falCleFalIni.u,falCleFalIni.clr,falCleFalIni.y,truCleFalIni.u,truCleFalIni.clr,truCleFalIni.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 18 (truCleFalIni.u,truCleFalIni.clr,truCleFalIni.y,falCleTruIni.u,falCleTruIni.clr,falCleTruIni.y,truCleTruIni.u,truCleTruIni.clr,truCleTruIni.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,falCleFalIni.u,falCleFalIni.clr,falCleFalIni.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * 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.001699/1.079, allocations: 1.114 MB / 1.11 GB, free: 6.188 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001309/1.08, allocations: 0.5259 MB / 1.11 GB, free: 5.633 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/1.08, allocations: 4.625 kB / 1.11 GB, free: 5.629 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0005537/1.081, allocations: 285.6 kB / 1.111 GB, free: 5.352 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004132/1.081, allocations: 28.2 kB / 1.111 GB, free: 5.328 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001531/1.083, allocations: 402.9 kB / 1.111 GB, free: 4.898 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/1.083, allocations: 0.7452 MB / 1.112 GB, free: 4.125 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0002148/1.084, allocations: 39.25 kB / 1.112 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002687/1.084, allocations: 79.39 kB / 1.112 GB, free: 4.008 MB / 0.7136 GB Notification: Performance of SimCode: time 1.102e-06/1.084, allocations: 7.938 kB / 1.112 GB, free: 4 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05369/1.138, allocations: 5.598 MB / 1.117 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002784/1.138, allocations: 153.5 kB / 1.118 GB, free: 14.32 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.634/3.772, allocations: 0 / 1.118 GB, free: 14.32 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)