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.Switch.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.Switch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",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.457/1.457, allocations: 252 MB / 267 MB, free: 10.98 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.0011/0.0011, allocations: 190.1 kB / 326.6 MB, free: 2.227 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.92/1.92, allocations: 205.4 MB / 0.5777 GB, free: 20.57 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.0007454/0.0007452, allocations: 95.38 kB / 0.6823 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004678/0.0004679, allocations: 8.438 kB / 0.7965 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2096, allocations: 106.3 MB / 0.9003 GB, free: 64.19 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0017/0.2114, allocations: 1.187 MB / 0.9015 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003987/0.2118, allocations: 208.4 kB / 0.9017 GB, free: 62.78 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.995e-05/0.2119, allocations: 3.938 kB / 0.9017 GB, free: 62.78 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.886e-05/0.2119, allocations: 7.922 kB / 0.9017 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.133e-05/0.212, allocations: 7.938 kB / 0.9017 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001487/0.2122, allocations: 15.92 kB / 0.9017 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.8e-05/0.2123, allocations: 59.84 kB / 0.9018 GB, free: 62.69 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.826e-05/0.2124, allocations: 23.97 kB / 0.9018 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.767e-05/0.2124, allocations: 23.86 kB / 0.9018 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.892e-05/0.2125, allocations: 27.84 kB / 0.9018 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.2125, allocations: 4 kB / 0.9019 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.409e-05/0.2126, allocations: 0 / 0.9019 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.015e-05/0.2126, allocations: 15.92 kB / 0.9019 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.542e-05/0.2126, allocations: 33.7 kB / 0.9019 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.854e-05/0.2127, allocations: 39.91 kB / 0.9019 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2127, allocations: 0 / 0.9019 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.114e-06/0.2127, allocations: 0 / 0.9019 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.2128, allocations: 0 / 0.9019 GB, free: 62.52 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000667/0.2134, allocations: 399.4 kB / 0.9023 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.2135, allocations: 8.031 kB / 0.9023 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.98e-05/0.2135, allocations: 38.56 kB / 0.9024 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.375e-05/0.2136, allocations: 7.906 kB / 0.9024 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.2137, allocations: 182.8 kB / 0.9025 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.2137, allocations: 4 kB / 0.9025 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.2137, allocations: 0 / 0.9025 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002908/0.214, allocations: 93.64 kB / 0.9026 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.2141, allocations: 0 / 0.9026 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.2141, allocations: 0 / 0.9026 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.2141, allocations: 4 kB / 0.9026 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005968/0.2147, allocations: 99.86 kB / 0.9027 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005609/0.2153, allocations: 284.8 kB / 0.903 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003583/0.2157, allocations: 74.53 kB / 0.9031 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003004/0.216, allocations: 56.95 kB / 0.9031 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.216, allocations: 0 / 0.9031 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004399/0.2165, allocations: 103.3 kB / 0.9032 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 3.737e-06/0.2165, allocations: 11.92 kB / 0.9032 GB, free: 61 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0009905/0.2175, allocations: 189.4 kB / 0.9034 GB, free: 60.81 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.2176, allocations: 51.41 kB / 0.9035 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.2177, allocations: 125.8 kB / 0.9036 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.2177, allocations: 29.7 kB / 0.9036 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.341e-05/0.2178, allocations: 92.22 kB / 0.9037 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.96e-05/0.2178, allocations: 19.78 kB / 0.9037 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-06/0.2178, allocations: 4 kB / 0.9037 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.7e-05/0.2179, allocations: 314.8 kB / 0.904 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.2182, allocations: 55.89 kB / 0.9041 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002794/0.2185, allocations: 61.67 kB / 0.9041 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000273/0.2188, allocations: 43.97 kB / 0.9042 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2188, allocations: 0 / 0.9042 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0006577/0.2195, allocations: 145.5 kB / 0.9043 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.2195, allocations: 4 kB / 0.9043 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.2195, allocations: 7.984 kB / 0.9043 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.2196, allocations: 3.938 kB / 0.9043 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002264/0.2198, allocations: 24.02 kB / 0.9044 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.2198, allocations: 3.953 kB / 0.9044 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002094/0.22, allocations: 27.97 kB / 0.9044 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.2201, allocations: 4 kB / 0.9044 GB, free: 59.76 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 8.871e-05/0.2202, allocations: 113.8 kB / 0.9045 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.136e-05/0.2202, allocations: 11.91 kB / 0.9045 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.139e-05/0.2203, allocations: 8.375 kB / 0.9045 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2203, allocations: 0 / 0.9045 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2203, allocations: 0 / 0.9045 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.2203, allocations: 3.953 kB / 0.9045 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/0.2205, allocations: 189.6 kB / 0.9047 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2205, allocations: 0 / 0.9047 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001775/0.2207, allocations: 23.92 kB / 0.9047 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.2207, allocations: 4 kB / 0.9047 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.2207, allocations: 0 / 0.9047 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.2207, allocations: 0 / 0.9047 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.2208, allocations: 8.234 kB / 0.9047 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006331/0.2214, allocations: 168.9 kB / 0.9049 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.454e-05/0.2215, allocations: 85.02 kB / 0.905 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.2215, allocations: 3.984 kB / 0.905 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001879/0.2217, allocations: 27.98 kB / 0.905 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.803e-05/0.2218, allocations: 7.984 kB / 0.905 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.2218, allocations: 0 / 0.905 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.068e-05/0.2219, allocations: 99.27 kB / 0.9051 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.61e-07/0.2219, allocations: 0 / 0.9051 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003409/0.2223, allocations: 8 kB / 0.9051 GB, free: 58.91 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: 3 ($whenCondition1,booPul.y,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0009084/0.2232, allocations: 0.7099 MB / 0.9058 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006312/0.2238, allocations: 111.8 kB / 0.9059 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2238, allocations: 0 / 0.9059 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003089/0.2242, allocations: 60.03 kB / 0.906 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.2245, allocations: 11.98 kB / 0.906 GB, free: 58 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/0.2263, allocations: 0.618 MB / 0.9066 GB, free: 57.33 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.924e-05/0.2264, allocations: 0.6848 MB / 0.9073 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.458e-05/0.2265, allocations: 15.92 kB / 0.9073 GB, free: 56.6 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.489e-05/0.2266, allocations: 19.38 kB / 0.9073 GB, free: 56.58 MB / 0.6042 GB Notification: Performance of SimCode: time 5.31e-07/0.2266, allocations: 4 kB / 0.9073 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01697/0.2436, allocations: 1.734 MB / 0.909 GB, free: 54.99 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002394/0.2439, allocations: 202.1 kB / 0.9092 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.595/1.839, allocations: 0 / 0.9092 GB, free: 54.75 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1)