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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) [: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.298/1.298, allocations: 285.5 MB / 292.8 MB, free: 10.41 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.0009848/0.0009849, allocations: 195.3 kB / 361.1 MB, free: 7.117 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.003/1.003, allocations: 205.1 MB / 0.6195 GB, free: 10.37 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.0007332/0.0007331, allocations: 98.3 kB / 0.7326 GB, free: 44.29 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1715/0.1722, allocations: 121.5 MB / 0.8512 GB, free: 2.918 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.5714, allocations: 115.3 MB / 0.9638 GB, free: 78.11 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1283/0.6997, allocations: 137.7 MB / 1.098 GB, free: 2.32 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001901/0.7, allocations: 73.42 kB / 1.098 GB, free: 2.25 MB / 0.698 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.01094/0.7109, allocations: 4.12 MB / 1.102 GB, free: 14.16 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.711, allocations: 9.156 kB / 1.102 GB, free: 14.16 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.736e-05/0.7111, allocations: 35.8 kB / 1.102 GB, free: 14.12 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.013e-05/0.7112, allocations: 173 kB / 1.103 GB, free: 13.91 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.7112, allocations: 7.984 kB / 1.103 GB, free: 13.91 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.858e-05/0.7113, allocations: 31.98 kB / 1.103 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001684/0.7114, allocations: 83.98 kB / 1.103 GB, free: 13.79 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002668/0.7117, allocations: 181.5 kB / 1.103 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.7117, allocations: 10.61 kB / 1.103 GB, free: 13.6 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.876e-05/0.7118, allocations: 15.95 kB / 1.103 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.7118, allocations: 4 kB / 1.103 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006189/0.7124, allocations: 0.4974 MB / 1.103 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003647/0.7128, allocations: 258.7 kB / 1.104 GB, free: 12.79 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001747/0.7129, allocations: 125.2 kB / 1.104 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.171e-05/0.713, allocations: 7.938 kB / 1.104 GB, free: 12.65 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003891/0.7134, allocations: 313.2 kB / 1.104 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 1.844e-06/0.7134, allocations: 0 / 1.104 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.0005393/0.7139, allocations: 347.2 kB / 1.104 GB, free: 11.99 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.714, allocations: 63.84 kB / 1.104 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.549e-05/0.714, allocations: 120.8 kB / 1.105 GB, free: 11.79 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.702e-05/0.7141, allocations: 45.7 kB / 1.105 GB, free: 11.74 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.634e-05/0.7142, allocations: 109 kB / 1.105 GB, free: 11.62 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 7.318e-05/0.7143, allocations: 98.81 kB / 1.105 GB, free: 11.53 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.7143, allocations: 4 kB / 1.105 GB, free: 11.52 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.927e-05/0.7144, allocations: 334.8 kB / 1.105 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002555/0.7146, allocations: 157.3 kB / 1.105 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002956/0.715, allocations: 251.1 kB / 1.106 GB, free: 10.76 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003878/0.7153, allocations: 137.4 kB / 1.106 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.7154, allocations: 2.531 kB / 1.106 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008192/0.7162, allocations: 464.2 kB / 1.106 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.7162, allocations: 4 kB / 1.106 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.7162, allocations: 0 / 1.106 GB, free: 10.16 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.7162, allocations: 8 kB / 1.106 GB, free: 10.15 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.06e-05/0.7163, allocations: 27.86 kB / 1.106 GB, free: 10.12 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.7163, allocations: 4 kB / 1.106 GB, free: 10.12 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003677/0.7167, allocations: 84.03 kB / 1.106 GB, free: 10.04 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.307e-05/0.7167, allocations: 29.17 kB / 1.106 GB, free: 10.01 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.0001246/0.7169, allocations: 151.2 kB / 1.106 GB, free: 9.859 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.41e-05/0.7169, allocations: 20.47 kB / 1.106 GB, free: 9.84 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.491e-05/0.717, allocations: 34.06 kB / 1.106 GB, free: 9.809 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.717, allocations: 4 kB / 1.106 GB, free: 9.805 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.717, allocations: 3.938 kB / 1.106 GB, free: 9.801 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.717, allocations: 3.984 kB / 1.106 GB, free: 9.797 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007456/0.7178, allocations: 0.7165 MB / 1.107 GB, free: 9.039 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.7178, allocations: 0 / 1.107 GB, free: 9.039 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.193e-05/0.7178, allocations: 19.92 kB / 1.107 GB, free: 9.02 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.7178, allocations: 0 / 1.107 GB, free: 9.02 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/0.7179, allocations: 17.48 kB / 1.107 GB, free: 9.004 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.7179, allocations: 3.984 kB / 1.107 GB, free: 9 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.7179, allocations: 7.938 kB / 1.107 GB, free: 8.992 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005058/0.7184, allocations: 458.9 kB / 1.108 GB, free: 8.527 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005823/0.719, allocations: 0.8242 MB / 1.108 GB, free: 7.684 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.796e-05/0.719, allocations: 96.83 kB / 1.109 GB, free: 7.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.106e-05/0.7191, allocations: 19.98 kB / 1.109 GB, free: 7.551 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.647e-05/0.7192, allocations: 7.984 kB / 1.109 GB, free: 7.543 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.7194, allocations: 78.16 kB / 1.109 GB, free: 7.469 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.676e-05/0.7194, allocations: 31.97 kB / 1.109 GB, free: 7.438 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.601e-05/0.7195, allocations: 88.38 kB / 1.109 GB, free: 7.352 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008698/0.7203, allocations: 83.98 kB / 1.109 GB, free: 7.27 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.0001868/0.7205, allocations: 158.9 kB / 1.109 GB, free: 7.102 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.000606/0.7211, allocations: 466.9 kB / 1.109 GB, free: 6.637 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.7212, allocations: 0 / 1.109 GB, free: 6.637 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.7214, allocations: 289.5 kB / 1.11 GB, free: 6.355 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.7217, allocations: 24.73 kB / 1.11 GB, free: 6.336 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006625/0.7223, allocations: 360.6 kB / 1.11 GB, free: 5.961 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003473/0.7227, allocations: 0.7878 MB / 1.111 GB, free: 5.145 MB / 0.7136 GB Notification: Performance of SimCode: time 2.3e-07/0.7227, allocations: 0 / 1.111 GB, free: 5.145 MB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)