Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.841/1.841, allocations: 390.4 MB / 397.7 MB, free: 11.18 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009064/0.0009064, allocations: 174.4 kB / 490.8 MB, free: 1.883 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.139/1.139, allocations: 221.4 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008365/0.0008365, allocations: 74.94 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4284/0.4292, allocations: 149.1 MB / 1.072 GB, free: 182.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.6203, allocations: 143 MB / 1.212 GB, free: 39.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5006/1.121, allocations: 149.8 MB / 1.358 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001671/1.121, allocations: 69.34 kB / 1.358 GB, free: 17.29 MB / 0.823 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.01097/1.132, allocations: 4.153 MB / 1.362 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/1.132, allocations: 9.938 kB / 1.362 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.816e-05/1.132, allocations: 22.73 kB / 1.362 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.776e-05/1.132, allocations: 175.6 kB / 1.362 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/1.132, allocations: 9.328 kB / 1.362 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.742e-05/1.132, allocations: 28.08 kB / 1.362 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001654/1.133, allocations: 83.5 kB / 1.362 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002803/1.133, allocations: 204 kB / 1.363 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.413e-06/1.133, allocations: 0 / 1.363 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/1.133, allocations: 13.94 kB / 1.363 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/1.133, allocations: 6.062 kB / 1.363 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000637/1.134, allocations: 0.5008 MB / 1.363 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/1.134, allocations: 248.1 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/1.134, allocations: 123.7 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/1.134, allocations: 2.219 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004075/1.135, allocations: 316 kB / 1.364 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.653e-06/1.135, allocations: 1.156 kB / 1.364 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0005591/1.135, allocations: 345.3 kB / 1.364 GB, free: 32 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.238e-05/1.135, allocations: 61.31 kB / 1.364 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.544e-05/1.135, allocations: 118.8 kB / 1.364 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.103e-05/1.135, allocations: 51.06 kB / 1.364 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.473e-05/1.135, allocations: 97.12 kB / 1.364 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.921e-05/1.135, allocations: 106.2 kB / 1.365 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-05/1.135, allocations: 11.97 kB / 1.365 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001045/1.136, allocations: 337.9 kB / 1.365 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/1.136, allocations: 166.7 kB / 1.365 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002996/1.136, allocations: 254.6 kB / 1.365 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000408/1.137, allocations: 140.1 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/1.137, allocations: 6.609 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008856/1.137, allocations: 459 kB / 1.366 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/1.138, allocations: 4.688 kB / 1.366 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/1.138, allocations: 8.344 kB / 1.366 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/1.138, allocations: 10.19 kB / 1.366 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.09e-05/1.138, allocations: 24.62 kB / 1.366 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/1.138, allocations: 10.33 kB / 1.366 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003949/1.138, allocations: 78.2 kB / 1.366 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.435e-05/1.138, allocations: 29.62 kB / 1.366 GB, free: 31.16 MB / 0.8386 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.0001375/1.138, allocations: 150 kB / 1.366 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.466e-05/1.138, allocations: 30.5 kB / 1.366 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.202e-05/1.138, allocations: 31.88 kB / 1.366 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/1.138, allocations: 4.406 kB / 1.366 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/1.138, allocations: 1.062 kB / 1.366 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.413e-06/1.138, allocations: 3.469 kB / 1.366 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009975/1.139, allocations: 0.7985 MB / 1.367 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/1.139, allocations: 2.516 kB / 1.367 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.409e-05/1.139, allocations: 17.44 kB / 1.367 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/1.139, allocations: 8.062 kB / 1.367 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.239e-05/1.14, allocations: 18 kB / 1.367 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/1.14, allocations: 2.562 kB / 1.367 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/1.14, allocations: 6.188 kB / 1.367 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005201/1.14, allocations: 0.515 MB / 1.368 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006891/1.141, allocations: 0.8743 MB / 1.368 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.849e-05/1.141, allocations: 97 kB / 1.369 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.36e-05/1.141, allocations: 22.27 kB / 1.369 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/1.141, allocations: 6.844 kB / 1.369 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/1.141, allocations: 92.05 kB / 1.369 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.369e-05/1.141, allocations: 42 kB / 1.369 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.532e-05/1.141, allocations: 96.95 kB / 1.369 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0009159/1.142, allocations: 87.25 kB / 1.369 GB, free: 29.59 MB / 0.8386 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.0002/1.142, allocations: 151 kB / 1.369 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006246/1.143, allocations: 470.4 kB / 1.369 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/1.143, allocations: 1.438 kB / 1.369 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002661/1.143, allocations: 251.4 kB / 1.37 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/1.144, allocations: 22.5 kB / 1.37 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006491/1.144, allocations: 350.3 kB / 1.37 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003815/1.145, allocations: 0.7883 MB / 1.371 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.145, allocations: 1.25 kB / 1.371 GB, free: 28.54 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat does not exist to compare? outputFormat=mat