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.001666/0.001666, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.00217/0.00217, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.363/3.363, allocations: 205.4 MB / 222.1 MB, free: 5.652 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 3.08/3.08, allocations: 292.6 MB / 0.5497 GB, free: 14.63 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.0008849/0.0008852, allocations: 14.56 kB / 0.6737 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4725/0.4734, allocations: 116.3 MB / 0.7872 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002832/0.4763, allocations: 1.366 MB / 0.7886 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00121/0.4775, allocations: 464.2 kB / 0.789 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.053e-05/0.4776, allocations: 4 kB / 0.789 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.682e-05/0.4776, allocations: 0 / 0.789 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000114/0.4778, allocations: 23.89 kB / 0.789 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001791/0.478, allocations: 11.98 kB / 0.7891 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.4781, allocations: 55.92 kB / 0.7891 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.4782, allocations: 23.92 kB / 0.7891 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.4784, allocations: 31.84 kB / 0.7892 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.4785, allocations: 27.86 kB / 0.7892 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.246e-05/0.4785, allocations: 0 / 0.7892 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.752e-05/0.4785, allocations: 4 kB / 0.7892 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.047e-05/0.4786, allocations: 7.922 kB / 0.7892 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.938e-05/0.4786, allocations: 33.7 kB / 0.7892 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.4787, allocations: 64.09 kB / 0.7893 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.4788, allocations: 0 / 0.7893 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4788, allocations: 0 / 0.7893 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.4788, allocations: 0 / 0.7893 GB, free: 9.766 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.0007085/0.4795, allocations: 387.1 kB / 0.7897 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/0.4796, allocations: 12.03 kB / 0.7897 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.47e-05/0.4796, allocations: 34.56 kB / 0.7897 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.097e-05/0.4797, allocations: 7.906 kB / 0.7897 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000211/0.4799, allocations: 186.8 kB / 0.7899 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.4799, allocations: 8 kB / 0.7899 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.48, allocations: 4 kB / 0.7899 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002868/0.4803, allocations: 91.38 kB / 0.79 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.4803, allocations: 3.938 kB / 0.79 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.4803, allocations: 0 / 0.79 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.4803, allocations: 0 / 0.79 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002392/0.4806, allocations: 63.91 kB / 0.7901 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006596/0.4812, allocations: 332.6 kB / 0.7904 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002062/0.4815, allocations: 54.56 kB / 0.7904 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.4815, allocations: 0 / 0.7904 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.451e-05/0.4815, allocations: 34.64 kB / 0.7905 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.4816, allocations: 0 / 0.7905 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0004753/0.482, allocations: 121.5 kB / 0.7906 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.736e-05/0.4822, allocations: 81.11 kB / 0.7906 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.4823, allocations: 132.9 kB / 0.7908 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.4824, allocations: 25.7 kB / 0.7908 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.4826, allocations: 108 kB / 0.7909 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.4826, allocations: 7.844 kB / 0.7909 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.626e-06/0.4826, allocations: 4 kB / 0.7909 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.4828, allocations: 318.8 kB / 0.7912 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.4829, allocations: 27.98 kB / 0.7912 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.4831, allocations: 45.7 kB / 0.7913 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001163/0.4832, allocations: 23.98 kB / 0.7913 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4832, allocations: 0 / 0.7913 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002868/0.4835, allocations: 97.55 kB / 0.7914 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.4835, allocations: 11.98 kB / 0.7914 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.4836, allocations: 0 / 0.7914 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.4836, allocations: 3.953 kB / 0.7914 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.4837, allocations: 8 kB / 0.7914 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.4837, allocations: 4 kB / 0.7914 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001098/0.4839, allocations: 11.98 kB / 0.7914 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.4839, allocations: 4 kB / 0.7914 GB, free: 7.316 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 0.0001682/0.4841, allocations: 121.8 kB / 0.7916 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.464e-05/0.4841, allocations: 7.906 kB / 0.7916 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.351e-05/0.4842, allocations: 8.25 kB / 0.7916 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.4842, allocations: 0 / 0.7916 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.4842, allocations: 8.141 kB / 0.7916 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.4842, allocations: 192 / 0.7916 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000291/0.4845, allocations: 189.6 kB / 0.7918 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4845, allocations: 0 / 0.7918 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.386e-05/0.4846, allocations: 19.97 kB / 0.7918 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.4846, allocations: 4 kB / 0.7918 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.4847, allocations: 0 / 0.7918 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.4847, allocations: 0 / 0.7918 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.4847, allocations: 0 / 0.7918 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003542/0.485, allocations: 195.3 kB / 0.792 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.932e-05/0.4851, allocations: 81.02 kB / 0.7921 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.985e-05/0.4851, allocations: 4 kB / 0.7921 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.4853, allocations: 19.92 kB / 0.7921 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.373e-05/0.4854, allocations: 11.97 kB / 0.7921 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.4854, allocations: 4 kB / 0.7921 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001006/0.4855, allocations: 107.2 kB / 0.7922 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.765e-06/0.4855, allocations: 4 kB / 0.7922 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003502/0.4859, allocations: 11.94 kB / 0.7922 GB, free: 6.434 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.0008446/0.4867, allocations: 0.7241 MB / 0.7929 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003047/0.4871, allocations: 59.95 kB / 0.793 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.4871, allocations: 4 kB / 0.793 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.4872, allocations: 31.92 kB / 0.793 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.4876, allocations: 10.86 kB / 0.793 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.4892, allocations: 0.5868 MB / 0.7936 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005374/0.4897, allocations: 0.6965 MB / 0.7943 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.086e-05/0.4898, allocations: 4 kB / 0.7943 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.283e-05/0.4899, allocations: 23.42 kB / 0.7943 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of SimCode: time 1.643e-06/0.4899, allocations: 0 / 0.7943 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02141/0.5113, allocations: 1.69 MB / 0.7959 GB, free: 2.695 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003875/0.5118, allocations: 219.2 kB / 0.7962 GB, free: 2.449 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.924/3.435, allocations: 0 / 0.7962 GB, free: 2.449 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: