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") [: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.1.4-maint.8.1.x/package.mo): time 1.333/1.333, allocations: 289.8 MB / 297.1 MB, free: 6.656 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.0009409/0.0009408, allocations: 177.3 kB / 366.3 MB, free: 1.984 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.022/1.022, allocations: 205.1 MB / 0.6256 GB, free: 5.793 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.0007825/0.0007825, allocations: 95.92 kB / 0.7396 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.733e-06/6.763e-06, allocations: 0 / 0.859 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3924/0.3924, allocations: 116.3 MB / 0.9726 GB, free: 68.64 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.132/0.5245, allocations: 138.7 MB / 1.108 GB, free: 9.758 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000176/0.5247, allocations: 75.94 kB / 1.108 GB, free: 9.684 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.01019/0.5349, allocations: 3.638 MB / 1.112 GB, free: 6.074 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.353e-06/0.5349, allocations: 4 kB / 1.112 GB, free: 6.07 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.0004776/0.5354, allocations: 482.1 kB / 1.112 GB, free: 5.539 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.5355, allocations: 8.031 kB / 1.112 GB, free: 5.531 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.475e-05/0.5355, allocations: 27.81 kB / 1.112 GB, free: 5.504 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.5357, allocations: 174.9 kB / 1.112 GB, free: 5.293 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.5357, allocations: 7.984 kB / 1.112 GB, free: 5.285 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.996e-05/0.5358, allocations: 28.56 kB / 1.112 GB, free: 5.258 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001732/0.5359, allocations: 83.98 kB / 1.112 GB, free: 5.176 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002668/0.5362, allocations: 181.5 kB / 1.113 GB, free: 4.992 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.5362, allocations: 7.844 kB / 1.113 GB, free: 4.984 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.192e-05/0.5363, allocations: 15.97 kB / 1.113 GB, free: 4.969 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.5363, allocations: 12 kB / 1.113 GB, free: 4.957 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006397/0.5369, allocations: 0.4897 MB / 1.113 GB, free: 4.43 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00034/0.5373, allocations: 262.7 kB / 1.113 GB, free: 4.164 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.5375, allocations: 133.2 kB / 1.114 GB, free: 4.031 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 8.325e-06/0.5375, allocations: 7.938 kB / 1.114 GB, free: 4.023 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003784/0.5379, allocations: 297.1 kB / 1.114 GB, free: 3.723 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 2.585e-06/0.5379, allocations: 0 / 1.114 GB, free: 3.723 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.0005466/0.5384, allocations: 362.9 kB / 1.114 GB, free: 3.359 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.563e-05/0.5385, allocations: 59.84 kB / 1.114 GB, free: 3.289 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.364e-05/0.5385, allocations: 117.1 kB / 1.114 GB, free: 3.168 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.338e-05/0.5386, allocations: 49.69 kB / 1.114 GB, free: 3.113 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.179e-05/0.5387, allocations: 101 kB / 1.114 GB, free: 3.008 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 7.361e-05/0.5388, allocations: 98.81 kB / 1.115 GB, free: 2.91 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.5388, allocations: 4 kB / 1.115 GB, free: 2.906 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.5389, allocations: 334.8 kB / 1.115 GB, free: 2.57 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.5392, allocations: 161.3 kB / 1.115 GB, free: 2.414 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.5395, allocations: 247.1 kB / 1.115 GB, free: 2.141 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003765/0.5399, allocations: 141.4 kB / 1.115 GB, free: 2.008 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.5399, allocations: 0.5625 kB / 1.115 GB, free: 2.008 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008238/0.5407, allocations: 460 kB / 1.116 GB, free: 1.551 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/0.5407, allocations: 4 kB / 1.116 GB, free: 1.547 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.5407, allocations: 3.984 kB / 1.116 GB, free: 1.543 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.5407, allocations: 11.98 kB / 1.116 GB, free: 1.531 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.376e-05/0.5408, allocations: 28.17 kB / 1.116 GB, free: 1.504 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.5408, allocations: 9.688 kB / 1.116 GB, free: 1.496 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003647/0.5412, allocations: 79.94 kB / 1.116 GB, free: 1.418 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.986e-05/0.5413, allocations: 26.75 kB / 1.116 GB, free: 1.395 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.0001285/0.5414, allocations: 150 kB / 1.116 GB, free: 1.238 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.869e-05/0.5414, allocations: 23.8 kB / 1.116 GB, free: 1.215 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.415e-05/0.5415, allocations: 30.06 kB / 1.116 GB, free: 1.184 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.5415, allocations: 4 kB / 1.116 GB, free: 1.18 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.5415, allocations: 7.938 kB / 1.116 GB, free: 1.172 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.5415, allocations: 3.984 kB / 1.116 GB, free: 1.168 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007473/0.5423, allocations: 0.7237 MB / 1.117 GB, free: 408 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.5423, allocations: 0 / 1.117 GB, free: 408 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.836e-05/0.5423, allocations: 11.94 kB / 1.117 GB, free: 396 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.5424, allocations: 0 / 1.117 GB, free: 396 kB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.52e-05/0.5424, allocations: 23.91 kB / 1.117 GB, free: 372 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.5424, allocations: 0 / 1.117 GB, free: 372 kB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.5424, allocations: 0 / 1.117 GB, free: 372 kB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004961/0.5429, allocations: 466.9 kB / 1.117 GB, free: 15.89 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.741e-05/0.543, allocations: 96.83 kB / 1.117 GB, free: 15.78 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.21e-05/0.543, allocations: 21.58 kB / 1.117 GB, free: 15.76 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.486e-05/0.5431, allocations: 3.984 kB / 1.118 GB, free: 15.75 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.5433, allocations: 76.28 kB / 1.118 GB, free: 15.68 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-05/0.5434, allocations: 35.97 kB / 1.118 GB, free: 15.64 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.464e-05/0.5434, allocations: 89.25 kB / 1.118 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003288/0.5437, allocations: 83.98 kB / 1.118 GB, free: 15.48 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) * 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.0001802/0.5439, allocations: 146.3 kB / 1.118 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006081/0.5445, allocations: 474.9 kB / 1.118 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.273e-06/0.5445, allocations: 0 / 1.118 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002918/0.5448, allocations: 285.5 kB / 1.119 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002236/0.5451, allocations: 23.42 kB / 1.119 GB, free: 14.55 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006697/0.5457, allocations: 371 kB / 1.119 GB, free: 14.16 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003783/0.5461, allocations: 0.7812 MB / 1.12 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of SimCode: time 2.5e-07/0.5461, allocations: 0 / 1.12 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of Templates: time 0.006923/0.5531, allocations: 4.623 MB / 1.124 GB, free: 8.793 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)