Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_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.0007466/0.0007467, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.004245/0.004245, allocations: 172.8 kB / 16.26 MB, free: 6.613 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.284/1.284, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.549/2.549, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000295/0.0002951, allocations: 7.625 kB / 0.9029 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2379, allocations: 159.6 MB / 1.059 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001948/0.2399, allocations: 1.391 MB / 1.06 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000631/0.2405, allocations: 454.8 kB / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.276e-05/0.2406, allocations: 0 / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.789e-05/0.2406, allocations: 0 / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.906e-05/0.2407, allocations: 11.88 kB / 1.061 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001489/0.2409, allocations: 27.97 kB / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.806e-05/0.241, allocations: 79.7 kB / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.2411, allocations: 23.98 kB / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.943e-05/0.2412, allocations: 27.86 kB / 1.061 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.28e-05/0.2413, allocations: 35.83 kB / 1.061 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.587e-05/0.2413, allocations: 0 / 1.061 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.282e-05/0.2413, allocations: 4 kB / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.63e-05/0.2413, allocations: 3.938 kB / 1.061 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.268e-05/0.2414, allocations: 57.5 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.794e-05/0.2415, allocations: 79.95 kB / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2415, allocations: 4 kB / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2415, allocations: 0 / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.2415, allocations: 0 / 1.061 GB, free: 2.652 MB / 0.8106 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.0004448/0.242, allocations: 387.2 kB / 1.061 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.242, allocations: 11.97 kB / 1.061 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.745e-05/0.2421, allocations: 46.67 kB / 1.061 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.2421, allocations: 12.84 kB / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.2422, allocations: 176.2 kB / 1.062 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.2422, allocations: 4.375 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.447e-05/0.2423, allocations: 4.375 kB / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001983/0.2425, allocations: 99.44 kB / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.072e-06/0.2425, allocations: 0 / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.2425, allocations: 0 / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.2425, allocations: 4 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.2427, allocations: 59.95 kB / 1.062 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004327/0.2431, allocations: 336.6 kB / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.2433, allocations: 50.56 kB / 1.062 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.426e-05/0.2434, allocations: 32.94 kB / 1.062 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.2434, allocations: 7.984 kB / 1.062 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.2434, allocations: 34.56 kB / 1.062 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.2434, allocations: 0 / 1.062 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0003277/0.2437, allocations: 121.6 kB / 1.062 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.2438, allocations: 77.11 kB / 1.062 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.125e-05/0.2439, allocations: 128.6 kB / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.2439, allocations: 29.7 kB / 1.062 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.954e-05/0.244, allocations: 99.98 kB / 1.063 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.244, allocations: 11.89 kB / 1.063 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.558e-05/0.244, allocations: 13.72 kB / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.725e-05/0.2441, allocations: 326.8 kB / 1.063 GB, free: 392 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.306e-05/0.2442, allocations: 31.98 kB / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.233e-05/0.2443, allocations: 41.7 kB / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001443/0.2445, allocations: 56.86 kB / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2445, allocations: 0 / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001983/0.2447, allocations: 97.52 kB / 1.063 GB, free: 148 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.2447, allocations: 4 kB / 1.063 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2447, allocations: 0 / 1.063 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.278e-06/0.2447, allocations: 0 / 1.063 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.438e-05/0.2448, allocations: 15.98 kB / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.2448, allocations: 7.938 kB / 1.063 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.064e-05/0.2449, allocations: 15.92 kB / 1.063 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.2449, allocations: 4 kB / 1.063 GB, free: 100 kB / 0.8106 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 8.668e-05/0.245, allocations: 113.8 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.995e-05/0.2451, allocations: 11.91 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.632e-05/0.2451, allocations: 12.23 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.2451, allocations: 192 / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2451, allocations: 192 / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.2451, allocations: 7.922 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.2453, allocations: 193.6 kB / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2453, allocations: 0 / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.108e-05/0.2454, allocations: 11.94 kB / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.026e-05/0.2454, allocations: 7.984 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.2454, allocations: 3.938 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2454, allocations: 4 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2454, allocations: 0 / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002248/0.2457, allocations: 187.4 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.61e-05/0.2457, allocations: 81.02 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/0.2457, allocations: 8 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.2458, allocations: 15.98 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.123e-05/0.2459, allocations: 7.984 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.2459, allocations: 3.938 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.546e-05/0.246, allocations: 111.2 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.246, allocations: 0 / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002166/0.2462, allocations: 8 kB / 1.064 GB, free: 15.23 MB / 0.8262 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.0004546/0.2466, allocations: 0.7241 MB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001968/0.2469, allocations: 63.97 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2469, allocations: 0 / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.464e-05/0.247, allocations: 31.92 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.2472, allocations: 14.03 kB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.2486, allocations: 1.472 MB / 1.066 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002063/0.2488, allocations: 0.6926 MB / 1.067 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.771e-05/0.2488, allocations: 3.984 kB / 1.067 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.159e-05/0.2489, allocations: 23.44 kB / 1.067 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of SimCode: time 1.483e-06/0.2489, allocations: 7.938 kB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7222/0.9711, allocations: 1.744 MB / 1.069 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000217/0.9714, allocations: 234.1 kB / 1.069 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.938/2.909, allocations: 0 / 1.069 GB, free: 10.25 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)