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.935/1.935, allocations: 292.6 MB / 307.5 MB, free: 5.199 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.001566/0.001566, allocations: 190.8 kB / 377.1 MB, free: 1.512 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.784/1.784, allocations: 205.4 MB / 0.6367 GB, free: 8.609 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.0008392/0.0008392, allocations: 89.58 kB / 0.751 GB, free: 63.09 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003634, allocations: 12 kB / 0.8748 GB, free: 11.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3312, allocations: 116.3 MB / 0.9884 GB, free: 6.734 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.811/1.142, allocations: 139.5 MB / 1.125 GB, free: 35.19 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/1.142, allocations: 74.5 kB / 1.125 GB, free: 35.13 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01082/1.153, allocations: 3.964 MB / 1.129 GB, free: 32.43 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.685e-06/1.153, allocations: 0 / 1.129 GB, free: 32.43 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.119e-05/1.153, allocations: 4.938 kB / 1.129 GB, free: 32.42 MB / 0.7292 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.0006645/1.154, allocations: 496.2 kB / 1.129 GB, free: 31.91 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/1.154, allocations: 12.02 kB / 1.129 GB, free: 31.9 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/1.154, allocations: 23.81 kB / 1.129 GB, free: 31.88 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/1.154, allocations: 178 kB / 1.129 GB, free: 31.67 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.441e-05/1.154, allocations: 27.52 kB / 1.129 GB, free: 31.64 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.095e-05/1.155, allocations: 28.56 kB / 1.129 GB, free: 31.62 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003812/1.155, allocations: 207.2 kB / 1.13 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/1.155, allocations: 0 / 1.13 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.535e-05/1.155, allocations: 23.11 kB / 1.13 GB, free: 31.46 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/1.155, allocations: 6.016 kB / 1.13 GB, free: 31.45 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/1.155, allocations: 94.3 kB / 1.13 GB, free: 31.38 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008198/1.156, allocations: 0.5507 MB / 1.13 GB, free: 30.91 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00042/1.156, allocations: 295.9 kB / 1.13 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/1.156, allocations: 7.953 kB / 1.13 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007059/1.157, allocations: 0.5131 MB / 1.131 GB, free: 30.29 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=48): time 1.523e-06/1.157, allocations: 0 / 1.131 GB, free: 30.29 MB / 0.7292 GB Notification: Performance of matching and sorting (n=48): time 0.0009284/1.158, allocations: 0.6229 MB / 1.132 GB, free: 29.73 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/1.158, allocations: 59.84 kB / 1.132 GB, free: 29.66 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.001e-05/1.158, allocations: 128.6 kB / 1.132 GB, free: 29.53 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 6.032e-05/1.158, allocations: 56.94 kB / 1.132 GB, free: 29.47 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.244e-05/1.158, allocations: 108.2 kB / 1.132 GB, free: 29.37 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 7.302e-05/1.158, allocations: 104.7 kB / 1.132 GB, free: 29.27 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.182e-05/1.159, allocations: 12 kB / 1.132 GB, free: 29.26 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.919e-05/1.159, allocations: 333.6 kB / 1.132 GB, free: 28.93 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002906/1.159, allocations: 180.9 kB / 1.133 GB, free: 28.78 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002999/1.159, allocations: 271.2 kB / 1.133 GB, free: 28.51 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002232/1.159, allocations: 196.5 kB / 1.133 GB, free: 28.32 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/1.159, allocations: 0 / 1.133 GB, free: 28.32 MB / 0.7292 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0006968/1.16, allocations: 0.5628 MB / 1.133 GB, free: 27.77 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.336e-05/1.16, allocations: 66.83 kB / 1.134 GB, free: 27.7 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/1.16, allocations: 4 kB / 1.134 GB, free: 27.7 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/1.16, allocations: 4 kB / 1.134 GB, free: 27.69 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.939e-05/1.16, allocations: 28.31 kB / 1.134 GB, free: 27.67 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/1.16, allocations: 11.66 kB / 1.134 GB, free: 27.66 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003774/1.161, allocations: 85.77 kB / 1.134 GB, free: 27.59 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.055e-05/1.161, allocations: 27.47 kB / 1.134 GB, free: 27.57 MB / 0.7292 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 () * Number of clocked 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.0001585/1.161, allocations: 172.5 kB / 1.134 GB, free: 27.39 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.241e-05/1.161, allocations: 31.97 kB / 1.134 GB, free: 27.37 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.906e-05/1.161, allocations: 30.28 kB / 1.134 GB, free: 27.34 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/1.161, allocations: 8 kB / 1.134 GB, free: 27.34 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/1.161, allocations: 0.8438 kB / 1.134 GB, free: 27.34 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/1.161, allocations: 11.36 kB / 1.134 GB, free: 27.33 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009255/1.162, allocations: 0.8954 MB / 1.135 GB, free: 26.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/1.162, allocations: 0 / 1.135 GB, free: 26.5 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.213e-05/1.162, allocations: 15.33 kB / 1.135 GB, free: 26.49 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/1.162, allocations: 4 kB / 1.135 GB, free: 26.49 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.248e-05/1.162, allocations: 19.41 kB / 1.135 GB, free: 26.48 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/1.162, allocations: 5.359 kB / 1.135 GB, free: 26.47 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.162, allocations: 2.844 kB / 1.135 GB, free: 26.47 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006498/1.163, allocations: 0.5756 MB / 1.135 GB, free: 25.93 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 3.061e-05/1.163, allocations: 97.48 kB / 1.136 GB, free: 25.82 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.613e-05/1.163, allocations: 23.84 kB / 1.136 GB, free: 25.8 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.482e-05/1.163, allocations: 11.47 kB / 1.136 GB, free: 25.79 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/1.163, allocations: 81.77 kB / 1.136 GB, free: 25.75 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-05/1.163, allocations: 31.73 kB / 1.136 GB, free: 25.73 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.078e-05/1.163, allocations: 101.2 kB / 1.136 GB, free: 25.63 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/1.163, allocations: 0.8438 kB / 1.136 GB, free: 25.63 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003818/1.164, allocations: 104 kB / 1.136 GB, free: 25.54 MB / 0.7292 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) * Number of clocked states: 0 () * 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.0002222/1.164, allocations: 158.2 kB / 1.136 GB, free: 25.38 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007122/1.165, allocations: 0.5822 MB / 1.137 GB, free: 24.82 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/1.165, allocations: 0 / 1.137 GB, free: 24.82 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003133/1.165, allocations: 311.2 kB / 1.137 GB, free: 24.54 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/1.165, allocations: 29 kB / 1.137 GB, free: 24.52 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007899/1.166, allocations: 0.5163 MB / 1.137 GB, free: 24.03 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001783/1.166, allocations: 0.7409 MB / 1.138 GB, free: 23.29 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001151/1.166, allocations: 36.38 kB / 1.138 GB, free: 23.26 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/1.167, allocations: 42.66 kB / 1.138 GB, free: 23.23 MB / 0.7292 GB Notification: Performance of SimCode: time 4.21e-07/1.167, allocations: 0 / 1.138 GB, free: 23.23 MB / 0.7292 GB Notification: Performance of Templates: time 0.009343/1.176, allocations: 4.219 MB / 1.142 GB, free: 20.91 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)