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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.402/1.402, allocations: 252 MB / 267.6 MB, free: 10.91 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001046/0.001046, allocations: 194.1 kB / 327.3 MB, free: 2.184 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.739/1.739, allocations: 205.4 MB / 0.5783 GB, free: 20.18 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.0007986/0.0007985, allocations: 90.06 kB / 0.6829 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003683, allocations: 15.75 kB / 0.797 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2084, allocations: 106.3 MB / 0.9008 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle): time 0.001393/0.2099, allocations: 1.182 MB / 0.902 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005987/0.2105, allocations: 364 kB / 0.9024 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.878e-05/0.2105, allocations: 4 kB / 0.9024 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.919e-05/0.2106, allocations: 3.938 kB / 0.9024 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.562e-05/0.2107, allocations: 15.84 kB / 0.9024 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002326/0.2109, allocations: 91.86 kB / 0.9025 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001467/0.2111, allocations: 227.3 kB / 0.9027 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.2112, allocations: 37.28 kB / 0.9027 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.223e-05/0.2113, allocations: 95.72 kB / 0.9028 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.556e-05/0.2114, allocations: 87.67 kB / 0.9029 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.492e-05/0.2114, allocations: 12 kB / 0.9029 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.874e-05/0.2115, allocations: 19.94 kB / 0.9029 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.795e-05/0.2115, allocations: 55.84 kB / 0.903 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.725e-05/0.2116, allocations: 49.64 kB / 0.903 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.2117, allocations: 175.6 kB / 0.9032 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2117, allocations: 0 / 0.9032 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.302e-06/0.2117, allocations: 0 / 0.9032 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.2117, allocations: 0 / 0.9032 GB, free: 61.45 MB / 0.6042 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.0006501/0.2124, allocations: 459 kB / 0.9036 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.2124, allocations: 8.031 kB / 0.9036 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.126e-05/0.2125, allocations: 15.91 kB / 0.9036 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/0.2129, allocations: 262.6 kB / 0.9039 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.852e-05/0.2129, allocations: 15.98 kB / 0.9039 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.929e-05/0.2129, allocations: 32 kB / 0.9039 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.2133, allocations: 222.1 kB / 0.9042 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.2133, allocations: 0 / 0.9042 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.064e-05/0.2133, allocations: 11.98 kB / 0.9042 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.2133, allocations: 7.938 kB / 0.9042 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001606/0.2135, allocations: 91.88 kB / 0.9043 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007385/0.2142, allocations: 0.5352 MB / 0.9048 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005777/0.2148, allocations: 274.6 kB / 0.905 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.215, allocations: 112.8 kB / 0.9052 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.474e-05/0.215, allocations: 8.047 kB / 0.9052 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000591/0.2156, allocations: 0.5301 MB / 0.9057 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=42): time 1.813e-06/0.2156, allocations: 0 / 0.9057 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of matching and sorting (n=42): time 0.0007282/0.2163, allocations: 0.5083 MB / 0.9062 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.2164, allocations: 59.34 kB / 0.9062 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.846e-05/0.2165, allocations: 163.4 kB / 0.9064 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.011e-05/0.2166, allocations: 57.69 kB / 0.9064 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.544e-05/0.2166, allocations: 112.9 kB / 0.9066 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.863e-05/0.2167, allocations: 102.9 kB / 0.9066 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.123e-05/0.2167, allocations: 12 kB / 0.9067 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.197e-05/0.2168, allocations: 334.8 kB / 0.907 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.217, allocations: 141.1 kB / 0.9071 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002241/0.2172, allocations: 243.5 kB / 0.9073 GB, free: 56.93 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001391/0.2173, allocations: 98.12 kB / 0.9074 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.2174, allocations: 0 / 0.9074 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0004698/0.2178, allocations: 402.6 kB / 0.9078 GB, free: 56.44 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.2179, allocations: 8 kB / 0.9078 GB, free: 56.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.2179, allocations: 4 kB / 0.9078 GB, free: 56.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.2179, allocations: 4 kB / 0.9078 GB, free: 56.42 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.921e-05/0.218, allocations: 27.86 kB / 0.9079 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.218, allocations: 15.92 kB / 0.9079 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001515/0.2182, allocations: 43.98 kB / 0.9079 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.661e-05/0.2182, allocations: 20 kB / 0.9079 GB, free: 56.32 MB / 0.6042 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.falCle.clr,$PRE.truCle.clr,$PRE.iniFalOut.clr,$PRE.iniTruOut.clr,$PRE.swiCleInp.clr,$PRE.swiCleInp1.clr,$whenCondition26,$whenCondition25,tru.y,fal.y,$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,$PRE.falCle.y,falCle.y,$PRE.truCle.u,truCle.u,$PRE.truCle.y,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,$PRE.iniFalOut.y,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,$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,iniTruOut.clr,iniFalOut.clr,falCle.clr,truCle.clr) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * 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.0001323/0.2183, allocations: 163 kB / 0.9081 GB, free: 56.15 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.002e-05/0.2184, allocations: 35.66 kB / 0.9081 GB, free: 56.11 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.537e-05/0.2185, allocations: 42.31 kB / 0.9082 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.2185, allocations: 4 kB / 0.9082 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.2185, allocations: 0 / 0.9082 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2185, allocations: 3.984 kB / 0.9082 GB, free: 56.06 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009493/0.2194, allocations: 0.8888 MB / 0.909 GB, free: 55.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.2195, allocations: 0 / 0.909 GB, free: 55.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.965e-05/0.2195, allocations: 11.94 kB / 0.9091 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.2195, allocations: 0 / 0.9091 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.434e-05/0.2195, allocations: 23.97 kB / 0.9091 GB, free: 55.07 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2196, allocations: 3.938 kB / 0.9091 GB, free: 55.07 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2196, allocations: 3.984 kB / 0.9091 GB, free: 55.06 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005256/0.2201, allocations: 0.4947 MB / 0.9096 GB, free: 54.55 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.831e-05/0.2201, allocations: 92.88 kB / 0.9097 GB, free: 54.44 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.042e-05/0.2202, allocations: 27.98 kB / 0.9097 GB, free: 54.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.2204, allocations: 23.97 kB / 0.9097 GB, free: 54.39 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.2205, allocations: 87.8 kB / 0.9098 GB, free: 54.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/0.2206, allocations: 35.97 kB / 0.9098 GB, free: 54.27 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.685e-05/0.2206, allocations: 107.8 kB / 0.9099 GB, free: 54.16 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2206, allocations: 4 kB / 0.9099 GB, free: 54.16 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003/0.2209, allocations: 79.98 kB / 0.91 GB, free: 54.08 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (swiCleInp1.clr,swiCleInp.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) * Number of discrete states: 12 (iniFalOut.u,iniFalOut.y,iniTruOut.u,iniTruOut.y,falCle.u,falCle.y,truCle.u,truCle.y,swiCleInp.u,swiCleInp.y,swiCleInp1.u,swiCleInp1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * 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.0001592/0.2211, allocations: 145.7 kB / 0.9102 GB, free: 53.93 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004895/0.2216, allocations: 367.5 kB / 0.9105 GB, free: 53.58 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2216, allocations: 0.625 kB / 0.9105 GB, free: 53.58 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00023/0.2218, allocations: 219.6 kB / 0.9107 GB, free: 53.36 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.2222, allocations: 36.95 kB / 0.9107 GB, free: 53.33 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007821/0.223, allocations: 0.5145 MB / 0.9112 GB, free: 52.78 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.2231, allocations: 0.7374 MB / 0.912 GB, free: 52.02 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.2232, allocations: 47.41 kB / 0.912 GB, free: 51.97 MB / 0.6042 GB Notification: Performance of SimCode: time 2.2e-07/0.2233, allocations: 0 / 0.912 GB, free: 51.97 MB / 0.6042 GB Notification: Performance of Templates: time 0.004014/0.2273, allocations: 3.478 MB / 0.9154 GB, free: 48.52 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)