Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_9_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007057/0.007057, allocations: 101.1 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001689/0.001689, allocations: 189.1 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 4.195 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.255/2.255, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 70.47 kB / 0.9504 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2286, allocations: 140.4 MB / 1.087 GB, free: 2.051 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002636/0.2313, allocations: 1.67 MB / 1.089 GB, free: 372 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007169/0.232, allocations: 452.3 kB / 1.09 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.282e-05/0.2321, allocations: 0 / 1.09 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.151e-05/0.2321, allocations: 7.938 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.836e-05/0.2322, allocations: 23.78 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001605/0.2324, allocations: 23.97 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.2325, allocations: 79.72 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.2326, allocations: 35.91 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.2327, allocations: 35.91 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.959e-05/0.2328, allocations: 31.84 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.017e-05/0.2328, allocations: 8 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.468e-05/0.2329, allocations: 8 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.543e-05/0.2329, allocations: 15.92 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.585e-05/0.2329, allocations: 39.78 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.2331, allocations: 82.58 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2331, allocations: 0 / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.402e-06/0.2331, allocations: 3.938 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.79e-06/0.2331, allocations: 0 / 1.09 GB, free: 15.53 MB / 0.8575 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.0004943/0.2336, allocations: 403.9 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.2336, allocations: 12.03 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.634e-05/0.2337, allocations: 30.75 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.171e-05/0.2337, allocations: 8.844 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.2338, allocations: 180.2 kB / 1.091 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.2339, allocations: 12.31 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.2339, allocations: 4.375 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001907/0.2341, allocations: 99.44 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.2341, allocations: 0 / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.2341, allocations: 0 / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.838e-06/0.2341, allocations: 0 / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001543/0.2343, allocations: 47.97 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004389/0.2347, allocations: 332.6 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.2349, allocations: 42.56 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.712e-05/0.235, allocations: 32.94 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.235, allocations: 0 / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.235, allocations: 34.55 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.235, allocations: 4 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0003349/0.2353, allocations: 105.6 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.2354, allocations: 77.11 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.588e-05/0.2355, allocations: 126.1 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.2355, allocations: 29.7 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.063e-05/0.2356, allocations: 104 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.2356, allocations: 3.906 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.451e-05/0.2357, allocations: 29.7 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.146e-05/0.2358, allocations: 318.8 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.839e-05/0.2358, allocations: 19.98 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.06e-05/0.2359, allocations: 41.69 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.2361, allocations: 56.89 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2361, allocations: 4.031 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000188/0.2363, allocations: 81.58 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.2363, allocations: 10.03 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.2363, allocations: 0 / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.2363, allocations: 0 / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.886e-05/0.2364, allocations: 11.98 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.2364, allocations: 0 / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.945e-05/0.2365, allocations: 23.86 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.2365, allocations: 4.188 kB / 1.092 GB, free: 13.04 MB / 0.8575 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 (chiSwi.hysteresis.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.018e-05/0.2366, allocations: 117.8 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.964e-05/0.2367, allocations: 11.89 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.615e-05/0.2367, allocations: 12.19 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.2367, allocations: 7.984 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2367, allocations: 0 / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.2367, allocations: 3.938 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001704/0.2369, allocations: 181.6 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.2369, allocations: 7.984 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.944e-05/0.237, allocations: 8 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.237, allocations: 0 / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.237, allocations: 7.984 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.237, allocations: 3.984 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.237, allocations: 0 / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002219/0.2372, allocations: 183.4 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.051e-05/0.2373, allocations: 84.95 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.2373, allocations: 4 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.2374, allocations: 11.98 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.106e-05/0.2375, allocations: 15.92 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.2375, allocations: 8 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.83e-05/0.2376, allocations: 102.6 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2376, allocations: 0 / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000228/0.2378, allocations: 12 kB / 1.093 GB, free: 12.17 MB / 0.8575 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 (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.0004706/0.2383, allocations: 0.7129 MB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002031/0.2385, allocations: 55.91 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2385, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.139e-05/0.2386, allocations: 31.98 kB / 1.094 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.2389, allocations: 7.938 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.2403, allocations: 1.437 MB / 1.095 GB, free: 9.82 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002208/0.2405, allocations: 0.6885 MB / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.157e-05/0.2406, allocations: 12.17 kB / 1.096 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.072e-05/0.2406, allocations: 23.42 kB / 1.096 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of SimCode: time 1.502e-06/0.2407, allocations: 0 / 1.096 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.381/0.6217, allocations: 2.072 MB / 1.098 GB, free: 7.148 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.788/8.41, allocations: 13.36 kB / 1.098 GB, free: 7.141 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)