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.893/1.893, allocations: 289.9 MB / 297.4 MB, free: 6.414 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.00176/0.001759, allocations: 176.9 kB / 366.7 MB, free: 1.652 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.075/2.075, allocations: 205.2 MB / 0.626 GB, free: 7.199 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.0008897/0.0008898, allocations: 96.58 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.042e-05/2.044e-05, allocations: 0 / 0.8598 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7576/0.7577, allocations: 116.3 MB / 0.9734 GB, free: 76.21 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2099/0.9676, allocations: 139.7 MB / 1.11 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003023/0.968, allocations: 91.94 kB / 1.11 GB, free: 10.34 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.004319/0.9723, allocations: 1.494 MB / 1.111 GB, free: 8.871 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.433e-06/0.9724, allocations: 0 / 1.111 GB, free: 8.871 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.456e-05/0.9724, allocations: 4 kB / 1.111 GB, free: 8.867 MB / 0.7136 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.000465/0.9729, allocations: 374.2 kB / 1.112 GB, free: 8.461 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.9729, allocations: 8.031 kB / 1.112 GB, free: 8.453 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.451e-05/0.973, allocations: 11.91 kB / 1.112 GB, free: 8.441 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001895/0.9732, allocations: 182.8 kB / 1.112 GB, free: 8.223 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.9732, allocations: 0 / 1.112 GB, free: 8.223 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.935e-05/0.9732, allocations: 7.5 kB / 1.112 GB, free: 8.219 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001147/0.9734, allocations: 27.98 kB / 1.112 GB, free: 8.191 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001681/0.9735, allocations: 78.45 kB / 1.112 GB, free: 8.105 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.9736, allocations: 0 / 1.112 GB, free: 8.105 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.9736, allocations: 4 kB / 1.112 GB, free: 8.102 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.9736, allocations: 0 / 1.112 GB, free: 8.102 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005868/0.9742, allocations: 299.5 kB / 1.112 GB, free: 7.773 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001026/0.9743, allocations: 44.91 kB / 1.112 GB, free: 7.723 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.979e-05/0.9744, allocations: 20.86 kB / 1.112 GB, free: 7.699 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.9744, allocations: 0 / 1.112 GB, free: 7.699 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.9745, allocations: 31.5 kB / 1.112 GB, free: 7.66 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.9745, allocations: 1.781 kB / 1.112 GB, free: 7.66 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4): time 0.0002085/0.9747, allocations: 61.69 kB / 1.112 GB, free: 7.594 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.921e-05/0.9748, allocations: 81.11 kB / 1.112 GB, free: 7.496 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.9749, allocations: 118.5 kB / 1.113 GB, free: 7.371 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.9749, allocations: 29.7 kB / 1.113 GB, free: 7.336 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.055e-05/0.975, allocations: 104 kB / 1.113 GB, free: 7.23 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.376e-05/0.975, allocations: 11.81 kB / 1.113 GB, free: 7.219 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-06/0.9751, allocations: 0 / 1.113 GB, free: 7.219 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.9752, allocations: 318.8 kB / 1.113 GB, free: 6.898 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.062e-05/0.9753, allocations: 12 kB / 1.113 GB, free: 6.887 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.245e-05/0.9753, allocations: 33.66 kB / 1.113 GB, free: 6.848 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.261e-05/0.9754, allocations: 22.67 kB / 1.113 GB, free: 6.828 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.9754, allocations: 0 / 1.113 GB, free: 6.828 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001074/0.9755, allocations: 53.7 kB / 1.113 GB, free: 6.77 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.9755, allocations: 11.98 kB / 1.113 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.9755, allocations: 3.938 kB / 1.113 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.9756, allocations: 0 / 1.113 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.9757, allocations: 8 kB / 1.113 GB, free: 6.75 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.9757, allocations: 6.688 kB / 1.113 GB, free: 6.746 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.678e-05/0.9758, allocations: 25.25 kB / 1.113 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.388e-05/0.9758, allocations: 4 kB / 1.113 GB, free: 6.719 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.0001045/0.9759, allocations: 116.2 kB / 1.113 GB, free: 6.602 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001133/0.976, allocations: 57.69 kB / 1.113 GB, free: 6.539 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/0.9761, allocations: 3.906 kB / 1.113 GB, free: 6.535 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.375e-05/0.9761, allocations: 12.34 kB / 1.113 GB, free: 6.523 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.9761, allocations: 4 kB / 1.113 GB, free: 6.52 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.9761, allocations: 3.953 kB / 1.113 GB, free: 6.516 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.9761, allocations: 0 / 1.113 GB, free: 6.516 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/0.9763, allocations: 162.2 kB / 1.114 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.9764, allocations: 0 / 1.114 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.236e-05/0.9764, allocations: 15.98 kB / 1.114 GB, free: 6.305 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.9764, allocations: 96 / 1.114 GB, free: 6.305 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.9765, allocations: 0 / 1.114 GB, free: 6.305 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.9765, allocations: 0 / 1.114 GB, free: 6.305 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.9765, allocations: 6.891 kB / 1.114 GB, free: 6.301 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001729/0.9767, allocations: 167.3 kB / 1.114 GB, free: 6.121 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.15e-05/0.9767, allocations: 92.94 kB / 1.114 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.9768, allocations: 0 / 1.114 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.9769, allocations: 15.98 kB / 1.114 GB, free: 5.996 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.511e-05/0.977, allocations: 7.984 kB / 1.114 GB, free: 5.988 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-06/0.977, allocations: 4 kB / 1.114 GB, free: 5.984 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.419e-05/0.977, allocations: 100.4 kB / 1.114 GB, free: 5.887 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9771, allocations: 0 / 1.114 GB, free: 5.887 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002137/0.9773, allocations: 8 kB / 1.114 GB, free: 5.879 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.0004653/0.9777, allocations: 0.6942 MB / 1.115 GB, free: 5.156 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001285/0.9779, allocations: 39.94 kB / 1.115 GB, free: 5.117 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.9779, allocations: 0 / 1.115 GB, free: 5.117 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.651e-05/0.9779, allocations: 16 kB / 1.115 GB, free: 5.102 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.9781, allocations: 4 kB / 1.115 GB, free: 5.098 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005029/0.9787, allocations: 132 kB / 1.115 GB, free: 4.934 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003491/0.979, allocations: 0.6963 MB / 1.116 GB, free: 4.211 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.082e-05/0.9791, allocations: 8 kB / 1.116 GB, free: 4.203 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.513e-05/0.9791, allocations: 19.42 kB / 1.116 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of SimCode: time 2.5e-07/0.9792, allocations: 0 / 1.116 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02176/1.001, allocations: 1.371 MB / 1.117 GB, free: 2.867 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002109/1.001, allocations: 168.6 kB / 1.117 GB, free: 2.676 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.646/2.647, allocations: 0 / 1.117 GB, free: 2.676 MB / 0.7136 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)