Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.825/1.825, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.0009839/0.0009839, allocations: 181.3 kB / 487 MB, free: 5.336 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.161/1.161, allocations: 221.3 MB / 0.7819 GB, free: 1.348 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008501/0.0008502, allocations: 97.48 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4345/0.4354, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.635, allocations: 142.3 MB / 1.205 GB, free: 26.1 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.53/1.165, allocations: 149 MB / 1.351 GB, free: 15.9 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00018/1.165, allocations: 72.3 kB / 1.351 GB, free: 15.9 MB / 0.8073 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.01102/1.176, allocations: 4.136 MB / 1.355 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/1.176, allocations: 9.547 kB / 1.355 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.477e-05/1.176, allocations: 23 kB / 1.355 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.994e-05/1.177, allocations: 179.2 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.106e-05/1.177, allocations: 10.36 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.078e-05/1.177, allocations: 34.66 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001677/1.177, allocations: 77.31 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/1.177, allocations: 200.6 kB / 1.355 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/1.177, allocations: 4.797 kB / 1.355 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/1.177, allocations: 12.97 kB / 1.355 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/1.177, allocations: 2.844 kB / 1.356 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006548/1.178, allocations: 0.5045 MB / 1.356 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003309/1.178, allocations: 250.7 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/1.178, allocations: 126.2 kB / 1.356 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/1.178, allocations: 2.125 kB / 1.356 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004255/1.179, allocations: 322 kB / 1.357 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=48): time 1.523e-06/1.179, allocations: 0 / 1.357 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of matching and sorting (n=48): time 0.0005893/1.179, allocations: 341.3 kB / 1.357 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.284e-05/1.179, allocations: 61.05 kB / 1.357 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.645e-05/1.18, allocations: 118.9 kB / 1.357 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.314e-05/1.18, allocations: 51.55 kB / 1.357 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.311e-05/1.18, allocations: 98.17 kB / 1.357 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 7.334e-05/1.18, allocations: 104.6 kB / 1.357 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.335e-05/1.18, allocations: 6.094 kB / 1.357 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.107e-05/1.18, allocations: 339.8 kB / 1.358 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002738/1.18, allocations: 164.2 kB / 1.358 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003125/1.18, allocations: 257.9 kB / 1.358 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004114/1.181, allocations: 141.2 kB / 1.358 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/1.181, allocations: 0.75 kB / 1.358 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009097/1.182, allocations: 471.8 kB / 1.359 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/1.182, allocations: 5.188 kB / 1.359 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/1.182, allocations: 2.188 kB / 1.359 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/1.182, allocations: 9.625 kB / 1.359 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.002e-05/1.182, allocations: 30.33 kB / 1.359 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/1.182, allocations: 6.016 kB / 1.359 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/1.182, allocations: 78.61 kB / 1.359 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.114e-05/1.182, allocations: 25.75 kB / 1.359 GB, free: 13.78 MB / 0.8073 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.0001201/1.183, allocations: 157.7 kB / 1.359 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.628e-05/1.183, allocations: 24.81 kB / 1.359 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.911e-05/1.183, allocations: 41.11 kB / 1.359 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/1.183, allocations: 5.062 kB / 1.359 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/1.183, allocations: 0.875 kB / 1.359 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/1.183, allocations: 3 kB / 1.359 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/1.184, allocations: 0.7987 MB / 1.36 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/1.184, allocations: 2.594 kB / 1.36 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.568e-05/1.184, allocations: 12.84 kB / 1.36 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/1.184, allocations: 8.344 kB / 1.36 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.317e-05/1.184, allocations: 21.61 kB / 1.36 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/1.184, allocations: 3.406 kB / 1.36 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.184, allocations: 6.516 kB / 1.36 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005172/1.184, allocations: 0.5038 MB / 1.36 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005887/1.185, allocations: 0.8825 MB / 1.361 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.025e-05/1.185, allocations: 92.8 kB / 1.361 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.772e-05/1.185, allocations: 23.91 kB / 1.361 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/1.185, allocations: 5.844 kB / 1.361 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/1.185, allocations: 98.34 kB / 1.361 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.618e-05/1.185, allocations: 35.06 kB / 1.362 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.344e-05/1.186, allocations: 97.23 kB / 1.362 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0009422/1.186, allocations: 83.62 kB / 1.362 GB, free: 12.21 MB / 0.8073 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.0002058/1.187, allocations: 154.4 kB / 1.362 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0007054/1.187, allocations: 462.4 kB / 1.362 GB, free: 11.97 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.187, allocations: 4.125 kB / 1.362 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0002251/1.188, allocations: 259.4 kB / 1.363 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000247/1.188, allocations: 21.42 kB / 1.363 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006092/1.189, allocations: 348.8 kB / 1.363 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000284/1.189, allocations: 0.7935 MB / 1.364 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of SimCode: time 2.6e-07/1.189, allocations: 0 / 1.364 GB, free: 10.73 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat does not exist to compare? outputFormat=mat