Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.263/1.263, allocations: 249.4 MB / 256.7 MB, free: 7.055 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00103/0.00103, allocations: 188.3 kB / 316 MB, free: 3.504 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.272/1.272, allocations: 205.1 MB / 0.5667 GB, free: 15.72 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008735/0.0008735, allocations: 95.25 kB / 0.671 GB, free: 4.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3239/0.3248, allocations: 112.5 MB / 0.7808 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.479, allocations: 106.3 MB / 0.8847 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.458/0.9371, allocations: 132.3 MB / 1.014 GB, free: 6.211 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001842/0.9373, allocations: 67.45 kB / 1.014 GB, free: 6.176 MB / 0.6355 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.005422/0.9427, allocations: 2.115 MB / 1.016 GB, free: 4.262 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.9428, allocations: 8 kB / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.777e-05/0.9429, allocations: 27.8 kB / 1.016 GB, free: 4.227 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.943, allocations: 171.7 kB / 1.016 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.943, allocations: 15.42 kB / 1.016 GB, free: 4.008 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.307e-05/0.9431, allocations: 16 kB / 1.016 GB, free: 3.992 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001807/0.9433, allocations: 89.62 kB / 1.016 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.9436, allocations: 190.2 kB / 1.016 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.9436, allocations: 3.938 kB / 1.016 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.239e-05/0.9436, allocations: 15.95 kB / 1.016 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.9436, allocations: 4 kB / 1.016 GB, free: 3.762 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007262/0.9444, allocations: 0.4895 MB / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003734/0.9447, allocations: 247 kB / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.9449, allocations: 129.5 kB / 1.017 GB, free: 3.07 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.9449, allocations: 0 / 1.017 GB, free: 3.07 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003854/0.9453, allocations: 297.3 kB / 1.018 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 1.483e-06/0.9453, allocations: 4 kB / 1.018 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.0005021/0.9458, allocations: 328.3 kB / 1.018 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.9459, allocations: 55.41 kB / 1.018 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.22e-05/0.946, allocations: 127.2 kB / 1.018 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 6.116e-05/0.946, allocations: 48.38 kB / 1.018 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.699e-05/0.9461, allocations: 100.6 kB / 1.018 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 7.771e-05/0.9462, allocations: 103.2 kB / 1.018 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.808e-05/0.9462, allocations: 0 / 1.018 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.617e-05/0.9463, allocations: 341.2 kB / 1.019 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.9465, allocations: 123.4 kB / 1.019 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002197/0.9467, allocations: 207.2 kB / 1.019 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.9468, allocations: 80.66 kB / 1.019 GB, free: 1.562 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.9468, allocations: 4 kB / 1.019 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005144/0.9473, allocations: 333 kB / 1.019 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.9474, allocations: 4.25 kB / 1.019 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.9474, allocations: 8 kB / 1.019 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.9474, allocations: 4 kB / 1.019 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.123e-05/0.9475, allocations: 30.36 kB / 1.019 GB, free: 1.258 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.9475, allocations: 11.98 kB / 1.019 GB, free: 1.246 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001475/0.9477, allocations: 22.48 kB / 1.019 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.016e-05/0.9477, allocations: 15.25 kB / 1.019 GB, free: 1.215 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 66 ($PRE.falCle.clr,$PRE.truCle.clr,$PRE.iniFalOut.clr,$PRE.iniTruOut.clr,$PRE.swiCleInp.clr,$PRE.swiCleInp1.clr,$whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.falCle.u,falCle.u,falCle.clr,$PRE.falCle.y,falCle.y,$PRE.truCle.u,truCle.u,truCle.clr,$PRE.truCle.y,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,iniFalOut.clr,$PRE.iniFalOut.y,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,iniTruOut.clr,$PRE.iniTruOut.y,iniTruOut.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.pulseStart,cleInp.pulseStart,$PRE.togInp.pulseStart,togInp.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * 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.0001303/0.9478, allocations: 141.5 kB / 1.02 GB, free: 1.078 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.529e-05/0.9479, allocations: 28.02 kB / 1.02 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.34e-05/0.948, allocations: 33.88 kB / 1.02 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.948, allocations: 7.938 kB / 1.02 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.948, allocations: 3.906 kB / 1.02 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.948, allocations: 7.984 kB / 1.02 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.9491, allocations: 0.81 MB / 1.02 GB, free: 280 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.9491, allocations: 7.938 kB / 1.02 GB, free: 272 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.136e-05/0.9492, allocations: 15.23 kB / 1.02 GB, free: 260 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.9492, allocations: 4 kB / 1.02 GB, free: 256 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.969e-05/0.9492, allocations: 19.34 kB / 1.021 GB, free: 240 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.9492, allocations: 3.938 kB / 1.021 GB, free: 236 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.9493, allocations: 4.125 kB / 1.021 GB, free: 232 kB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005465/0.9498, allocations: 488.3 kB / 1.021 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006303/0.9504, allocations: 0.8557 MB / 1.022 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.799e-05/0.9505, allocations: 96.83 kB / 1.022 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.827e-05/0.9506, allocations: 25.48 kB / 1.022 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001918/0.9508, allocations: 23.97 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.951, allocations: 92.8 kB / 1.022 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.834e-05/0.951, allocations: 35.78 kB / 1.022 GB, free: 14.69 MB / 0.6511 GB Notification: Performance of sort global known variables: time 9.305e-05/0.9511, allocations: 98.08 kB / 1.022 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0008588/0.952, allocations: 63.98 kB / 1.022 GB, free: 14.54 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 46 (swiCleInp.clr,swiCleInp1.clr,$whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCle.u,falCle.y,truCle.u,truCle.y,iniFalOut.u,iniFalOut.y,iniTruOut.u,iniTruOut.y,swiCleInp.u,swiCleInp.y,swiCleInp1.u,swiCleInp1.y,cleInp.pulseStart,togInp.pulseStart,falCle.clr,iniFalOut.clr,iniTruOut.clr,truCle.clr) * Number of discrete states: 12 (iniTruOut.u,iniTruOut.y,iniFalOut.u,iniFalOut.y,truCle.u,truCle.y,falCle.u,falCle.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * 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.000165/0.9522, allocations: 143.1 kB / 1.022 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004443/0.9526, allocations: 339.3 kB / 1.023 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.9526, allocations: 0 / 1.023 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002626/0.9529, allocations: 220.5 kB / 1.023 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002874/0.9532, allocations: 16.73 kB / 1.023 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008658/0.9541, allocations: 399.1 kB / 1.023 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003882/0.9545, allocations: 0.7843 MB / 1.024 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of SimCode: time 2.41e-07/0.9545, allocations: 0 / 1.024 GB, free: 12.84 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)