Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.531/1.531, allocations: 249.3 MB / 261.8 MB, free: 5.887 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001191/0.001191, allocations: 178.6 kB / 321.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.848/1.848, allocations: 205.2 MB / 0.572 GB, free: 10.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001/0.001, allocations: 92.02 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.244e-05/3.247e-05, allocations: 4 kB / 0.788 GB, free: 97.01 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2423, allocations: 106.3 MB / 0.8919 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8728/1.115, allocations: 133.1 MB / 1.022 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/1.116, allocations: 95.48 kB / 1.022 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004435/1.12, allocations: 1.509 MB / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of FrontEnd: time 1.934e-06/1.12, allocations: 0 / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.857e-06/1.12, allocations: 0 / 1.023 GB, free: 284 kB / 0.6355 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.0005491/1.121, allocations: 381.7 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/1.121, allocations: 8.031 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.315e-05/1.121, allocations: 33.88 kB / 1.024 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.01e-05/1.121, allocations: 11.91 kB / 1.024 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001962/1.121, allocations: 171.7 kB / 1.024 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/1.121, allocations: 7.125 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/1.121, allocations: 0 / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/1.121, allocations: 84.95 kB / 1.024 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/1.121, allocations: 0 / 1.024 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/1.121, allocations: 7.75 kB / 1.024 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/1.121, allocations: 0.875 kB / 1.024 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.603e-05/1.121, allocations: 30.86 kB / 1.024 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005641/1.122, allocations: 339.2 kB / 1.024 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/1.122, allocations: 37.45 kB / 1.024 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.201e-05/1.122, allocations: 16.17 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/1.122, allocations: 7.984 kB / 1.024 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/1.122, allocations: 41.14 kB / 1.025 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/1.122, allocations: 0 / 1.025 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of matching and sorting (n=4): time 0.0001958/1.122, allocations: 64.33 kB / 1.025 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.046e-05/1.122, allocations: 81.11 kB / 1.025 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/1.123, allocations: 121.4 kB / 1.025 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/1.123, allocations: 25.7 kB / 1.025 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.343e-05/1.123, allocations: 109.5 kB / 1.025 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/1.123, allocations: 3.906 kB / 1.025 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-06/1.123, allocations: 3.188 kB / 1.025 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001672/1.123, allocations: 321.6 kB / 1.025 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.664e-05/1.123, allocations: 14.69 kB / 1.025 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.391e-05/1.123, allocations: 36.09 kB / 1.025 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.813e-05/1.123, allocations: 18.42 kB / 1.025 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/1.123, allocations: 0 / 1.025 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001367/1.123, allocations: 68.41 kB / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/1.123, allocations: 8 kB / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/1.123, allocations: 0 / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/1.123, allocations: 3.953 kB / 1.025 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/1.123, allocations: 11.98 kB / 1.025 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/1.123, allocations: 4.031 kB / 1.025 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.106e-05/1.123, allocations: 12 kB / 1.025 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/1.124, allocations: 3.984 kB / 1.025 GB, free: 14.14 MB / 0.6511 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 8.555e-05/1.124, allocations: 108.6 kB / 1.026 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/1.124, allocations: 7.906 kB / 1.026 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.142e-05/1.124, allocations: 11.34 kB / 1.026 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/1.124, allocations: 7.781 kB / 1.026 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/1.124, allocations: 4 kB / 1.026 GB, free: 14 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/1.124, allocations: 4 kB / 1.026 GB, free: 14 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002159/1.124, allocations: 183.2 kB / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/1.124, allocations: 0 / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.446e-05/1.124, allocations: 11.98 kB / 1.026 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/1.124, allocations: 4 kB / 1.026 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/1.124, allocations: 3.688 kB / 1.026 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/1.124, allocations: 0 / 1.026 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.124, allocations: 3.953 kB / 1.026 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000181/1.124, allocations: 162.1 kB / 1.026 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.264e-05/1.124, allocations: 88.95 kB / 1.026 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/1.124, allocations: 0 / 1.026 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/1.124, allocations: 15.98 kB / 1.026 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.312e-05/1.125, allocations: 12.11 kB / 1.026 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/1.125, allocations: 11.89 kB / 1.026 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.535e-05/1.125, allocations: 107.4 kB / 1.026 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/1.125, allocations: 0 / 1.026 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002011/1.125, allocations: 8 kB / 1.026 GB, free: 13.36 MB / 0.6511 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.0005195/1.125, allocations: 0.6954 MB / 1.027 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001273/1.126, allocations: 35 kB / 1.027 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/1.126, allocations: 4 kB / 1.027 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.479e-05/1.126, allocations: 19.88 kB / 1.027 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001784/1.126, allocations: 7.688 kB / 1.027 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004416/1.126, allocations: 139.4 kB / 1.027 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/1.127, allocations: 0.6965 MB / 1.028 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.192e-05/1.127, allocations: 8 kB / 1.028 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.983e-05/1.127, allocations: 24.8 kB / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of SimCode: time 6.61e-07/1.127, allocations: 0 / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01419/1.141, allocations: 1.728 MB / 1.029 GB, free: 10.15 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002851/1.141, allocations: 183.6 kB / 1.03 GB, free: 9.93 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/2.799, allocations: 0 / 1.03 GB, free: 9.93 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)