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.405/2.405, allocations: 284.9 MB / 292.4 MB, free: 10.58 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.00153/0.00153, allocations: 188.8 kB / 360.6 MB, free: 7.293 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.101/2.101, allocations: 205.3 MB / 0.6191 GB, free: 12.22 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.001156/0.001155, allocations: 96.55 kB / 0.7321 GB, free: 44.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.372e-05/2.385e-05, allocations: 4 kB / 0.8509 GB, free: 3.344 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8586/0.8587, allocations: 115.3 MB / 0.9634 GB, free: 78.8 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.234/1.093, allocations: 138.5 MB / 1.099 GB, free: 1.984 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003605/1.093, allocations: 89.64 kB / 1.099 GB, free: 1.898 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.006641/1.1, allocations: 1.497 MB / 1.1 GB, free: 448 kB / 0.698 GB Notification: Performance of FrontEnd: time 1.693e-06/1.1, allocations: 0.6875 kB / 1.1 GB, free: 448 kB / 0.698 GB Notification: Performance of Transformations before backend: time 8.025e-06/1.1, allocations: 0 / 1.1 GB, free: 448 kB / 0.698 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.000591/1.101, allocations: 377.8 kB / 1.101 GB, free: 28 kB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/1.101, allocations: 12.03 kB / 1.101 GB, free: 16 kB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.206e-05/1.101, allocations: 8.438 kB / 1.101 GB, free: 8 kB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/1.101, allocations: 179.1 kB / 1.101 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/1.101, allocations: 4 kB / 1.101 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.077e-05/1.101, allocations: 1 kB / 1.101 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001461/1.101, allocations: 31.94 kB / 1.101 GB, free: 15.76 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001906/1.101, allocations: 80.25 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/1.101, allocations: 3.984 kB / 1.101 GB, free: 15.67 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/1.101, allocations: 0.625 kB / 1.101 GB, free: 15.67 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/1.101, allocations: 1.281 kB / 1.101 GB, free: 15.67 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006751/1.102, allocations: 299.1 kB / 1.101 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000122/1.102, allocations: 37 kB / 1.101 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.036e-05/1.102, allocations: 24.94 kB / 1.101 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/1.102, allocations: 7.984 kB / 1.101 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/1.102, allocations: 31.62 kB / 1.101 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 5.049e-06/1.102, allocations: 4 kB / 1.101 GB, free: 15.22 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4): time 0.0002478/1.103, allocations: 66.47 kB / 1.101 GB, free: 15.15 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/1.103, allocations: 81.11 kB / 1.101 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/1.103, allocations: 116.1 kB / 1.102 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/1.103, allocations: 25.7 kB / 1.102 GB, free: 14.9 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.923e-05/1.103, allocations: 104 kB / 1.102 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.728e-05/1.103, allocations: 11.81 kB / 1.102 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.364e-06/1.103, allocations: 0 / 1.102 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001499/1.103, allocations: 322.8 kB / 1.102 GB, free: 14.46 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.072e-05/1.103, allocations: 16 kB / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.939e-05/1.103, allocations: 25.72 kB / 1.102 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.753e-05/1.103, allocations: 11.62 kB / 1.102 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.103, allocations: 0 / 1.102 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001851/1.104, allocations: 72.31 kB / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/1.104, allocations: 4 kB / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/1.104, allocations: 0 / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/1.104, allocations: 0 / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001928/1.104, allocations: 23.95 kB / 1.102 GB, free: 14.3 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/1.104, allocations: 3.953 kB / 1.102 GB, free: 14.3 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/1.104, allocations: 15.89 kB / 1.102 GB, free: 14.29 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/1.104, allocations: 4 kB / 1.102 GB, free: 14.28 MB / 0.7136 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 0.0001073/1.104, allocations: 110.5 kB / 1.102 GB, free: 14.17 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001698/1.104, allocations: 58.62 kB / 1.102 GB, free: 14.11 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/1.104, allocations: 11.91 kB / 1.102 GB, free: 14.1 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.655e-05/1.105, allocations: 12.33 kB / 1.102 GB, free: 14.08 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/1.105, allocations: 7.953 kB / 1.102 GB, free: 14.07 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/1.105, allocations: 0 / 1.102 GB, free: 14.07 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/1.105, allocations: 3.938 kB / 1.102 GB, free: 14.07 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002374/1.105, allocations: 158.2 kB / 1.103 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/1.105, allocations: 3.984 kB / 1.103 GB, free: 13.87 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/1.105, allocations: 12.52 kB / 1.103 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/1.105, allocations: 0 / 1.103 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/1.105, allocations: 3.984 kB / 1.103 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/1.105, allocations: 9.938 kB / 1.103 GB, free: 13.85 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/1.105, allocations: 0 / 1.103 GB, free: 13.85 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002134/1.105, allocations: 157.6 kB / 1.103 GB, free: 13.68 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.335e-05/1.105, allocations: 84.95 kB / 1.103 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/1.105, allocations: 0 / 1.103 GB, free: 13.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/1.106, allocations: 15.98 kB / 1.103 GB, free: 13.56 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/1.106, allocations: 19.97 kB / 1.103 GB, free: 13.54 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/1.106, allocations: 0 / 1.103 GB, free: 13.54 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 8.728e-05/1.106, allocations: 102 kB / 1.103 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.31e-07/1.106, allocations: 0 / 1.103 GB, free: 13.45 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000328/1.106, allocations: 12 kB / 1.103 GB, free: 13.43 MB / 0.7136 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.0005779/1.107, allocations: 0.6928 MB / 1.104 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001738/1.107, allocations: 35.98 kB / 1.104 GB, free: 12.68 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/1.107, allocations: 0 / 1.104 GB, free: 12.68 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.637e-05/1.107, allocations: 19.94 kB / 1.104 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/1.107, allocations: 4 kB / 1.104 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005841/1.108, allocations: 135.8 kB / 1.104 GB, free: 12.49 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/1.108, allocations: 0.6924 MB / 1.104 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 7.153e-05/1.108, allocations: 6.484 kB / 1.104 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.91e-05/1.108, allocations: 19.42 kB / 1.104 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of SimCode: time 9.72e-07/1.108, allocations: 0 / 1.104 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03526/1.144, allocations: 1.364 MB / 1.106 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003279/1.144, allocations: 168 kB / 1.106 GB, free: 10.26 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.286/3.43, allocations: 0 / 1.106 GB, free: 10.26 MB / 0.7136 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)