Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.313/1.313, allocations: 285.5 MB / 292.8 MB, free: 10.43 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.0008621/0.0008621, allocations: 189.2 kB / 361.1 MB, free: 7.062 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.003/1.003, allocations: 205.1 MB / 0.6195 GB, free: 10.28 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.0007473/0.0007473, allocations: 97.91 kB / 0.7326 GB, free: 44.21 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1772/0.178, allocations: 121.5 MB / 0.8512 GB, free: 2.848 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.5789, allocations: 115.3 MB / 0.9638 GB, free: 78.32 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1295/0.7085, allocations: 137.8 MB / 1.098 GB, free: 2.188 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001775/0.7087, allocations: 71.95 kB / 1.098 GB, free: 2.117 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.01093/0.7196, allocations: 4.138 MB / 1.102 GB, free: 14.01 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.7197, allocations: 8.5 kB / 1.102 GB, free: 14 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.129e-05/0.7197, allocations: 23.81 kB / 1.102 GB, free: 13.98 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.523e-05/0.7198, allocations: 174.8 kB / 1.103 GB, free: 13.77 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.7199, allocations: 12 kB / 1.103 GB, free: 13.76 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.507e-05/0.7199, allocations: 27.98 kB / 1.103 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001624/0.7201, allocations: 79.92 kB / 1.103 GB, free: 13.66 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002792/0.7204, allocations: 201.5 kB / 1.103 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.7204, allocations: 5.703 kB / 1.103 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/0.7204, allocations: 11.97 kB / 1.103 GB, free: 13.44 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.7205, allocations: 4 kB / 1.103 GB, free: 13.43 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006443/0.7211, allocations: 0.5053 MB / 1.103 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003204/0.7214, allocations: 243.8 kB / 1.104 GB, free: 12.64 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.7216, allocations: 127.5 kB / 1.104 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 8.426e-06/0.7216, allocations: 4 kB / 1.104 GB, free: 12.52 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003982/0.722, allocations: 321.3 kB / 1.104 GB, free: 12.19 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 1.883e-06/0.722, allocations: 0 / 1.104 GB, free: 12.19 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.0005282/0.7226, allocations: 346.9 kB / 1.104 GB, free: 11.85 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.7226, allocations: 59.83 kB / 1.104 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.713e-05/0.7227, allocations: 125 kB / 1.105 GB, free: 11.64 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.138e-05/0.7228, allocations: 49.69 kB / 1.105 GB, free: 11.59 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.248e-05/0.7228, allocations: 101 kB / 1.105 GB, free: 11.48 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.472e-05/0.7229, allocations: 102.8 kB / 1.105 GB, free: 11.38 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-05/0.723, allocations: 8 kB / 1.105 GB, free: 11.38 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.038e-05/0.7231, allocations: 338.6 kB / 1.105 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000268/0.7233, allocations: 165.3 kB / 1.105 GB, free: 10.88 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003061/0.7236, allocations: 251.2 kB / 1.106 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003926/0.724, allocations: 145.3 kB / 1.106 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.7241, allocations: 4 kB / 1.106 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008364/0.7249, allocations: 472 kB / 1.106 GB, free: 9.988 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.7249, allocations: 6.188 kB / 1.106 GB, free: 9.984 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.7249, allocations: 4.312 kB / 1.106 GB, free: 9.98 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.7249, allocations: 8 kB / 1.106 GB, free: 9.973 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.401e-05/0.725, allocations: 28.92 kB / 1.106 GB, free: 9.945 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.725, allocations: 4 kB / 1.106 GB, free: 9.941 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003716/0.7254, allocations: 79.94 kB / 1.106 GB, free: 9.863 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.612e-05/0.7255, allocations: 27.98 kB / 1.106 GB, free: 9.836 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.0001305/0.7256, allocations: 151.3 kB / 1.106 GB, free: 9.684 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.026e-05/0.7257, allocations: 23.81 kB / 1.106 GB, free: 9.66 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.912e-05/0.7257, allocations: 34.06 kB / 1.107 GB, free: 9.629 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.7257, allocations: 4 kB / 1.107 GB, free: 9.625 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.7257, allocations: 0.5625 kB / 1.107 GB, free: 9.625 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.7258, allocations: 3.984 kB / 1.107 GB, free: 9.621 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.7268, allocations: 0.795 MB / 1.107 GB, free: 8.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.7268, allocations: 1.5 kB / 1.107 GB, free: 8.77 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.483e-05/0.7268, allocations: 19.92 kB / 1.107 GB, free: 8.75 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.7268, allocations: 4 kB / 1.107 GB, free: 8.746 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.716e-05/0.7269, allocations: 15.97 kB / 1.107 GB, free: 8.73 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.7269, allocations: 4 kB / 1.107 GB, free: 8.727 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.7269, allocations: 12.03 kB / 1.107 GB, free: 8.715 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005243/0.7274, allocations: 0.5045 MB / 1.108 GB, free: 8.156 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005912/0.728, allocations: 0.8766 MB / 1.109 GB, free: 7.223 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.875e-05/0.7281, allocations: 96.92 kB / 1.109 GB, free: 7.109 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.986e-05/0.7282, allocations: 15.98 kB / 1.109 GB, free: 7.094 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.7283, allocations: 9.984 kB / 1.109 GB, free: 7.086 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.7285, allocations: 103.6 kB / 1.109 GB, free: 6.984 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-05/0.7285, allocations: 43.97 kB / 1.109 GB, free: 6.941 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.995e-05/0.7286, allocations: 91.27 kB / 1.109 GB, free: 6.852 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008968/0.7295, allocations: 79.98 kB / 1.109 GB, free: 6.773 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.0001822/0.7296, allocations: 155.3 kB / 1.109 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0006079/0.7303, allocations: 464.7 kB / 1.11 GB, free: 6.152 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.7303, allocations: 4.125 kB / 1.11 GB, free: 6.148 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000267/0.7305, allocations: 255.8 kB / 1.11 GB, free: 5.898 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002396/0.7308, allocations: 23.95 kB / 1.11 GB, free: 5.879 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000638/0.7314, allocations: 349.4 kB / 1.11 GB, free: 5.504 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003746/0.7318, allocations: 0.7876 MB / 1.111 GB, free: 4.691 MB / 0.7136 GB Notification: Performance of SimCode: time 1.302e-06/0.7318, allocations: 0 / 1.111 GB, free: 4.691 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)