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.715/1.715, allocations: 292.6 MB / 307.5 MB, free: 5.191 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.001102/0.001102, allocations: 195.9 kB / 377.1 MB, free: 1.52 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.976/1.976, allocations: 205.4 MB / 0.6366 GB, free: 8.629 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.0009941/0.0009942, allocations: 94.16 kB / 0.7509 GB, free: 62.79 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003929/0.0003929, allocations: 12 kB / 0.8749 GB, free: 11.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3417, allocations: 116.3 MB / 0.9884 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9771/1.319, allocations: 140.4 MB / 1.126 GB, free: 34.45 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003266/1.319, allocations: 96.03 kB / 1.126 GB, free: 34.38 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.004823/1.324, allocations: 1.506 MB / 1.127 GB, free: 33.22 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.184e-06/1.324, allocations: 0 / 1.127 GB, free: 33.22 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.67e-05/1.324, allocations: 4 kB / 1.127 GB, free: 33.22 MB / 0.7292 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.0005825/1.325, allocations: 399.7 kB / 1.128 GB, free: 32.8 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/1.325, allocations: 8.031 kB / 1.128 GB, free: 32.79 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.386e-05/1.325, allocations: 34.56 kB / 1.128 GB, free: 32.75 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.728e-05/1.325, allocations: 10.53 kB / 1.128 GB, free: 32.74 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/1.325, allocations: 179.6 kB / 1.128 GB, free: 32.53 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/1.325, allocations: 5.078 kB / 1.128 GB, free: 32.53 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/1.325, allocations: 8.5 kB / 1.128 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002558/1.325, allocations: 94.81 kB / 1.128 GB, free: 32.43 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/1.325, allocations: 0 / 1.128 GB, free: 32.43 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/1.326, allocations: 1.375 kB / 1.128 GB, free: 32.43 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/1.326, allocations: 0 / 1.128 GB, free: 32.43 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/1.326, allocations: 62.59 kB / 1.128 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006071/1.326, allocations: 328.2 kB / 1.128 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/1.327, allocations: 54.19 kB / 1.128 GB, free: 31.98 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.462e-05/1.327, allocations: 7.453 kB / 1.128 GB, free: 31.98 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/1.327, allocations: 39.12 kB / 1.128 GB, free: 31.93 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=4): time 3.627e-06/1.327, allocations: 0.5156 kB / 1.128 GB, free: 31.93 MB / 0.7292 GB Notification: Performance of matching and sorting (n=4): time 0.0004917/1.327, allocations: 112.6 kB / 1.128 GB, free: 31.83 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.974e-05/1.327, allocations: 77.11 kB / 1.128 GB, free: 31.73 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.621e-05/1.327, allocations: 125.2 kB / 1.129 GB, free: 31.61 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/1.327, allocations: 26.25 kB / 1.129 GB, free: 31.58 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.03e-05/1.327, allocations: 96.5 kB / 1.129 GB, free: 31.48 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/1.327, allocations: 15.75 kB / 1.129 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/1.327, allocations: 8 kB / 1.129 GB, free: 31.46 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.988e-05/1.328, allocations: 314.5 kB / 1.129 GB, free: 31.15 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.437e-05/1.328, allocations: 31.45 kB / 1.129 GB, free: 31.12 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.427e-05/1.328, allocations: 45.17 kB / 1.129 GB, free: 31.07 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.926e-05/1.328, allocations: 30.33 kB / 1.129 GB, free: 31.05 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/1.328, allocations: 0 / 1.129 GB, free: 31.05 MB / 0.7292 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002285/1.328, allocations: 96.77 kB / 1.129 GB, free: 30.96 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/1.328, allocations: 8 kB / 1.129 GB, free: 30.95 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/1.328, allocations: 1.031 kB / 1.129 GB, free: 30.95 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/1.328, allocations: 4 kB / 1.129 GB, free: 30.95 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/1.328, allocations: 12.25 kB / 1.129 GB, free: 30.94 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/1.328, allocations: 3.953 kB / 1.129 GB, free: 30.94 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.577e-05/1.328, allocations: 15.47 kB / 1.129 GB, free: 30.93 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/1.328, allocations: 0 / 1.129 GB, free: 30.93 MB / 0.7292 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.0001005/1.329, allocations: 118.5 kB / 1.129 GB, free: 30.8 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.288e-05/1.329, allocations: 11.91 kB / 1.129 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.601e-05/1.329, allocations: 15.77 kB / 1.129 GB, free: 30.78 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/1.329, allocations: 0 / 1.129 GB, free: 30.78 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/1.329, allocations: 0 / 1.129 GB, free: 30.78 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.669e-06/1.329, allocations: 5.688 kB / 1.129 GB, free: 30.77 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/1.329, allocations: 192 kB / 1.13 GB, free: 30.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/1.329, allocations: 0.75 kB / 1.13 GB, free: 30.55 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.683e-05/1.329, allocations: 11.42 kB / 1.13 GB, free: 30.54 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/1.329, allocations: 0 / 1.13 GB, free: 30.54 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/1.329, allocations: 0 / 1.13 GB, free: 30.54 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.233e-06/1.329, allocations: 8.016 kB / 1.13 GB, free: 30.54 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.329, allocations: 4 kB / 1.13 GB, free: 30.54 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002409/1.329, allocations: 182.6 kB / 1.13 GB, free: 30.35 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 3.704e-05/1.329, allocations: 85.02 kB / 1.13 GB, free: 30.25 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.588e-05/1.329, allocations: 4 kB / 1.13 GB, free: 30.25 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/1.329, allocations: 21.14 kB / 1.13 GB, free: 30.23 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.493e-05/1.33, allocations: 10.98 kB / 1.13 GB, free: 30.23 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/1.33, allocations: 0 / 1.13 GB, free: 30.23 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 7.565e-05/1.33, allocations: 101.7 kB / 1.13 GB, free: 30.13 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.11e-07/1.33, allocations: 0 / 1.13 GB, free: 30.13 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002405/1.33, allocations: 12 kB / 1.13 GB, free: 30.12 MB / 0.7292 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.0005053/1.33, allocations: 0.7266 MB / 1.131 GB, free: 29.38 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002384/1.331, allocations: 67 kB / 1.131 GB, free: 29.33 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/1.331, allocations: 3.938 kB / 1.131 GB, free: 29.32 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 9.01e-05/1.331, allocations: 28.55 kB / 1.131 GB, free: 29.3 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/1.331, allocations: 4.562 kB / 1.131 GB, free: 29.3 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/1.332, allocations: 0.6025 MB / 1.131 GB, free: 28.71 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/1.333, allocations: 0.6909 MB / 1.132 GB, free: 28 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.618e-05/1.333, allocations: 4.656 kB / 1.132 GB, free: 28 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.142e-05/1.333, allocations: 26.72 kB / 1.132 GB, free: 27.98 MB / 0.7292 GB Notification: Performance of SimCode: time 6.01e-07/1.333, allocations: 0 / 1.132 GB, free: 27.98 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01935/1.352, allocations: 1.702 MB / 1.134 GB, free: 27.06 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002841/1.352, allocations: 198.6 kB / 1.134 GB, free: 26.83 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.053/3.406, allocations: 0.9375 kB / 1.134 GB, free: 26.83 MB / 0.7292 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)