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.715/1.715, allocations: 288.2 MB / 303.2 MB, free: 8.141 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.001161/0.001161, allocations: 189 kB / 371.8 MB, free: 10.28 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.039/2.039, allocations: 205.4 MB / 0.6305 GB, free: 10.02 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.0009395/0.0009395, allocations: 102.6 kB / 0.7439 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004494/0.0004494, allocations: 10.78 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2988, allocations: 115.3 MB / 0.9795 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9899/1.289, allocations: 139.5 MB / 1.116 GB, free: 16.57 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/1.289, allocations: 85.52 kB / 1.116 GB, free: 16.57 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005173/1.294, allocations: 1.508 MB / 1.117 GB, free: 32.19 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.426e-06/1.294, allocations: 3.688 kB / 1.117 GB, free: 32.19 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.028e-05/1.294, allocations: 0 / 1.117 GB, free: 32.19 MB / 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.0005561/1.295, allocations: 393.8 kB / 1.118 GB, free: 31.81 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/1.295, allocations: 7.844 kB / 1.118 GB, free: 31.81 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.788e-05/1.295, allocations: 36.33 kB / 1.118 GB, free: 31.77 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.02e-05/1.295, allocations: 11.47 kB / 1.118 GB, free: 31.77 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/1.295, allocations: 185.9 kB / 1.118 GB, free: 31.55 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/1.295, allocations: 3.938 kB / 1.118 GB, free: 31.55 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/1.295, allocations: 3.875 kB / 1.118 GB, free: 31.55 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002257/1.296, allocations: 93.91 kB / 1.118 GB, free: 31.5 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/1.296, allocations: 3.938 kB / 1.118 GB, free: 31.5 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/1.296, allocations: 3.969 kB / 1.118 GB, free: 31.5 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/1.296, allocations: 0 / 1.118 GB, free: 31.5 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001573/1.296, allocations: 58.98 kB / 1.118 GB, free: 31.5 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005203/1.296, allocations: 326.1 kB / 1.118 GB, free: 31.22 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001366/1.296, allocations: 54.56 kB / 1.118 GB, free: 31.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/1.297, allocations: 7.75 kB / 1.118 GB, free: 31.2 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/1.297, allocations: 31.69 kB / 1.118 GB, free: 31.16 MB / 0.698 GB Notification: Performance of pre-optimization done (n=4): time 2.064e-06/1.297, allocations: 6.719 kB / 1.118 GB, free: 31.15 MB / 0.698 GB Notification: Performance of matching and sorting (n=4): time 0.0003529/1.297, allocations: 122.1 kB / 1.119 GB, free: 31.11 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.029e-05/1.297, allocations: 80.92 kB / 1.119 GB, free: 31.01 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/1.297, allocations: 119.7 kB / 1.119 GB, free: 30.91 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/1.297, allocations: 25.7 kB / 1.119 GB, free: 30.88 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.578e-05/1.297, allocations: 98.58 kB / 1.119 GB, free: 30.8 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/1.297, allocations: 16.94 kB / 1.119 GB, free: 30.79 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.779e-06/1.297, allocations: 4 kB / 1.119 GB, free: 30.79 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001422/1.297, allocations: 317.8 kB / 1.119 GB, free: 30.47 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.639e-05/1.297, allocations: 29.89 kB / 1.119 GB, free: 30.47 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.644e-05/1.298, allocations: 38.23 kB / 1.119 GB, free: 30.46 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.706e-05/1.298, allocations: 36.83 kB / 1.119 GB, free: 30.45 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/1.298, allocations: 0 / 1.119 GB, free: 30.45 MB / 0.698 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001803/1.298, allocations: 97.55 kB / 1.119 GB, free: 30.41 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/1.298, allocations: 7.688 kB / 1.119 GB, free: 30.41 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/1.298, allocations: 0 / 1.119 GB, free: 30.41 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/1.298, allocations: 4 kB / 1.119 GB, free: 30.41 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/1.298, allocations: 11.14 kB / 1.119 GB, free: 30.41 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/1.298, allocations: 3.953 kB / 1.119 GB, free: 30.41 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.699e-05/1.298, allocations: 14.52 kB / 1.119 GB, free: 30.41 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/1.298, allocations: 1.953 kB / 1.119 GB, free: 30.41 MB / 0.698 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.0001008/1.298, allocations: 120.9 kB / 1.12 GB, free: 30.29 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.614e-05/1.298, allocations: 7.906 kB / 1.12 GB, free: 30.29 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.471e-05/1.298, allocations: 13.59 kB / 1.12 GB, free: 30.28 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/1.298, allocations: 0 / 1.12 GB, free: 30.28 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/1.298, allocations: 3.297 kB / 1.12 GB, free: 30.28 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/1.298, allocations: 3.953 kB / 1.12 GB, free: 30.27 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/1.299, allocations: 186.5 kB / 1.12 GB, free: 30.09 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/1.299, allocations: 0 / 1.12 GB, free: 30.09 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.124e-05/1.299, allocations: 14.58 kB / 1.12 GB, free: 30.09 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/1.299, allocations: 3.969 kB / 1.12 GB, free: 30.09 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/1.299, allocations: 5.594 kB / 1.12 GB, free: 30.08 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/1.299, allocations: 0 / 1.12 GB, free: 30.08 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/1.299, allocations: 0 / 1.12 GB, free: 30.08 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002572/1.299, allocations: 184.5 kB / 1.12 GB, free: 29.95 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.958e-05/1.299, allocations: 86.28 kB / 1.12 GB, free: 29.85 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/1.299, allocations: 4 kB / 1.12 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/1.299, allocations: 15.09 kB / 1.12 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.985e-05/1.299, allocations: 13.81 kB / 1.12 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-06/1.299, allocations: 0 / 1.12 GB, free: 29.84 MB / 0.698 GB Notification: Performance of sorting global known variables: time 6.588e-05/1.299, allocations: 98.88 kB / 1.12 GB, free: 29.77 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/1.299, allocations: 3.938 kB / 1.12 GB, free: 29.77 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002075/1.3, allocations: 11.62 kB / 1.12 GB, free: 29.77 MB / 0.698 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.000536/1.3, allocations: 0.7325 MB / 1.121 GB, free: 29.09 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002049/1.3, allocations: 62.19 kB / 1.121 GB, free: 29.09 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.3, allocations: 0 / 1.121 GB, free: 29.09 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 7.615e-05/1.3, allocations: 32.88 kB / 1.121 GB, free: 29.09 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002049/1.301, allocations: 7.688 kB / 1.121 GB, free: 29.09 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009479/1.302, allocations: 0.5943 MB / 1.122 GB, free: 28.71 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002824/1.302, allocations: 0.6923 MB / 1.122 GB, free: 28.02 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.602e-05/1.302, allocations: 7.922 kB / 1.122 GB, free: 28.01 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.837e-05/1.302, allocations: 25.38 kB / 1.122 GB, free: 28 MB / 0.698 GB Notification: Performance of SimCode: time 4.11e-07/1.302, allocations: 0 / 1.122 GB, free: 28 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01372/1.316, allocations: 1.713 MB / 1.124 GB, free: 27.87 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001995/1.316, allocations: 219.7 kB / 1.124 GB, free: 27.62 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/3.109, allocations: 1.25 kB / 1.124 GB, free: 27.62 MB / 0.698 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)