Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.098/2.098, allocations: 284.9 MB / 292.2 MB, free: 10.75 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001607/0.001607, allocations: 189.2 kB / 360.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.689/1.689, allocations: 205.1 MB / 0.6188 GB, free: 12.46 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001174/0.001174, allocations: 95.33 kB / 0.7318 GB, free: 45 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.485e-05/1.502e-05, allocations: 4 kB / 0.8503 GB, free: 3.867 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5457/0.5458, allocations: 115.2 MB / 0.9628 GB, free: 78.56 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1999/0.7458, allocations: 137.6 MB / 1.097 GB, free: 3.25 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.7461, allocations: 72.61 kB / 1.097 GB, free: 3.18 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.01872/0.7648, allocations: 3.644 MB / 1.101 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.374e-05/0.7649, allocations: 8 kB / 1.101 GB, free: 15.61 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.0007537/0.7656, allocations: 485.8 kB / 1.101 GB, free: 15.08 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.7657, allocations: 12.02 kB / 1.101 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.7658, allocations: 27.81 kB / 1.101 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.766, allocations: 173.2 kB / 1.101 GB, free: 14.83 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.301e-05/0.766, allocations: 11.98 kB / 1.101 GB, free: 14.82 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.7661, allocations: 27.98 kB / 1.101 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003111/0.7665, allocations: 83.92 kB / 1.102 GB, free: 14.71 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004807/0.7669, allocations: 187.3 kB / 1.102 GB, free: 14.52 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.767, allocations: 7.906 kB / 1.102 GB, free: 14.52 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.648e-05/0.767, allocations: 7.984 kB / 1.102 GB, free: 14.51 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.7671, allocations: 4 kB / 1.102 GB, free: 14.5 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001128/0.7682, allocations: 0.5047 MB / 1.102 GB, free: 13.96 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006435/0.7688, allocations: 262.6 kB / 1.103 GB, free: 13.7 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003155/0.7692, allocations: 124.9 kB / 1.103 GB, free: 13.57 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.58e-05/0.7692, allocations: 4 kB / 1.103 GB, free: 13.57 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000696/0.7699, allocations: 303.7 kB / 1.103 GB, free: 13.26 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 2.585e-06/0.7699, allocations: 4 kB / 1.103 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.001009/0.7709, allocations: 347 kB / 1.103 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/0.771, allocations: 60 kB / 1.103 GB, free: 12.84 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.7712, allocations: 124.8 kB / 1.103 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001218/0.7713, allocations: 45.7 kB / 1.103 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.233e-05/0.7714, allocations: 105 kB / 1.104 GB, free: 12.55 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.7715, allocations: 102.8 kB / 1.104 GB, free: 12.45 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.646e-05/0.7716, allocations: 4 kB / 1.104 GB, free: 12.44 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.7718, allocations: 338.8 kB / 1.104 GB, free: 12.1 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005092/0.7723, allocations: 153.3 kB / 1.104 GB, free: 11.95 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000591/0.7729, allocations: 243.2 kB / 1.104 GB, free: 11.68 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000708/0.7736, allocations: 141.3 kB / 1.105 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.7736, allocations: 4 kB / 1.105 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001547/0.7752, allocations: 460 kB / 1.105 GB, free: 11.08 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.7752, allocations: 4 kB / 1.105 GB, free: 11.08 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.7752, allocations: 4 kB / 1.105 GB, free: 11.07 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.7753, allocations: 8.312 kB / 1.105 GB, free: 11.07 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.7754, allocations: 23.92 kB / 1.105 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.7754, allocations: 11.78 kB / 1.105 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007639/0.7762, allocations: 83.94 kB / 1.105 GB, free: 10.95 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.429e-05/0.7763, allocations: 25.92 kB / 1.105 GB, free: 10.93 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.0002392/0.7765, allocations: 158.9 kB / 1.105 GB, free: 10.77 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.342e-05/0.7766, allocations: 19.81 kB / 1.105 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.7768, allocations: 42.05 kB / 1.105 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.7768, allocations: 4 kB / 1.105 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.7768, allocations: 0 / 1.105 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.7768, allocations: 0 / 1.105 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.7783, allocations: 0.7236 MB / 1.106 GB, free: 9.941 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.7783, allocations: 0 / 1.106 GB, free: 9.941 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.119e-05/0.7784, allocations: 19.92 kB / 1.106 GB, free: 9.922 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.335e-06/0.7784, allocations: 4 kB / 1.106 GB, free: 9.918 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.575e-05/0.7784, allocations: 15.97 kB / 1.106 GB, free: 9.902 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.7784, allocations: 0 / 1.106 GB, free: 9.902 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.7785, allocations: 0 / 1.106 GB, free: 9.902 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009227/0.7794, allocations: 462.9 kB / 1.107 GB, free: 9.434 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.707e-05/0.7795, allocations: 96.83 kB / 1.107 GB, free: 9.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.7796, allocations: 21.73 kB / 1.107 GB, free: 9.301 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/0.7798, allocations: 7.984 kB / 1.107 GB, free: 9.293 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002428/0.7801, allocations: 72.28 kB / 1.107 GB, free: 9.223 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.641e-05/0.7802, allocations: 31.97 kB / 1.107 GB, free: 9.191 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.415e-05/0.7803, allocations: 94 kB / 1.107 GB, free: 9.102 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0006163/0.7809, allocations: 87.98 kB / 1.107 GB, free: 9.016 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.0002897/0.7812, allocations: 146.2 kB / 1.107 GB, free: 8.859 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001155/0.7823, allocations: 466.9 kB / 1.107 GB, free: 8.395 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.7824, allocations: 0 / 1.107 GB, free: 8.395 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0005524/0.7829, allocations: 289.5 kB / 1.108 GB, free: 8.113 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003783/0.7833, allocations: 28.59 kB / 1.108 GB, free: 8.086 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.7845, allocations: 355.9 kB / 1.108 GB, free: 7.715 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005431/0.7851, allocations: 0.7761 MB / 1.109 GB, free: 6.91 MB / 0.7136 GB Notification: Performance of SimCode: time 7.01e-07/0.7851, allocations: 4 kB / 1.109 GB, free: 6.906 MB / 0.7136 GB Notification: Performance of Templates: time 0.01334/0.7984, allocations: 4.614 MB / 1.113 GB, free: 2.367 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (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 & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)