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/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.69/1.69, allocations: 289.7 MB / 302.3 MB, free: 2.168 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.001186/0.001185, allocations: 183.6 kB / 371.6 MB, free: 3.348 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.898/1.898, allocations: 205.1 MB / 0.6309 GB, free: 11.76 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000862/0.000862, allocations: 96.05 kB / 0.745 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.148e-05/4.149e-05, allocations: 7.984 kB / 0.8663 GB, free: 14.93 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2972, allocations: 116.3 MB / 0.9799 GB, free: 10.47 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9645/1.262, allocations: 140.3 MB / 1.117 GB, free: 43.61 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/1.262, allocations: 90.45 kB / 1.117 GB, free: 43.57 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.00384/1.266, allocations: 1.503 MB / 1.119 GB, free: 42.62 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.976e-06/1.266, allocations: 0 / 1.119 GB, free: 42.62 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.021e-05/1.266, allocations: 0.9688 kB / 1.119 GB, free: 42.62 MB / 0.7448 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.0003845/1.266, allocations: 387.6 kB / 1.119 GB, free: 42.23 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/1.266, allocations: 8.031 kB / 1.119 GB, free: 42.22 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.368e-05/1.266, allocations: 33.56 kB / 1.119 GB, free: 42.18 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.57e-05/1.266, allocations: 10.41 kB / 1.119 GB, free: 42.17 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/1.267, allocations: 179.3 kB / 1.119 GB, free: 41.96 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/1.267, allocations: 0.7969 kB / 1.119 GB, free: 41.96 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/1.267, allocations: 6.938 kB / 1.119 GB, free: 41.96 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001639/1.267, allocations: 86.44 kB / 1.119 GB, free: 41.88 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/1.267, allocations: 0 / 1.119 GB, free: 41.88 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/1.267, allocations: 2.938 kB / 1.119 GB, free: 41.88 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/1.267, allocations: 4 kB / 1.119 GB, free: 41.88 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.101e-05/1.267, allocations: 30.55 kB / 1.119 GB, free: 41.86 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004524/1.267, allocations: 330.4 kB / 1.12 GB, free: 41.55 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 9.427e-05/1.268, allocations: 44.3 kB / 1.12 GB, free: 41.51 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.824e-05/1.268, allocations: 16.98 kB / 1.12 GB, free: 41.5 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/1.268, allocations: 0 / 1.12 GB, free: 41.5 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/1.268, allocations: 38 kB / 1.12 GB, free: 41.45 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/1.268, allocations: 4 kB / 1.12 GB, free: 41.45 MB / 0.7448 GB Notification: Performance of matching and sorting (n=4): time 0.0001866/1.268, allocations: 74.06 kB / 1.12 GB, free: 41.39 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/1.268, allocations: 77.11 kB / 1.12 GB, free: 41.29 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.358e-05/1.268, allocations: 116.1 kB / 1.12 GB, free: 41.18 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/1.268, allocations: 33.08 kB / 1.12 GB, free: 41.15 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.971e-05/1.268, allocations: 102.8 kB / 1.12 GB, free: 41.05 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/1.268, allocations: 11.75 kB / 1.12 GB, free: 41.05 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.08e-06/1.268, allocations: 0 / 1.12 GB, free: 41.05 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.776e-05/1.268, allocations: 325.7 kB / 1.12 GB, free: 40.73 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.149e-05/1.268, allocations: 11.19 kB / 1.12 GB, free: 40.72 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.836e-05/1.268, allocations: 27.91 kB / 1.12 GB, free: 40.7 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.453e-05/1.268, allocations: 11.69 kB / 1.12 GB, free: 40.69 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/1.268, allocations: 0 / 1.12 GB, free: 40.69 MB / 0.7448 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001048/1.268, allocations: 74.31 kB / 1.12 GB, free: 40.63 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/1.268, allocations: 4 kB / 1.12 GB, free: 40.62 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/1.268, allocations: 0 / 1.12 GB, free: 40.62 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/1.268, allocations: 4 kB / 1.12 GB, free: 40.62 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/1.269, allocations: 20.44 kB / 1.12 GB, free: 40.61 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/1.269, allocations: 0 / 1.12 GB, free: 40.61 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.793e-05/1.269, allocations: 18.66 kB / 1.121 GB, free: 40.59 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/1.269, allocations: 1.062 kB / 1.121 GB, free: 40.59 MB / 0.7448 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 () * 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 6.411e-05/1.269, allocations: 105.5 kB / 1.121 GB, free: 40.48 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.585e-05/1.269, allocations: 3.906 kB / 1.121 GB, free: 40.48 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.623e-05/1.269, allocations: 18.47 kB / 1.121 GB, free: 40.46 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/1.269, allocations: 0 / 1.121 GB, free: 40.46 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/1.269, allocations: 4.844 kB / 1.121 GB, free: 40.46 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/1.269, allocations: 3.656 kB / 1.121 GB, free: 40.46 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/1.269, allocations: 185.7 kB / 1.121 GB, free: 40.26 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/1.269, allocations: 0.5 kB / 1.121 GB, free: 40.26 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.704e-05/1.269, allocations: 11.42 kB / 1.121 GB, free: 40.25 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/1.269, allocations: 3.938 kB / 1.121 GB, free: 40.25 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-06/1.269, allocations: 7.172 kB / 1.121 GB, free: 40.24 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/1.269, allocations: 4.625 kB / 1.121 GB, free: 40.24 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/1.269, allocations: 0 / 1.121 GB, free: 40.24 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/1.269, allocations: 163.4 kB / 1.121 GB, free: 40.08 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.313e-05/1.269, allocations: 88.95 kB / 1.121 GB, free: 39.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/1.269, allocations: 0.75 kB / 1.121 GB, free: 39.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/1.269, allocations: 18.88 kB / 1.121 GB, free: 39.96 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.135e-05/1.27, allocations: 14.94 kB / 1.121 GB, free: 39.96 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/1.27, allocations: 0 / 1.121 GB, free: 39.96 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.944e-05/1.27, allocations: 98.98 kB / 1.121 GB, free: 39.87 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2e-07/1.27, allocations: 0 / 1.121 GB, free: 39.87 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002022/1.27, allocations: 19.58 kB / 1.121 GB, free: 39.86 MB / 0.7448 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) * 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.0003139/1.27, allocations: 0.7021 MB / 1.122 GB, free: 39.15 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001148/1.27, allocations: 34.25 kB / 1.122 GB, free: 39.13 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.27, allocations: 0 / 1.122 GB, free: 39.13 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.963e-05/1.27, allocations: 25.69 kB / 1.122 GB, free: 39.11 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001697/1.271, allocations: 0 / 1.122 GB, free: 39.11 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003925/1.271, allocations: 133.5 kB / 1.122 GB, free: 38.98 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001533/1.271, allocations: 0.6938 MB / 1.123 GB, free: 38.27 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.335e-05/1.271, allocations: 9.031 kB / 1.123 GB, free: 38.26 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.522e-05/1.271, allocations: 20.48 kB / 1.123 GB, free: 38.26 MB / 0.7448 GB Notification: Performance of SimCode: time 2.4e-07/1.271, allocations: 0 / 1.123 GB, free: 38.26 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01228/1.283, allocations: 1.719 MB / 1.124 GB, free: 37.33 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/1.284, allocations: 177.5 kB / 1.125 GB, free: 37.11 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/2.971, allocations: 0 / 1.125 GB, free: 37.11 MB / 0.7448 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)