Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.56/1.56, allocations: 289.9 MB / 297.4 MB, free: 6.395 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.0009528/0.0009528, allocations: 184.8 kB / 366.7 MB, free: 1.645 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.84/1.84, allocations: 205.3 MB / 0.626 GB, free: 7.164 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.0009448/0.0009451, allocations: 88.44 kB / 0.74 GB, free: 39.53 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.003e-05/2.004e-05, allocations: 4 kB / 0.8597 GB, free: 13.03 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6942/0.6943, allocations: 116.3 MB / 0.9733 GB, free: 76.17 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1864/0.8807, allocations: 138.8 MB / 1.109 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.881, allocations: 66.69 kB / 1.109 GB, free: 11.33 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01136/0.8924, allocations: 3.939 MB / 1.113 GB, free: 7.445 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.112e-06/0.8925, allocations: 0 / 1.113 GB, free: 7.445 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.185e-05/0.8925, allocations: 4 kB / 1.113 GB, free: 7.441 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.0006759/0.8932, allocations: 482.4 kB / 1.113 GB, free: 6.91 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.8932, allocations: 8.031 kB / 1.113 GB, free: 6.902 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.8933, allocations: 23.86 kB / 1.113 GB, free: 6.879 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/0.8935, allocations: 185.9 kB / 1.113 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.832e-05/0.8935, allocations: 8 kB / 1.113 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.297e-05/0.8936, allocations: 27.98 kB / 1.113 GB, free: 6.625 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002054/0.8938, allocations: 86.61 kB / 1.114 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003071/0.8942, allocations: 185.5 kB / 1.114 GB, free: 6.355 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.88e-05/0.8942, allocations: 0 / 1.114 GB, free: 6.355 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.749e-05/0.8942, allocations: 15.97 kB / 1.114 GB, free: 6.34 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.8943, allocations: 0 / 1.114 GB, free: 6.34 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007522/0.895, allocations: 0.4969 MB / 1.114 GB, free: 5.805 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003712/0.8954, allocations: 274.7 kB / 1.114 GB, free: 5.527 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.8956, allocations: 127.5 kB / 1.115 GB, free: 5.402 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.8956, allocations: 8.172 kB / 1.115 GB, free: 5.395 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006626/0.8963, allocations: 0.4914 MB / 1.115 GB, free: 4.891 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 2.204e-06/0.8963, allocations: 3.938 kB / 1.115 GB, free: 4.887 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.0007392/0.897, allocations: 435.8 kB / 1.115 GB, free: 4.457 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.8971, allocations: 63.83 kB / 1.116 GB, free: 4.383 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.8972, allocations: 120.7 kB / 1.116 GB, free: 4.262 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.387e-05/0.8973, allocations: 49.69 kB / 1.116 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.918e-05/0.8974, allocations: 105.3 kB / 1.116 GB, free: 4.102 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 9.6e-05/0.8975, allocations: 98.81 kB / 1.116 GB, free: 4.004 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.247e-05/0.8976, allocations: 4 kB / 1.116 GB, free: 4 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.8977, allocations: 334.8 kB / 1.116 GB, free: 3.664 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.898, allocations: 157.3 kB / 1.116 GB, free: 3.512 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003472/0.8984, allocations: 251.7 kB / 1.117 GB, free: 3.234 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004636/0.8988, allocations: 138.1 kB / 1.117 GB, free: 3.098 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.8988, allocations: 0 / 1.117 GB, free: 3.098 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009115/0.8998, allocations: 466.5 kB / 1.117 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 6.404e-05/0.8998, allocations: 68.48 kB / 1.117 GB, free: 2.555 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.8999, allocations: 4.312 kB / 1.117 GB, free: 2.551 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.8999, allocations: 8 kB / 1.117 GB, free: 2.543 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.256e-05/0.9, allocations: 27.86 kB / 1.117 GB, free: 2.516 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.9, allocations: 4 kB / 1.117 GB, free: 2.512 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003766/0.9004, allocations: 71.94 kB / 1.117 GB, free: 2.441 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.786e-05/0.9005, allocations: 31.98 kB / 1.117 GB, free: 2.41 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.0001767/0.9006, allocations: 142 kB / 1.118 GB, free: 2.266 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.233e-05/0.9007, allocations: 31.66 kB / 1.118 GB, free: 2.234 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.718e-05/0.9008, allocations: 38.19 kB / 1.118 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.9008, allocations: 4.625 kB / 1.118 GB, free: 2.188 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.9008, allocations: 0 / 1.118 GB, free: 2.188 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.9008, allocations: 3.984 kB / 1.118 GB, free: 2.184 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009706/0.9018, allocations: 0.7949 MB / 1.118 GB, free: 1.344 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.9018, allocations: 3.688 kB / 1.118 GB, free: 1.344 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.5e-05/0.9019, allocations: 15.92 kB / 1.118 GB, free: 1.328 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.9019, allocations: 7.891 kB / 1.118 GB, free: 1.32 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.9019, allocations: 15.97 kB / 1.118 GB, free: 1.305 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.9019, allocations: 4 kB / 1.118 GB, free: 1.301 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.902, allocations: 0 / 1.118 GB, free: 1.301 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000755/0.9027, allocations: 0.5311 MB / 1.119 GB, free: 0.75 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.243e-05/0.9028, allocations: 88.92 kB / 1.119 GB, free: 0.6445 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.888e-05/0.9029, allocations: 19.94 kB / 1.119 GB, free: 0.625 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001771/0.9031, allocations: 11.98 kB / 1.119 GB, free: 0.6133 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.9032, allocations: 76.28 kB / 1.119 GB, free: 0.5391 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.051e-05/0.9033, allocations: 31.97 kB / 1.119 GB, free: 0.5078 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 6.095e-05/0.9034, allocations: 93.45 kB / 1.119 GB, free: 428 kB / 0.7136 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9034, allocations: 1.406 kB / 1.119 GB, free: 428 kB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003966/0.9038, allocations: 87.98 kB / 1.119 GB, free: 340 kB / 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.0002895/0.9041, allocations: 150.3 kB / 1.119 GB, free: 184 kB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0007654/0.9049, allocations: 0.5299 MB / 1.12 GB, free: 15.62 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.9049, allocations: 0 / 1.12 GB, free: 15.62 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003494/0.9052, allocations: 282.2 kB / 1.12 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.9055, allocations: 27.97 kB / 1.12 GB, free: 15.33 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007951/0.9063, allocations: 349.1 kB / 1.121 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.9067, allocations: 0.7413 MB / 1.121 GB, free: 14.19 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001219/0.9068, allocations: 35.28 kB / 1.121 GB, free: 14.16 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.9069, allocations: 47.34 kB / 1.121 GB, free: 14.11 MB / 0.7292 GB Notification: Performance of SimCode: time 2.3e-07/0.9069, allocations: 1.969 kB / 1.121 GB, free: 14.11 MB / 0.7292 GB Notification: Performance of Templates: time 0.008721/0.9157, allocations: 4.075 MB / 1.125 GB, free: 10.12 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)