Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.415/1.415, allocations: 288.4 MB / 303.6 MB, free: 7.977 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.0008474/0.000847, allocations: 180.5 kB / 372.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.113/1.113, allocations: 205.4 MB / 0.631 GB, free: 9.922 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.000675/0.000675, allocations: 93.11 kB / 0.7444 GB, free: 5.828 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003254/0.0003255, allocations: 12.66 kB / 0.8676 GB, free: 141.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1387, allocations: 115.3 MB / 0.9802 GB, free: 27.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001262/0.14, allocations: 1.37 MB / 0.9815 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0005377/0.1405, allocations: 467.9 kB / 0.982 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.17e-05/0.1406, allocations: 0 / 0.982 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.342e-05/0.1406, allocations: 0 / 0.982 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.038e-05/0.1407, allocations: 15.86 kB / 0.982 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001259/0.1408, allocations: 15.98 kB / 0.982 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.046e-05/0.1409, allocations: 75.7 kB / 0.9821 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.489e-05/0.141, allocations: 24.27 kB / 0.9821 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.69e-05/0.1411, allocations: 27.86 kB / 0.9821 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.023e-05/0.1411, allocations: 35.83 kB / 0.9822 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.449e-05/0.1411, allocations: 0 / 0.9822 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.147e-05/0.1412, allocations: 4 kB / 0.9822 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.455e-05/0.1412, allocations: 15.86 kB / 0.9822 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.235e-05/0.1412, allocations: 49.58 kB / 0.9822 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 6.393e-05/0.1413, allocations: 67.8 kB / 0.9823 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.1413, allocations: 0 / 0.9823 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.533e-06/0.1413, allocations: 0 / 0.9823 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.336e-06/0.1413, allocations: 0 / 0.9823 GB, free: 25.05 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.0003502/0.1417, allocations: 380.3 kB / 0.9827 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.1417, allocations: 12.03 kB / 0.9827 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.9e-05/0.1417, allocations: 34.75 kB / 0.9827 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.554e-05/0.1418, allocations: 8.844 kB / 0.9827 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.19e-05/0.1419, allocations: 184.1 kB / 0.9829 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.1419, allocations: 8.375 kB / 0.9829 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.098e-05/0.1419, allocations: 4.375 kB / 0.9829 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001668/0.1421, allocations: 99.44 kB / 0.983 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.1421, allocations: 0 / 0.983 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.1421, allocations: 7.984 kB / 0.983 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.1421, allocations: 3.938 kB / 0.983 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001399/0.1422, allocations: 59.95 kB / 0.9831 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000336/0.1426, allocations: 324.8 kB / 0.9834 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.1427, allocations: 58.48 kB / 0.9834 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.116e-05/0.1428, allocations: 40.94 kB / 0.9835 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.1428, allocations: 0 / 0.9835 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.407e-05/0.1428, allocations: 30.56 kB / 0.9835 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=4): time 8.32e-07/0.1429, allocations: 4 kB / 0.9835 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=4): time 0.0002832/0.1431, allocations: 117.6 kB / 0.9836 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.131e-05/0.1432, allocations: 77.11 kB / 0.9837 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.962e-05/0.1432, allocations: 133.1 kB / 0.9838 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.161e-05/0.1433, allocations: 29.7 kB / 0.9838 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 2.82e-05/0.1433, allocations: 96.08 kB / 0.9839 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.394e-05/0.1433, allocations: 11.8 kB / 0.984 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.499e-06/0.1433, allocations: 0 / 0.984 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 3.417e-05/0.1434, allocations: 326.8 kB / 0.9843 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.047e-05/0.1434, allocations: 27.98 kB / 0.9843 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.846e-05/0.1435, allocations: 45.69 kB / 0.9843 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.1436, allocations: 48.88 kB / 0.9844 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1436, allocations: 3.938 kB / 0.9844 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001683/0.1438, allocations: 109.6 kB / 0.9845 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/0.1438, allocations: 4 kB / 0.9845 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.1438, allocations: 0 / 0.9845 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.967e-06/0.1439, allocations: 4 kB / 0.9845 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.717e-05/0.144, allocations: 11.98 kB / 0.9845 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.144, allocations: 4 kB / 0.9845 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.321e-05/0.144, allocations: 15.92 kB / 0.9845 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-06/0.1441, allocations: 4 kB / 0.9845 GB, free: 22.53 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 5.31e-05/0.1441, allocations: 117.8 kB / 0.9846 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.6e-05/0.1441, allocations: 7.906 kB / 0.9846 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.326e-05/0.1442, allocations: 8.25 kB / 0.9847 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1442, allocations: 0 / 0.9847 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1442, allocations: 0 / 0.9847 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1442, allocations: 15.86 kB / 0.9847 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.1443, allocations: 185.6 kB / 0.9848 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.1443, allocations: 0 / 0.9848 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.471e-05/0.1444, allocations: 11.98 kB / 0.9849 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.1444, allocations: 4 kB / 0.9849 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.1444, allocations: 7.938 kB / 0.9849 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1444, allocations: 0 / 0.9849 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1444, allocations: 0 / 0.9849 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001731/0.1446, allocations: 187.4 kB / 0.9851 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.723e-05/0.1446, allocations: 89.03 kB / 0.9851 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/0.1447, allocations: 0 / 0.9851 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.849e-05/0.1448, allocations: 15.98 kB / 0.9852 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.1448, allocations: 12.22 kB / 0.9852 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.032e-06/0.1448, allocations: 3.938 kB / 0.9852 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.477e-05/0.1449, allocations: 103.3 kB / 0.9853 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1449, allocations: 0 / 0.9853 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003145/0.1452, allocations: 11.91 kB / 0.9853 GB, free: 21.67 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.0003104/0.1455, allocations: 0.7241 MB / 0.986 GB, free: 20.92 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001592/0.1457, allocations: 59.97 kB / 0.986 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1457, allocations: 0 / 0.986 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.255e-05/0.1457, allocations: 35.92 kB / 0.9861 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.146, allocations: 7.938 kB / 0.9861 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007154/0.1467, allocations: 0.5902 MB / 0.9867 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.276e-05/0.1468, allocations: 0.6926 MB / 0.9873 GB, free: 19.46 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.683e-05/0.1468, allocations: 11.92 kB / 0.9873 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.421e-05/0.1469, allocations: 27.42 kB / 0.9874 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of SimCode: time 2.91e-07/0.1469, allocations: 0 / 0.9874 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5029/0.6498, allocations: 1.727 MB / 0.9891 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001456/0.65, allocations: 217.3 kB / 0.9893 GB, free: 17.68 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.486/2.136, allocations: 0 / 0.9893 GB, free: 17.68 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)