Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl",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.357/1.357, allocations: 252 MB / 267.3 MB, free: 10.85 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.001255/0.001255, allocations: 176 kB / 327 MB, free: 2.109 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.701/1.701, allocations: 205.4 MB / 0.578 GB, free: 20.12 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.0007877/0.0007876, allocations: 97.78 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.0003448, allocations: 9.875 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.2025, allocations: 106.3 MB / 0.9009 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl): time 0.002365/0.2049, allocations: 1.738 MB / 0.9026 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001444/0.2064, allocations: 0.7486 MB / 0.9034 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002668/0.2067, allocations: 8 kB / 0.9034 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.2069, allocations: 23.73 kB / 0.9034 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.2071, allocations: 31.72 kB / 0.9034 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005359/0.2076, allocations: 143.9 kB / 0.9036 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0004957/0.2081, allocations: 363.3 kB / 0.9039 GB, free: 60.33 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003827/0.2085, allocations: 203.7 kB / 0.9041 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.2087, allocations: 99.56 kB / 0.9042 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.2089, allocations: 119.4 kB / 0.9043 GB, free: 59.92 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.569e-05/0.209, allocations: 12 kB / 0.9043 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 9.004e-05/0.2091, allocations: 20 kB / 0.9043 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.981e-05/0.2091, allocations: 59.69 kB / 0.9044 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001395/0.2093, allocations: 145 kB / 0.9045 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003387/0.2096, allocations: 371 kB / 0.9049 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2096, allocations: 0 / 0.9049 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.023e-06/0.2097, allocations: 0 / 0.9049 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.424e-05/0.2097, allocations: 0 / 0.9049 GB, free: 59.32 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001055/0.2107, allocations: 0.5406 MB / 0.9054 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.2108, allocations: 12.03 kB / 0.9054 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001429/0.2109, allocations: 66.72 kB / 0.9055 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.2111, allocations: 32.56 kB / 0.9055 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.2114, allocations: 278.8 kB / 0.9058 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.481e-05/0.2115, allocations: 33.02 kB / 0.9058 GB, free: 58.26 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.389e-05/0.2116, allocations: 28.38 kB / 0.9058 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000725/0.2123, allocations: 345 kB / 0.9062 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.2123, allocations: 0 / 0.9062 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.102e-05/0.2124, allocations: 15.98 kB / 0.9062 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.2124, allocations: 8 kB / 0.9062 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006309/0.213, allocations: 262 kB / 0.9064 GB, free: 57.6 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001635/0.2147, allocations: 0.9512 MB / 0.9074 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006266/0.2153, allocations: 280.2 kB / 0.9076 GB, free: 56.31 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002474/0.2156, allocations: 132.7 kB / 0.9078 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.2156, allocations: 11.92 kB / 0.9078 GB, free: 56.17 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004206/0.2161, allocations: 191.2 kB / 0.908 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=32): time 3.035e-06/0.2161, allocations: 0 / 0.908 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of matching and sorting (n=32): time 0.0008773/0.217, allocations: 374.6 kB / 0.9083 GB, free: 55.6 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.217, allocations: 59.39 kB / 0.9084 GB, free: 55.53 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.2172, allocations: 203.3 kB / 0.9086 GB, free: 55.32 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.14e-05/0.2173, allocations: 41.7 kB / 0.9086 GB, free: 55.27 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.2174, allocations: 156.5 kB / 0.9088 GB, free: 55.11 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 6.632e-05/0.2175, allocations: 75 kB / 0.9088 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.062e-05/0.2175, allocations: 12 kB / 0.9088 GB, free: 55.03 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.922e-05/0.2176, allocations: 338.8 kB / 0.9092 GB, free: 54.69 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002496/0.2179, allocations: 112.8 kB / 0.9093 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002439/0.2181, allocations: 173.5 kB / 0.9094 GB, free: 54.39 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004622/0.2186, allocations: 274.4 kB / 0.9097 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.2186, allocations: 0 / 0.9097 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005947/0.2192, allocations: 375 kB / 0.9101 GB, free: 53.72 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.388e-05/0.2192, allocations: 37.69 kB / 0.9101 GB, free: 53.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2193, allocations: 0 / 0.9101 GB, free: 53.68 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.2193, allocations: 4 kB / 0.9101 GB, free: 53.67 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.2195, allocations: 47.91 kB / 0.9101 GB, free: 53.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.2195, allocations: 4 kB / 0.9101 GB, free: 53.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002519/0.2198, allocations: 63.59 kB / 0.9102 GB, free: 53.56 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.591e-05/0.2198, allocations: 16 kB / 0.9102 GB, free: 53.54 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.wseCon.T1.enableFire,$PRE.wseCon.T2.enableFire,wseCon.stateGraphRoot.resume,wseCon.stateGraphRoot.suspend,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wseCHWST.T_start,wseCHWST.T_start,$PRE.wseCHWST.count,wseCHWST.count,$PRE.wseCon.off.localActive,wseCon.off.localActive,$PRE.wseCon.off.newActive,wseCon.off.newActive,$PRE.wseCon.off.oldActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.condition,wseCon.T1.enableFire,wseCon.T1.fire,$PRE.wseCon.T1.t_start,wseCon.T1.t_start,wseCon.on.active,$PRE.wseCon.on.localActive,wseCon.on.localActive,$PRE.wseCon.on.newActive,wseCon.on.newActive,$PRE.wseCon.on.oldActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.enableFire,wseCon.T2.fire,$PRE.wseCon.T2.t_start,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001456/0.2199, allocations: 177.6 kB / 0.9104 GB, free: 53.36 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.99e-05/0.22, allocations: 27.75 kB / 0.9104 GB, free: 53.33 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005525/0.2205, allocations: 302.4 kB / 0.9107 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.2206, allocations: 7.938 kB / 0.9107 GB, free: 53.02 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.2206, allocations: 0 / 0.9107 GB, free: 53.02 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.2206, allocations: 0 / 0.9107 GB, free: 53.02 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009405/0.2215, allocations: 0.775 MB / 0.9115 GB, free: 52.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2215, allocations: 0 / 0.9115 GB, free: 52.19 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001276/0.2217, allocations: 35.92 kB / 0.9115 GB, free: 52.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.2217, allocations: 3.984 kB / 0.9115 GB, free: 52.15 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.2217, allocations: 7.938 kB / 0.9115 GB, free: 52.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.2217, allocations: 4 kB / 0.9115 GB, free: 52.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2217, allocations: 0 / 0.9115 GB, free: 52.14 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004944/0.2222, allocations: 384.8 kB / 0.9119 GB, free: 51.75 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.707e-05/0.2223, allocations: 100.8 kB / 0.912 GB, free: 51.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.134e-05/0.2223, allocations: 15.94 kB / 0.912 GB, free: 51.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.2226, allocations: 39.95 kB / 0.912 GB, free: 51.58 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.923e-05/0.2227, allocations: 39.89 kB / 0.9121 GB, free: 51.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.2227, allocations: 8 kB / 0.9121 GB, free: 51.53 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.568e-05/0.2228, allocations: 135.2 kB / 0.9122 GB, free: 51.4 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2228, allocations: 0 / 0.9122 GB, free: 51.4 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002929/0.2231, allocations: 71.84 kB / 0.9123 GB, free: 51.33 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: 24 (wseCon.T1.enableFire,wseCon.T2.enableFire,wseCon.on.localActive,wseCon.off.localActive,$cse1,$cse2,$whenCondition3,$whenCondition2,$whenCondition1,wseCHWST.T_start,wseCHWST.count,wseCon.off.newActive,wseCon.off.oldActive,wseCon.off.active,wseCon.T1.condition,wseCon.T1.fire,wseCon.T1.t_start,wseCon.on.active,wseCon.on.newActive,wseCon.on.oldActive,wseCon.T2.condition,wseCon.T2.fire,wseCon.T2.t_start,wseCon.stateGraphRoot.activeSteps) * Number of discrete states: 3 (wseCHWST.count,wseCon.off.newActive,wseCon.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007242/0.2238, allocations: 0.9301 MB / 0.9132 GB, free: 50.37 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005561/0.2244, allocations: 347 kB / 0.9135 GB, free: 50.02 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2244, allocations: 0 / 0.9135 GB, free: 50.02 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002363/0.2246, allocations: 144.1 kB / 0.9137 GB, free: 49.88 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.225, allocations: 39.98 kB / 0.9137 GB, free: 49.84 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003364/0.2284, allocations: 2.736 MB / 0.9164 GB, free: 47 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/0.2287, allocations: 0.7564 MB / 0.9171 GB, free: 46.21 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001415/0.2289, allocations: 30.28 kB / 0.9171 GB, free: 46.18 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.2291, allocations: 83.41 kB / 0.9172 GB, free: 46.1 MB / 0.6042 GB Notification: Performance of SimCode: time 2.264e-06/0.2291, allocations: 112 / 0.9172 GB, free: 46.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01634/0.2454, allocations: 5.094 MB / 0.9222 GB, free: 41.19 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000144/0.2456, allocations: 240.7 kB / 0.9224 GB, free: 40.94 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.819/2.065, allocations: 0 / 0.9224 GB, free: 40.94 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_WSEControl.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.WSEControl.pipe 2>&1)