Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",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.1.4-maint.8.1.x/package.mo): time 1.38/1.38, allocations: 289.8 MB / 297.1 MB, free: 6.742 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.0009685/0.0009685, allocations: 181.3 kB / 366.3 MB, free: 2.02 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.033/1.033, allocations: 205.1 MB / 0.6256 GB, free: 5.852 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.0007945/0.0007944, allocations: 86.89 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1847/0.1855, allocations: 122.4 MB / 0.8591 GB, free: 13.28 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4085/0.594, allocations: 116.3 MB / 0.9727 GB, free: 68.07 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1406/0.7346, allocations: 138.7 MB / 1.108 GB, free: 9.758 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/0.7349, allocations: 75.89 kB / 1.108 GB, free: 9.684 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.02178/0.7567, allocations: 4.131 MB / 1.112 GB, free: 5.512 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.7568, allocations: 8 kB / 1.112 GB, free: 5.504 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.7569, allocations: 27.8 kB / 1.112 GB, free: 5.477 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/0.7571, allocations: 171 kB / 1.112 GB, free: 5.27 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.015e-05/0.7572, allocations: 15.98 kB / 1.112 GB, free: 5.254 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.7573, allocations: 27.98 kB / 1.112 GB, free: 5.227 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003096/0.7576, allocations: 79.98 kB / 1.113 GB, free: 5.148 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005536/0.7582, allocations: 189.5 kB / 1.113 GB, free: 4.957 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.7582, allocations: 3.906 kB / 1.113 GB, free: 4.953 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.29e-05/0.7583, allocations: 11.97 kB / 1.113 GB, free: 4.941 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.7583, allocations: 4 kB / 1.113 GB, free: 4.938 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.7594, allocations: 0.5125 MB / 1.113 GB, free: 4.387 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005401/0.7599, allocations: 244 kB / 1.113 GB, free: 4.141 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.7602, allocations: 125.9 kB / 1.114 GB, free: 4.016 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.7603, allocations: 8 kB / 1.114 GB, free: 4.008 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007481/0.761, allocations: 315.6 kB / 1.114 GB, free: 3.688 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 2.885e-06/0.7611, allocations: 0 / 1.114 GB, free: 3.688 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.0005907/0.7617, allocations: 343 kB / 1.114 GB, free: 3.344 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.7617, allocations: 63.84 kB / 1.114 GB, free: 3.27 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.528e-05/0.7618, allocations: 117.3 kB / 1.114 GB, free: 3.148 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.019e-05/0.7619, allocations: 57.69 kB / 1.114 GB, free: 3.086 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.077e-05/0.762, allocations: 105 kB / 1.115 GB, free: 2.977 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.58e-05/0.7621, allocations: 102.8 kB / 1.115 GB, free: 2.875 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.275e-05/0.7621, allocations: 4 kB / 1.115 GB, free: 2.871 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.7622, allocations: 332.7 kB / 1.115 GB, free: 2.539 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/0.7625, allocations: 165.3 kB / 1.115 GB, free: 2.379 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003319/0.7628, allocations: 263.1 kB / 1.115 GB, free: 2.09 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003984/0.7632, allocations: 137.4 kB / 1.116 GB, free: 1.961 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.7632, allocations: 4 kB / 1.116 GB, free: 1.957 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008756/0.7641, allocations: 468 kB / 1.116 GB, free: 1.492 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.7641, allocations: 6.969 kB / 1.116 GB, free: 1.488 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.7642, allocations: 4 kB / 1.116 GB, free: 1.484 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.7642, allocations: 4 kB / 1.116 GB, free: 1.48 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.998e-05/0.7643, allocations: 27.86 kB / 1.116 GB, free: 1.453 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.7643, allocations: 4 kB / 1.116 GB, free: 1.449 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003969/0.7647, allocations: 80.16 kB / 1.116 GB, free: 1.371 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.708e-05/0.7647, allocations: 31.98 kB / 1.116 GB, free: 1.34 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.clr,$PRE.falCleFalIni.clr,$PRE.truCleTruIni.clr,$PRE.truCleFalIni.clr,$PRE.swiCleInp.clr,$PRE.swiCleInp1.clr,$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,falCleTruIni.clr,$PRE.falCleTruIni.y,falCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,falCleFalIni.clr,$PRE.falCleFalIni.y,falCleFalIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,truCleTruIni.clr,$PRE.truCleTruIni.y,truCleTruIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,truCleFalIni.clr,$PRE.truCleFalIni.y,truCleFalIni.y,$PRE.swiCleInp.u,swiCleInp.u,swiCleInp.clr,$PRE.swiCleInp.y,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,swiCleInp1.clr,$PRE.swiCleInp1.y,swiCleInp1.y,$PRE.cleInp.y,cleInp.y,$PRE.togInp.y,togInp.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.000153/0.7649, allocations: 153.9 kB / 1.116 GB, free: 1.18 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.48e-05/0.7649, allocations: 27.8 kB / 1.116 GB, free: 1.152 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.255e-05/0.765, allocations: 30.06 kB / 1.116 GB, free: 1.121 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.7651, allocations: 4 kB / 1.116 GB, free: 1.117 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.7651, allocations: 0 / 1.116 GB, free: 1.117 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.7651, allocations: 4 kB / 1.116 GB, free: 1.113 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.7662, allocations: 0.8027 MB / 1.117 GB, free: 260 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.7662, allocations: 0.9375 kB / 1.117 GB, free: 260 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.216e-05/0.7663, allocations: 16.06 kB / 1.117 GB, free: 244 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.593e-06/0.7663, allocations: 7.984 kB / 1.117 GB, free: 236 kB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.194e-05/0.7663, allocations: 23.97 kB / 1.117 GB, free: 212 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.7663, allocations: 3.938 kB / 1.117 GB, free: 208 kB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.7663, allocations: 7.906 kB / 1.117 GB, free: 200 kB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005615/0.7669, allocations: 0.5007 MB / 1.118 GB, free: 15.63 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006333/0.7675, allocations: 0.8797 MB / 1.119 GB, free: 14.7 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.516e-05/0.7676, allocations: 92.92 kB / 1.119 GB, free: 14.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.462e-05/0.7677, allocations: 23.98 kB / 1.119 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.7678, allocations: 8.922 kB / 1.119 GB, free: 14.56 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.768, allocations: 99.7 kB / 1.119 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.111e-05/0.768, allocations: 35.97 kB / 1.119 GB, free: 14.43 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.803e-05/0.7681, allocations: 89.36 kB / 1.119 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0009766/0.7691, allocations: 87.98 kB / 1.119 GB, free: 14.25 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 48 (swiCleInp1.clr,swiCleInp.clr,$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.y,falCleFalIni.u,falCleFalIni.y,truCleTruIni.u,truCleTruIni.y,truCleFalIni.u,truCleFalIni.y,swiCleInp.u,swiCleInp.y,swiCleInp1.u,swiCleInp1.y,cleInp.y,togInp.y,falCleFalIni.clr,falCleTruIni.clr,truCleFalIni.clr,truCleTruIni.clr) * Number of discrete states: 12 (truCleFalIni.u,truCleFalIni.y,falCleTruIni.u,falCleTruIni.y,truCleTruIni.u,truCleTruIni.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.y,falCleFalIni.u,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.0002564/0.7693, allocations: 151 kB / 1.119 GB, free: 14.1 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006584/0.77, allocations: 464.2 kB / 1.12 GB, free: 13.63 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.77, allocations: 7.938 kB / 1.12 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000278/0.7703, allocations: 243.8 kB / 1.12 GB, free: 13.39 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.7706, allocations: 22.81 kB / 1.12 GB, free: 13.37 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007047/0.7713, allocations: 352.2 kB / 1.12 GB, free: 12.99 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004067/0.7717, allocations: 0.791 MB / 1.121 GB, free: 12.17 MB / 0.7292 GB Notification: Performance of SimCode: time 2.7e-07/0.7717, allocations: 4 kB / 1.121 GB, free: 12.17 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)