Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_11_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006225/0.006225, allocations: 96.7 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 194.8 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.628/2.628, allocations: 469.8 MB / 0.7425 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 68.11 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2507, allocations: 159.1 MB / 1.22 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002375/0.2531, allocations: 1.665 MB / 1.222 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0005929/0.2537, allocations: 439 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.051e-05/0.2538, allocations: 0 / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.993e-05/0.2538, allocations: 11.81 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.246e-05/0.2539, allocations: 23.8 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001334/0.254, allocations: 23.97 kB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.2541, allocations: 87.75 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.864e-05/0.2542, allocations: 23.98 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.936e-05/0.2543, allocations: 39.8 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.349e-05/0.2544, allocations: 39.83 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.06e-05/0.2544, allocations: 8 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.578e-05/0.2544, allocations: 8 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.355e-05/0.2545, allocations: 15.92 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.78e-05/0.2545, allocations: 39.8 kB / 1.223 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.2546, allocations: 75.69 kB / 1.223 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.2546, allocations: 4 kB / 1.223 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2546, allocations: 0 / 1.223 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.506e-06/0.2547, allocations: 0 / 1.223 GB, free: 11.81 MB / 0.9825 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.0004778/0.2551, allocations: 395 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.002e-05/0.2552, allocations: 12.03 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.426e-05/0.2552, allocations: 38.73 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.2552, allocations: 12.88 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.2554, allocations: 186.8 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.502e-06/0.2554, allocations: 4.375 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.2554, allocations: 4.375 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.2556, allocations: 91.5 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2556, allocations: 4 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.2556, allocations: 0 / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.2556, allocations: 4 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001505/0.2558, allocations: 55.89 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004152/0.2562, allocations: 324.7 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000118/0.2563, allocations: 50.59 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.323e-05/0.2564, allocations: 28.94 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.2565, allocations: 7.984 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.2565, allocations: 34.5 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.2565, allocations: 0 / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0002972/0.2568, allocations: 109.5 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.2568, allocations: 77.11 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.2569, allocations: 134 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.257, allocations: 29.7 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.455e-05/0.257, allocations: 100.1 kB / 1.224 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.257, allocations: 15.89 kB / 1.224 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.2571, allocations: 17.72 kB / 1.224 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.2572, allocations: 322.8 kB / 1.225 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.438e-05/0.2573, allocations: 23.98 kB / 1.225 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.659e-05/0.2574, allocations: 37.7 kB / 1.225 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001243/0.2575, allocations: 48.86 kB / 1.225 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.2575, allocations: 0 / 1.225 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001842/0.2577, allocations: 93.56 kB / 1.225 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.267e-06/0.2577, allocations: 4 kB / 1.225 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2577, allocations: 3.984 kB / 1.225 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.2577, allocations: 0 / 1.225 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.206e-05/0.2578, allocations: 8 kB / 1.225 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.686e-06/0.2578, allocations: 4 kB / 1.225 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.619e-05/0.2579, allocations: 19.86 kB / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.2579, allocations: 0 / 1.225 GB, free: 9.301 MB / 0.9825 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 (chiSwi.hysteresis.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.824e-05/0.258, allocations: 118.4 kB / 1.225 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.92e-05/0.2581, allocations: 7.953 kB / 1.225 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.987e-05/0.2581, allocations: 16.19 kB / 1.225 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.2581, allocations: 0 / 1.225 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2581, allocations: 0 / 1.225 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.2581, allocations: 8.125 kB / 1.225 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.2583, allocations: 193.6 kB / 1.225 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2583, allocations: 0 / 1.225 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.165e-05/0.2584, allocations: 7.984 kB / 1.225 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.2584, allocations: 4 kB / 1.225 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.393e-06/0.2584, allocations: 0 / 1.225 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.2584, allocations: 3.938 kB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2584, allocations: 0 / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002168/0.2586, allocations: 187.6 kB / 1.225 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.357e-05/0.2587, allocations: 81.06 kB / 1.225 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.2587, allocations: 4 kB / 1.225 GB, free: 8.586 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.438e-05/0.2588, allocations: 7.984 kB / 1.225 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.235e-05/0.2588, allocations: 11.98 kB / 1.225 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.2588, allocations: 7.938 kB / 1.225 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.953e-05/0.2589, allocations: 105.2 kB / 1.226 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2589, allocations: 3.938 kB / 1.226 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001992/0.2591, allocations: 16 kB / 1.226 GB, free: 8.438 MB / 0.9825 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004758/0.2596, allocations: 0.7124 MB / 1.226 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001908/0.2598, allocations: 55.97 kB / 1.226 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.2598, allocations: 0 / 1.226 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.912e-05/0.2599, allocations: 31.91 kB / 1.226 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002239/0.2601, allocations: 13.06 kB / 1.226 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001359/0.2615, allocations: 1.428 MB / 1.228 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.2618, allocations: 0.6924 MB / 1.228 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.607e-05/0.2618, allocations: 8.234 kB / 1.228 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.871e-05/0.2619, allocations: 23.44 kB / 1.228 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.2619, allocations: 0 / 1.228 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.707/1.969, allocations: 2.079 MB / 1.23 GB, free: 3.414 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/16.87, allocations: 14.58 kB / 1.23 GB, free: 3.402 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)