Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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_8_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_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.001218/0.001218, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001607/0.001607, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.69/1.69, allocations: 205.4 MB / 222.1 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.706/1.706, allocations: 292.7 MB / 0.5499 GB, free: 14.54 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005292/0.0005293, allocations: 19.03 kB / 0.6738 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2839, allocations: 116.3 MB / 0.7874 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002388/0.2863, allocations: 1.37 MB / 0.7887 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008177/0.2872, allocations: 472.1 kB / 0.7892 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.334e-05/0.2873, allocations: 0 / 0.7892 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.932e-05/0.2873, allocations: 0 / 0.7892 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001008/0.2874, allocations: 19.84 kB / 0.7892 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001677/0.2876, allocations: 11.98 kB / 0.7892 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001007/0.2877, allocations: 71.72 kB / 0.7893 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.2878, allocations: 23.98 kB / 0.7893 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.2879, allocations: 31.84 kB / 0.7893 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.471e-05/0.288, allocations: 27.84 kB / 0.7894 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.117e-05/0.288, allocations: 4 kB / 0.7894 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.474e-05/0.288, allocations: 4 kB / 0.7894 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.956e-05/0.2881, allocations: 11.92 kB / 0.7894 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.267e-05/0.2881, allocations: 33.7 kB / 0.7894 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.897e-05/0.2882, allocations: 60.09 kB / 0.7895 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.2882, allocations: 0 / 0.7895 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.793e-06/0.2882, allocations: 3.938 kB / 0.7895 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.2882, allocations: 4 kB / 0.7895 GB, free: 9.652 MB / 0.6075 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.0005579/0.2888, allocations: 379.1 kB / 0.7899 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.2888, allocations: 12.03 kB / 0.7899 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.906e-05/0.2889, allocations: 42.47 kB / 0.7899 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.217e-05/0.2889, allocations: 7.906 kB / 0.7899 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.2891, allocations: 178.9 kB / 0.7901 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.2891, allocations: 8 kB / 0.7901 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/0.2891, allocations: 4 kB / 0.7901 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/0.2894, allocations: 103.2 kB / 0.7902 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.2894, allocations: 0 / 0.7902 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.2894, allocations: 0 / 0.7902 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.2894, allocations: 0 / 0.7902 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001576/0.2896, allocations: 59.97 kB / 0.7903 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004959/0.2901, allocations: 332.6 kB / 0.7906 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001313/0.2902, allocations: 50.56 kB / 0.7906 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.972e-05/0.2903, allocations: 32.94 kB / 0.7906 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.2903, allocations: 3.984 kB / 0.7907 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.2904, allocations: 38.56 kB / 0.7907 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.2904, allocations: 0 / 0.7907 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0003563/0.2908, allocations: 121.5 kB / 0.7908 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.2908, allocations: 81.11 kB / 0.7909 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.2909, allocations: 128.6 kB / 0.791 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.291, allocations: 29.7 kB / 0.791 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.251e-05/0.291, allocations: 104 kB / 0.7911 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.2911, allocations: 3.906 kB / 0.7911 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.2911, allocations: 4 kB / 0.7911 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.2912, allocations: 318.8 kB / 0.7914 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.831e-05/0.2913, allocations: 31.98 kB / 0.7915 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.693e-05/0.2914, allocations: 37.7 kB / 0.7915 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.439e-05/0.2915, allocations: 27.98 kB / 0.7915 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2915, allocations: 0 / 0.7915 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00019/0.2917, allocations: 97.55 kB / 0.7916 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.2917, allocations: 4 kB / 0.7916 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.2917, allocations: 0 / 0.7916 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.2917, allocations: 7.953 kB / 0.7916 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.2918, allocations: 16.11 kB / 0.7917 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.2919, allocations: 4 kB / 0.7917 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.685e-05/0.2919, allocations: 23.98 kB / 0.7917 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.292, allocations: 0 / 0.7917 GB, free: 7.164 MB / 0.6075 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.346e-05/0.2921, allocations: 113.8 kB / 0.7918 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.938e-05/0.2921, allocations: 7.906 kB / 0.7918 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.411e-05/0.2921, allocations: 12.23 kB / 0.7918 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.2921, allocations: 7.953 kB / 0.7918 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.2921, allocations: 0 / 0.7918 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.2922, allocations: 4 kB / 0.7918 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.2923, allocations: 181.6 kB / 0.792 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2924, allocations: 4 kB / 0.792 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.057e-05/0.2924, allocations: 11.98 kB / 0.792 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2924, allocations: 3.938 kB / 0.792 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.2925, allocations: 7.938 kB / 0.792 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2925, allocations: 0 / 0.792 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/0.2925, allocations: 3.953 kB / 0.792 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.2927, allocations: 195.6 kB / 0.7922 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.2928, allocations: 81.02 kB / 0.7923 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.2929, allocations: 4 kB / 0.7923 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.293, allocations: 19.98 kB / 0.7923 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.944e-05/0.293, allocations: 7.984 kB / 0.7923 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/0.293, allocations: 11.94 kB / 0.7923 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.186e-05/0.2931, allocations: 99.2 kB / 0.7924 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2931, allocations: 0 / 0.7924 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002222/0.2934, allocations: 16 kB / 0.7924 GB, free: 6.285 MB / 0.6075 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.0005689/0.2939, allocations: 0.7162 MB / 0.7931 GB, free: 5.543 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002077/0.2941, allocations: 63.97 kB / 0.7932 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2942, allocations: 0 / 0.7932 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.01e-05/0.2943, allocations: 39.91 kB / 0.7932 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.2946, allocations: 2.438 kB / 0.7932 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.2956, allocations: 0.599 MB / 0.7938 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.2958, allocations: 0.6887 MB / 0.7945 GB, free: 4.086 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.624e-05/0.2959, allocations: 4 kB / 0.7945 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/0.296, allocations: 19.42 kB / 0.7945 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.296, allocations: 4 kB / 0.7945 GB, free: 4.059 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01224/0.3082, allocations: 1.724 MB / 0.7962 GB, free: 2.527 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/0.3085, allocations: 209.8 kB / 0.7964 GB, free: 2.293 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.822/2.131, allocations: 4.062 kB / 0.7964 GB, free: 2.289 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) Environment - environmentSimulation: