Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.336/1.336, allocations: 285.5 MB / 292.8 MB, free: 10.44 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.001015/0.001015, allocations: 183.5 kB / 361.1 MB, free: 7.105 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.04/1.04, allocations: 205.1 MB / 0.6195 GB, free: 10.31 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.0008173/0.0008173, allocations: 87.36 kB / 0.7326 GB, free: 44.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.953e-06/6.973e-06, allocations: 0 / 0.8511 GB, free: 2.98 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4359/0.436, allocations: 115.3 MB / 0.9637 GB, free: 78.24 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.137/0.573, allocations: 137.7 MB / 1.098 GB, free: 2.297 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001533/0.5732, allocations: 75.95 kB / 1.098 GB, free: 2.223 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.01074/0.5839, allocations: 3.642 MB / 1.102 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.584, allocations: 4 kB / 1.102 GB, free: 14.66 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.0004849/0.5845, allocations: 477.8 kB / 1.102 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.5845, allocations: 8.031 kB / 1.102 GB, free: 14.13 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.518e-05/0.5846, allocations: 31.8 kB / 1.102 GB, free: 14.1 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.5847, allocations: 171 kB / 1.102 GB, free: 13.89 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.5848, allocations: 11.98 kB / 1.102 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.519e-05/0.5848, allocations: 27.98 kB / 1.103 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001772/0.585, allocations: 87.98 kB / 1.103 GB, free: 13.77 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002845/0.5853, allocations: 182.3 kB / 1.103 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.5853, allocations: 7.891 kB / 1.103 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.134e-05/0.5854, allocations: 15.97 kB / 1.103 GB, free: 13.56 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.5854, allocations: 4 kB / 1.103 GB, free: 13.56 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006816/0.5861, allocations: 0.4937 MB / 1.103 GB, free: 13.03 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00036/0.5864, allocations: 266.6 kB / 1.104 GB, free: 12.76 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.5866, allocations: 125.2 kB / 1.104 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.5866, allocations: 4 kB / 1.104 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004165/0.5871, allocations: 315.2 kB / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 2.335e-06/0.5871, allocations: 0 / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.0005921/0.5877, allocations: 348.6 kB / 1.104 GB, free: 11.97 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.5877, allocations: 59.84 kB / 1.104 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.893e-05/0.5878, allocations: 124.8 kB / 1.104 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.082e-05/0.5879, allocations: 45.7 kB / 1.105 GB, free: 11.71 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.922e-05/0.5879, allocations: 101 kB / 1.105 GB, free: 11.61 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.093e-05/0.588, allocations: 102.8 kB / 1.105 GB, free: 11.51 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-05/0.5881, allocations: 4 kB / 1.105 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.5882, allocations: 334.8 kB / 1.105 GB, free: 11.17 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002639/0.5885, allocations: 161.2 kB / 1.105 GB, free: 11.01 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003072/0.5888, allocations: 251.2 kB / 1.105 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004161/0.5892, allocations: 137.4 kB / 1.106 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.5892, allocations: 0 / 1.106 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009219/0.5902, allocations: 460.2 kB / 1.106 GB, free: 10.14 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.5902, allocations: 8 kB / 1.106 GB, free: 10.14 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.5902, allocations: 0 / 1.106 GB, free: 10.14 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.5902, allocations: 10.62 kB / 1.106 GB, free: 10.13 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.623e-05/0.5903, allocations: 23.86 kB / 1.106 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.5903, allocations: 11.94 kB / 1.106 GB, free: 10.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003879/0.5907, allocations: 75.97 kB / 1.106 GB, free: 10.02 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.474e-05/0.5908, allocations: 28.78 kB / 1.106 GB, free: 9.992 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.0001378/0.5909, allocations: 157.2 kB / 1.106 GB, free: 9.836 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.291e-05/0.591, allocations: 24.33 kB / 1.106 GB, free: 9.812 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.757e-05/0.591, allocations: 30.06 kB / 1.106 GB, free: 9.785 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.591, allocations: 4 kB / 1.106 GB, free: 9.781 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.591, allocations: 3.984 kB / 1.106 GB, free: 9.777 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.5911, allocations: 0.6094 kB / 1.106 GB, free: 9.777 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007828/0.5918, allocations: 0.7198 MB / 1.107 GB, free: 9.016 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.5919, allocations: 0 / 1.107 GB, free: 9.016 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.295e-05/0.5919, allocations: 19.92 kB / 1.107 GB, free: 8.996 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.5919, allocations: 0.8906 kB / 1.107 GB, free: 8.996 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.764e-05/0.592, allocations: 19.97 kB / 1.107 GB, free: 8.977 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.592, allocations: 0.875 kB / 1.107 GB, free: 8.977 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.592, allocations: 7.938 kB / 1.107 GB, free: 8.969 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005049/0.5925, allocations: 458.9 kB / 1.108 GB, free: 8.504 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.065e-05/0.5925, allocations: 96.83 kB / 1.108 GB, free: 8.391 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.456e-05/0.5926, allocations: 15.98 kB / 1.108 GB, free: 8.375 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.855e-05/0.5927, allocations: 7.984 kB / 1.108 GB, free: 8.367 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.5929, allocations: 76.28 kB / 1.108 GB, free: 8.293 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.623e-05/0.5929, allocations: 33.97 kB / 1.108 GB, free: 8.262 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.115e-05/0.593, allocations: 97.89 kB / 1.108 GB, free: 8.168 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003646/0.5933, allocations: 83.98 kB / 1.108 GB, free: 8.086 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.0002022/0.5935, allocations: 142.7 kB / 1.108 GB, free: 7.934 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0006241/0.5942, allocations: 474.9 kB / 1.109 GB, free: 7.461 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.5942, allocations: 2.406 kB / 1.109 GB, free: 7.461 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.5945, allocations: 289.6 kB / 1.109 GB, free: 7.18 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.5947, allocations: 22.62 kB / 1.109 GB, free: 7.16 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006856/0.5954, allocations: 363.8 kB / 1.109 GB, free: 6.781 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003463/0.5958, allocations: 0.7839 MB / 1.11 GB, free: 5.969 MB / 0.7136 GB Notification: Performance of SimCode: time 2.51e-07/0.5958, allocations: 4 kB / 1.11 GB, free: 5.965 MB / 0.7136 GB Notification: Performance of Templates: time 0.007362/0.6032, allocations: 4.614 MB / 1.114 GB, free: 1.426 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)