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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.456/1.456, allocations: 249.5 MB / 257 MB, free: 6.895 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.001089/0.001089, allocations: 172.9 kB / 316.3 MB, free: 3.234 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.584/1.584, allocations: 205.3 MB / 0.5671 GB, free: 15.81 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.0008396/0.0008397, allocations: 88.55 kB / 0.6714 GB, free: 4.922 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.755e-05/1.756e-05, allocations: 8 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1808/0.1808, allocations: 106.4 MB / 0.8853 GB, free: 12.14 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6395/0.8203, allocations: 132.2 MB / 1.014 GB, free: 5.16 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.8206, allocations: 72.95 kB / 1.015 GB, free: 5.121 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.007935/0.8286, allocations: 1.959 MB / 1.016 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.593e-06/0.8286, allocations: 0 / 1.016 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.446e-05/0.8286, allocations: 7.688 kB / 1.016 GB, free: 3.379 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.0008461/0.8295, allocations: 444.8 kB / 1.017 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.8295, allocations: 12.03 kB / 1.017 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.502e-05/0.8297, allocations: 15.91 kB / 1.017 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001857/0.8299, allocations: 186.5 kB / 1.017 GB, free: 2.668 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.113e-05/0.8299, allocations: 7.984 kB / 1.017 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.037e-05/0.83, allocations: 20 kB / 1.017 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000261/0.8303, allocations: 81.09 kB / 1.017 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004595/0.8307, allocations: 194.4 kB / 1.017 GB, free: 2.441 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.8308, allocations: 2.625 kB / 1.017 GB, free: 2.441 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.928e-05/0.8308, allocations: 15.97 kB / 1.017 GB, free: 2.426 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.8308, allocations: 4 kB / 1.017 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/0.832, allocations: 0.4951 MB / 1.018 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009017/0.833, allocations: 304.3 kB / 1.018 GB, free: 1.75 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002611/0.8333, allocations: 121.1 kB / 1.018 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.8333, allocations: 4 kB / 1.018 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009878/0.8343, allocations: 0.5392 MB / 1.019 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 2.634e-06/0.8343, allocations: 0 / 1.019 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.0009113/0.8352, allocations: 394.3 kB / 1.019 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.8353, allocations: 55.41 kB / 1.019 GB, free: 0.8398 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.8354, allocations: 130 kB / 1.019 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 8.81e-05/0.8355, allocations: 47.75 kB / 1.019 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.766e-05/0.8356, allocations: 105.5 kB / 1.02 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.8358, allocations: 104.4 kB / 1.02 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-05/0.8358, allocations: 0 / 1.02 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.836, allocations: 343.2 kB / 1.02 GB, free: 164 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003057/0.8363, allocations: 123.9 kB / 1.02 GB, free: 96 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.8367, allocations: 211.3 kB / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/0.8369, allocations: 87.3 kB / 1.02 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.8369, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007526/0.8377, allocations: 327.8 kB / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.8377, allocations: 15.98 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.8378, allocations: 7.891 kB / 1.021 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.8378, allocations: 8.219 kB / 1.021 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.8379, allocations: 27.11 kB / 1.021 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.838, allocations: 11.88 kB / 1.021 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.8382, allocations: 15.98 kB / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.433e-05/0.8383, allocations: 15.81 kB / 1.021 GB, free: 15.52 MB / 0.6511 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.0001774/0.8385, allocations: 139.8 kB / 1.021 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008209/0.8393, allocations: 392.4 kB / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.159e-05/0.8394, allocations: 27.75 kB / 1.021 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000116/0.8395, allocations: 37.25 kB / 1.021 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.8395, allocations: 4 kB / 1.021 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.8395, allocations: 0 / 1.021 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.8396, allocations: 3.984 kB / 1.021 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.8414, allocations: 0.883 MB / 1.022 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.8414, allocations: 0 / 1.022 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.613e-05/0.8415, allocations: 15.92 kB / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.385e-06/0.8415, allocations: 4 kB / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.589e-05/0.8416, allocations: 19.59 kB / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.8416, allocations: 4 kB / 1.022 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.8416, allocations: 0 / 1.022 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000892/0.8425, allocations: 0.5368 MB / 1.023 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.721e-05/0.8426, allocations: 96.77 kB / 1.023 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.8427, allocations: 27.38 kB / 1.023 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.843, allocations: 23.97 kB / 1.023 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000255/0.8433, allocations: 99.42 kB / 1.023 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.267e-05/0.8434, allocations: 35.64 kB / 1.023 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.447e-05/0.8435, allocations: 95.16 kB / 1.023 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3e-07/0.8435, allocations: 0 / 1.023 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005975/0.8441, allocations: 63.98 kB / 1.023 GB, free: 13.29 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.001419/0.8455, allocations: 1.395 MB / 1.025 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000736/0.8463, allocations: 334.7 kB / 1.025 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.8463, allocations: 3.938 kB / 1.025 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000411/0.8467, allocations: 211 kB / 1.025 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000408/0.8471, allocations: 28.39 kB / 1.025 GB, free: 11.56 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.8486, allocations: 430.3 kB / 1.026 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.849, allocations: 0.7426 MB / 1.026 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001856/0.8492, allocations: 39.27 kB / 1.026 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002655/0.8495, allocations: 82.58 kB / 1.026 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of SimCode: time 3.91e-07/0.8495, allocations: 4 kB / 1.026 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02883/0.8783, allocations: 5.136 MB / 1.031 GB, free: 5.203 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002458/0.8786, allocations: 159.2 kB / 1.032 GB, free: 5.008 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/2.621, allocations: 2.391 kB / 1.032 GB, free: 5.008 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)