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.ChillerSwitch.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.ChillerSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",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.495/1.495, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.00117/0.00117, allocations: 174.9 kB / 326.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.02/2.02, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0008749/0.000875, allocations: 86.36 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.00033/0.0003302, allocations: 6.812 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2372, allocations: 106.4 MB / 0.9002 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001613/0.2388, allocations: 1.351 MB / 0.9015 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007145/0.2396, allocations: 483.7 kB / 0.9019 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.013e-05/0.2396, allocations: 0 / 0.9019 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.709e-05/0.2397, allocations: 7.922 kB / 0.902 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.784e-05/0.2398, allocations: 19.97 kB / 0.902 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001463/0.2399, allocations: 15.98 kB / 0.902 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.969e-05/0.24, allocations: 51.86 kB / 0.902 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.2402, allocations: 19.98 kB / 0.9021 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.254e-05/0.2403, allocations: 23.91 kB / 0.9021 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.25e-05/0.2403, allocations: 31.84 kB / 0.9021 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.2404, allocations: 8 kB / 0.9021 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.365e-05/0.2404, allocations: 0 / 0.9021 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.566e-05/0.2404, allocations: 19.86 kB / 0.9021 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.335e-05/0.2404, allocations: 37.64 kB / 0.9022 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.27e-05/0.2405, allocations: 55.88 kB / 0.9022 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2405, allocations: 0 / 0.9022 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.244e-06/0.2405, allocations: 3.938 kB / 0.9022 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.898e-06/0.2405, allocations: 0 / 0.9022 GB, free: 61.66 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004277/0.241, allocations: 383.4 kB / 0.9026 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.241, allocations: 8.031 kB / 0.9026 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.397e-05/0.2411, allocations: 38.56 kB / 0.9026 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.472e-05/0.2411, allocations: 11.86 kB / 0.9027 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.2412, allocations: 174.9 kB / 0.9028 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.2412, allocations: 0 / 0.9028 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.292e-05/0.2413, allocations: 8 kB / 0.9028 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001931/0.2415, allocations: 95.31 kB / 0.9029 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.2415, allocations: 0 / 0.9029 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.2415, allocations: 0 / 0.9029 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.2415, allocations: 4 kB / 0.9029 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.2417, allocations: 59.95 kB / 0.903 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004221/0.2421, allocations: 332.7 kB / 0.9033 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001246/0.2422, allocations: 54.55 kB / 0.9033 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.2422, allocations: 4 kB / 0.9034 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.2423, allocations: 34.56 kB / 0.9034 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=4): time 1.553e-06/0.2423, allocations: 0 / 0.9034 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=4): time 0.0003324/0.2426, allocations: 121.6 kB / 0.9035 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.2427, allocations: 81.11 kB / 0.9036 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.353e-05/0.2428, allocations: 128.1 kB / 0.9037 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/0.2428, allocations: 25.7 kB / 0.9037 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.059e-05/0.2429, allocations: 96.05 kB / 0.9038 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.648e-05/0.2429, allocations: 19.8 kB / 0.9038 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.2429, allocations: 0 / 0.9038 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.274e-05/0.243, allocations: 318.8 kB / 0.9041 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.457e-05/0.243, allocations: 23.98 kB / 0.9042 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.503e-05/0.2431, allocations: 45.69 kB / 0.9042 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.711e-05/0.2432, allocations: 36.09 kB / 0.9042 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2432, allocations: 0 / 0.9042 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001737/0.2434, allocations: 93.78 kB / 0.9043 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.2434, allocations: 4 kB / 0.9043 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2434, allocations: 7.953 kB / 0.9043 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.2434, allocations: 4 kB / 0.9043 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.2436, allocations: 15.97 kB / 0.9044 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.2436, allocations: 3.938 kB / 0.9044 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.174e-05/0.2437, allocations: 23.83 kB / 0.9044 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.2437, allocations: 4 kB / 0.9044 GB, free: 59.2 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 7.408e-05/0.2438, allocations: 113.8 kB / 0.9045 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.585e-05/0.2438, allocations: 8 kB / 0.9045 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.873e-05/0.2438, allocations: 12.25 kB / 0.9045 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2438, allocations: 3.953 kB / 0.9045 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.2438, allocations: 3.984 kB / 0.9045 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2438, allocations: 3.938 kB / 0.9045 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.244, allocations: 185.5 kB / 0.9047 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.244, allocations: 0 / 0.9047 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.698e-05/0.2441, allocations: 11.98 kB / 0.9047 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2441, allocations: 0 / 0.9047 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.2441, allocations: 0 / 0.9047 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2441, allocations: 4 kB / 0.9047 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.2441, allocations: 7.938 kB / 0.9047 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.2443, allocations: 179.5 kB / 0.9049 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.473e-05/0.2444, allocations: 89 kB / 0.905 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.097e-05/0.2444, allocations: 4 kB / 0.905 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.2445, allocations: 15.98 kB / 0.905 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.2445, allocations: 11.94 kB / 0.905 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.2446, allocations: 0 / 0.905 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.991e-05/0.2446, allocations: 100.5 kB / 0.9051 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2446, allocations: 3.938 kB / 0.9051 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002108/0.2448, allocations: 12 kB / 0.9051 GB, free: 58.35 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0003711/0.2452, allocations: 0.7202 MB / 0.9058 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000196/0.2454, allocations: 68.03 kB / 0.9059 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2454, allocations: 3.938 kB / 0.9059 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.425e-05/0.2455, allocations: 31.98 kB / 0.9059 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.2457, allocations: 3.047 kB / 0.9059 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008578/0.2466, allocations: 0.6001 MB / 0.9065 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001241/0.2467, allocations: 0.6887 MB / 0.9072 GB, free: 56.14 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.566e-05/0.2468, allocations: 12.17 kB / 0.9072 GB, free: 56.13 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.052e-05/0.2469, allocations: 31.36 kB / 0.9072 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2469, allocations: 4 kB / 0.9072 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01219/0.2591, allocations: 1.696 MB / 0.9089 GB, free: 54.61 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.2593, allocations: 230.6 kB / 0.9091 GB, free: 54.36 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.625/1.884, allocations: 4 kB / 0.9091 GB, free: 54.36 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)