Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_8_0_0_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_0_0_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.0.0/package.mo): time 2.163/2.163, allocations: 284.8 MB / 292.1 MB, free: 10.77 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.001578/0.001578, allocations: 189.2 kB / 360.3 MB, free: 7.496 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.743/1.743, allocations: 205.1 MB / 0.6187 GB, free: 13.2 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.001213/0.001213, allocations: 96.8 kB / 0.7317 GB, free: 45.1 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2473/0.2485, allocations: 121.4 MB / 0.8502 GB, free: 3.887 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5576/0.8062, allocations: 115.2 MB / 0.9628 GB, free: 78.33 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2045/1.011, allocations: 137.6 MB / 1.097 GB, free: 3.242 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/1.011, allocations: 72.89 kB / 1.097 GB, free: 3.172 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.01969/1.031, allocations: 4.137 MB / 1.101 GB, free: 15.06 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/1.031, allocations: 8.5 kB / 1.101 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/1.031, allocations: 35.73 kB / 1.101 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/1.031, allocations: 167 kB / 1.101 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.005e-05/1.031, allocations: 11.98 kB / 1.101 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/1.031, allocations: 27.98 kB / 1.101 GB, free: 14.77 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002976/1.032, allocations: 77.05 kB / 1.102 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005247/1.032, allocations: 197.4 kB / 1.102 GB, free: 14.5 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/1.032, allocations: 3.906 kB / 1.102 GB, free: 14.5 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.577e-05/1.032, allocations: 19.95 kB / 1.102 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/1.032, allocations: 4 kB / 1.102 GB, free: 14.47 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001108/1.033, allocations: 0.4969 MB / 1.102 GB, free: 13.94 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006308/1.034, allocations: 258.6 kB / 1.102 GB, free: 13.68 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/1.034, allocations: 120.9 kB / 1.103 GB, free: 13.55 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/1.034, allocations: 4 kB / 1.103 GB, free: 13.55 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000746/1.035, allocations: 303.7 kB / 1.103 GB, free: 13.24 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 2.905e-06/1.035, allocations: 4 kB / 1.103 GB, free: 13.24 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.001051/1.036, allocations: 351 kB / 1.103 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/1.036, allocations: 64.05 kB / 1.103 GB, free: 12.81 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/1.036, allocations: 124.8 kB / 1.103 GB, free: 12.68 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001368/1.037, allocations: 49.64 kB / 1.103 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.21e-05/1.037, allocations: 105 kB / 1.104 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/1.037, allocations: 102.8 kB / 1.104 GB, free: 12.42 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.163e-05/1.037, allocations: 8 kB / 1.104 GB, free: 12.41 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001874/1.037, allocations: 334.8 kB / 1.104 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005329/1.038, allocations: 165.3 kB / 1.104 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006091/1.038, allocations: 255.2 kB / 1.104 GB, free: 11.63 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007128/1.039, allocations: 137.3 kB / 1.105 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/1.039, allocations: 4 kB / 1.105 GB, free: 11.49 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001618/1.041, allocations: 468 kB / 1.105 GB, free: 11.03 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/1.041, allocations: 7.938 kB / 1.105 GB, free: 11.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/1.041, allocations: 5.562 kB / 1.105 GB, free: 11.02 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/1.041, allocations: 4.312 kB / 1.105 GB, free: 11.01 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/1.041, allocations: 27.92 kB / 1.105 GB, free: 10.98 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/1.041, allocations: 9.062 kB / 1.105 GB, free: 10.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007674/1.042, allocations: 83.92 kB / 1.105 GB, free: 10.89 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.799e-05/1.042, allocations: 24 kB / 1.105 GB, free: 10.87 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.0002659/1.042, allocations: 153.7 kB / 1.105 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.34e-05/1.042, allocations: 27.8 kB / 1.105 GB, free: 10.69 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/1.042, allocations: 30.06 kB / 1.105 GB, free: 10.66 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.607e-06/1.042, allocations: 8 kB / 1.105 GB, free: 10.65 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.447e-06/1.042, allocations: 4 kB / 1.105 GB, free: 10.65 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/1.042, allocations: 3.984 kB / 1.105 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/1.044, allocations: 0.7911 MB / 1.106 GB, free: 9.797 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/1.044, allocations: 0 / 1.106 GB, free: 9.797 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.38e-05/1.044, allocations: 21.61 kB / 1.106 GB, free: 9.777 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.16e-05/1.045, allocations: 5.406 kB / 1.106 GB, free: 9.773 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.469e-05/1.045, allocations: 19.97 kB / 1.106 GB, free: 9.754 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/1.045, allocations: 0 / 1.106 GB, free: 9.754 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/1.045, allocations: 7.906 kB / 1.106 GB, free: 9.746 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009961/1.046, allocations: 0.5162 MB / 1.107 GB, free: 9.176 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001121/1.047, allocations: 0.8721 MB / 1.108 GB, free: 8.242 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/1.047, allocations: 92.92 kB / 1.108 GB, free: 8.133 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/1.047, allocations: 23.98 kB / 1.108 GB, free: 8.109 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/1.047, allocations: 3.984 kB / 1.108 GB, free: 8.105 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003053/1.048, allocations: 99.7 kB / 1.108 GB, free: 8.008 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001084/1.048, allocations: 35.97 kB / 1.108 GB, free: 7.973 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.95e-05/1.048, allocations: 96.42 kB / 1.108 GB, free: 7.879 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001477/1.049, allocations: 87.97 kB / 1.108 GB, free: 7.793 MB / 0.7136 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.0003179/1.05, allocations: 142.3 kB / 1.108 GB, free: 7.641 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001189/1.051, allocations: 468.2 kB / 1.109 GB, free: 7.176 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/1.051, allocations: 3.25 kB / 1.109 GB, free: 7.176 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0005156/1.051, allocations: 251.8 kB / 1.109 GB, free: 6.93 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/1.052, allocations: 22.03 kB / 1.109 GB, free: 6.91 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/1.053, allocations: 345.1 kB / 1.109 GB, free: 6.539 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005899/1.054, allocations: 0.7951 MB / 1.11 GB, free: 5.719 MB / 0.7136 GB Notification: Performance of SimCode: time 9.51e-07/1.054, allocations: 0 / 1.11 GB, free: 5.719 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)