Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.548/2.548, allocations: 287.5 MB / 302.4 MB, free: 8.344 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001314/0.001313, allocations: 185.9 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.432/2.432, allocations: 205.4 MB / 0.6297 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000975/0.0009748, allocations: 91.67 kB / 0.743 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005022/0.0005024, allocations: 11.92 kB / 0.8659 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2381, allocations: 115.3 MB / 0.9785 GB, free: 28.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001987/0.2402, allocations: 1.366 MB / 0.9798 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008681/0.2411, allocations: 472.1 kB / 0.9802 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.963e-05/0.2412, allocations: 0 / 0.9802 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.153e-05/0.2412, allocations: 3.938 kB / 0.9803 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.816e-05/0.2413, allocations: 15.86 kB / 0.9803 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001782/0.2415, allocations: 11.98 kB / 0.9803 GB, free: 26.37 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.2416, allocations: 75.7 kB / 0.9804 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.2418, allocations: 23.98 kB / 0.9804 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.2419, allocations: 23.92 kB / 0.9804 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.78e-05/0.242, allocations: 27.84 kB / 0.9804 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.454e-05/0.242, allocations: 7.984 kB / 0.9804 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 2.099e-05/0.2421, allocations: 0 / 0.9804 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.22e-05/0.2421, allocations: 15.92 kB / 0.9804 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.141e-05/0.2421, allocations: 37.64 kB / 0.9805 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001117/0.2423, allocations: 56.11 kB / 0.9805 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2423, allocations: 0 / 0.9805 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2423, allocations: 0 / 0.9805 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.2423, allocations: 4 kB / 0.9805 GB, free: 26.1 MB / 0.6198 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.0005686/0.2429, allocations: 379.1 kB / 0.9809 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.2429, allocations: 12.03 kB / 0.9809 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.083e-05/0.243, allocations: 34.55 kB / 0.9809 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.048e-05/0.243, allocations: 15.86 kB / 0.981 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.2432, allocations: 178.9 kB / 0.9811 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.2432, allocations: 8 kB / 0.9811 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.2432, allocations: 4 kB / 0.9811 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.2435, allocations: 103.2 kB / 0.9812 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.2436, allocations: 3.938 kB / 0.9812 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.2436, allocations: 0 / 0.9812 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.2436, allocations: 0 / 0.9812 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002682/0.2439, allocations: 59.97 kB / 0.9813 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005644/0.2445, allocations: 332.6 kB / 0.9816 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.2447, allocations: 50.56 kB / 0.9817 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.2448, allocations: 32.94 kB / 0.9817 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.2449, allocations: 0 / 0.9817 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.2449, allocations: 46.55 kB / 0.9817 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=4): time 1.573e-06/0.2449, allocations: 0 / 0.9817 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=4): time 0.0005197/0.2454, allocations: 113.7 kB / 0.9819 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.2455, allocations: 81.11 kB / 0.9819 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.2456, allocations: 127.4 kB / 0.9821 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.2456, allocations: 29.7 kB / 0.9821 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.558e-05/0.2457, allocations: 104 kB / 0.9822 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.2457, allocations: 3.906 kB / 0.9822 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.949e-06/0.2458, allocations: 4 kB / 0.9822 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.531e-05/0.2459, allocations: 322.8 kB / 0.9825 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.246, allocations: 31.98 kB / 0.9825 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.2462, allocations: 37.7 kB / 0.9826 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/0.2463, allocations: 31.92 kB / 0.9826 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2463, allocations: 0 / 0.9826 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003149/0.2467, allocations: 93.61 kB / 0.9827 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.2467, allocations: 7.953 kB / 0.9827 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.2467, allocations: 0 / 0.9827 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.2467, allocations: 3.984 kB / 0.9827 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.2469, allocations: 15.98 kB / 0.9827 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.2469, allocations: 3.984 kB / 0.9827 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.2471, allocations: 23.98 kB / 0.9827 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.2471, allocations: 0 / 0.9827 GB, free: 23.61 MB / 0.6198 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 9.718e-05/0.2472, allocations: 113.8 kB / 0.9828 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.17e-05/0.2473, allocations: 7.906 kB / 0.9828 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.656e-05/0.2473, allocations: 20.12 kB / 0.9829 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.2473, allocations: 4 kB / 0.9829 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2473, allocations: 0 / 0.9829 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2473, allocations: 4 kB / 0.9829 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002035/0.2475, allocations: 189.5 kB / 0.9831 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.2476, allocations: 4.188 kB / 0.9831 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.2477, allocations: 12 kB / 0.9831 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.2477, allocations: 7.922 kB / 0.9831 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.2477, allocations: 4 kB / 0.9831 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2477, allocations: 3.953 kB / 0.9831 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2478, allocations: 0 / 0.9831 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003241/0.2481, allocations: 187.4 kB / 0.9833 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.45e-05/0.2481, allocations: 81.02 kB / 0.9833 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.2482, allocations: 4 kB / 0.9833 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.2484, allocations: 15.98 kB / 0.9834 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.759e-05/0.2484, allocations: 11.94 kB / 0.9834 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.2485, allocations: 11.94 kB / 0.9834 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.238e-05/0.2485, allocations: 104.9 kB / 0.9835 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.81e-07/0.2485, allocations: 0 / 0.9835 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002909/0.2488, allocations: 16 kB / 0.9835 GB, free: 22.73 MB / 0.6198 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.0005386/0.2494, allocations: 0.7124 MB / 0.9842 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003265/0.2497, allocations: 63.91 kB / 0.9843 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2497, allocations: 0 / 0.9843 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.2499, allocations: 35.97 kB / 0.9843 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003555/0.2503, allocations: 7.953 kB / 0.9843 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.2516, allocations: 0.5914 MB / 0.9849 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001426/0.2518, allocations: 0.6926 MB / 0.9856 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.637e-05/0.2518, allocations: 8.172 kB / 0.9856 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.325e-05/0.2519, allocations: 19.42 kB / 0.9856 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of SimCode: time 8.72e-07/0.2519, allocations: 0 / 0.9856 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02025/0.2722, allocations: 1.727 MB / 0.9873 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002866/0.2725, allocations: 218.6 kB / 0.9875 GB, free: 18.72 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.567/2.839, allocations: 0 / 0.9875 GB, free: 18.72 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)