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.0009727/0.0009728, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.007141/0.007141, allocations: 169.4 kB / 16.26 MB, free: 6.652 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.245/1.245, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.483/2.483, allocations: 443.4 MB / 0.7176 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003169/0.0003169, allocations: 9.031 kB / 0.8797 GB, free: 42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2414, allocations: 155.2 MB / 1.031 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001677/0.2431, allocations: 1.388 MB / 1.033 GB, free: 2.934 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0006095/0.2438, allocations: 450.8 kB / 1.033 GB, free: 2.488 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.85e-05/0.2438, allocations: 4 kB / 1.033 GB, free: 2.484 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.152e-05/0.2438, allocations: 3.938 kB / 1.033 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.74e-05/0.2439, allocations: 11.86 kB / 1.033 GB, free: 2.469 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001462/0.2441, allocations: 31.91 kB / 1.033 GB, free: 2.438 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.222e-05/0.2442, allocations: 75.72 kB / 1.033 GB, free: 2.363 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.2443, allocations: 32.27 kB / 1.033 GB, free: 2.332 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.532e-05/0.2444, allocations: 31.84 kB / 1.033 GB, free: 2.301 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.655e-05/0.2444, allocations: 23.86 kB / 1.033 GB, free: 2.277 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.674e-05/0.2445, allocations: 4 kB / 1.033 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.087e-05/0.2445, allocations: 0 / 1.033 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.085e-05/0.2445, allocations: 11.92 kB / 1.033 GB, free: 2.262 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.224e-05/0.2446, allocations: 65.42 kB / 1.033 GB, free: 2.191 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.755e-05/0.2447, allocations: 75.69 kB / 1.033 GB, free: 2.117 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2447, allocations: 0 / 1.033 GB, free: 2.117 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2447, allocations: 0 / 1.033 GB, free: 2.117 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.2447, allocations: 0 / 1.033 GB, free: 2.117 MB / 0.7794 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.0004512/0.2452, allocations: 383.3 kB / 1.034 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.2452, allocations: 8.031 kB / 1.034 GB, free: 1.688 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.418e-05/0.2452, allocations: 34.75 kB / 1.034 GB, free: 1.645 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.056e-05/0.2453, allocations: 16.83 kB / 1.034 GB, free: 1.629 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.2454, allocations: 180.2 kB / 1.034 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.587e-06/0.2454, allocations: 384 / 1.034 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.2454, allocations: 4.375 kB / 1.034 GB, free: 1.41 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/0.2456, allocations: 99.44 kB / 1.034 GB, free: 1.301 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.38e-06/0.2457, allocations: 4 kB / 1.034 GB, free: 1.297 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.2457, allocations: 0 / 1.034 GB, free: 1.297 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.2457, allocations: 4 kB / 1.034 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.2459, allocations: 55.95 kB / 1.034 GB, free: 1.238 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004351/0.2463, allocations: 336.6 kB / 1.034 GB, free: 0.8594 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001395/0.2464, allocations: 50.56 kB / 1.035 GB, free: 0.8008 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.463e-05/0.2465, allocations: 36.94 kB / 1.035 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.2466, allocations: 0 / 1.035 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.2466, allocations: 34.59 kB / 1.035 GB, free: 0.7188 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 3.246e-06/0.2466, allocations: 0 / 1.035 GB, free: 0.7188 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0003365/0.2469, allocations: 121.5 kB / 1.035 GB, free: 0.5938 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.247, allocations: 81.11 kB / 1.035 GB, free: 0.4961 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.431e-05/0.2471, allocations: 128.9 kB / 1.035 GB, free: 368 kB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.2471, allocations: 29.7 kB / 1.035 GB, free: 332 kB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.332e-05/0.2472, allocations: 103.9 kB / 1.035 GB, free: 224 kB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/0.2472, allocations: 7.891 kB / 1.035 GB, free: 216 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.772e-05/0.2472, allocations: 17.72 kB / 1.035 GB, free: 192 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2473, allocations: 322.8 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.553e-05/0.2474, allocations: 27.98 kB / 1.035 GB, free: 15.84 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.205e-05/0.2475, allocations: 41.7 kB / 1.035 GB, free: 15.79 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001513/0.2477, allocations: 64.8 kB / 1.035 GB, free: 15.72 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2477, allocations: 0 / 1.035 GB, free: 15.72 MB / 0.795 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002045/0.2479, allocations: 89.58 kB / 1.036 GB, free: 15.63 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.2479, allocations: 4 kB / 1.036 GB, free: 15.62 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.2479, allocations: 4 kB / 1.036 GB, free: 15.62 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.546e-06/0.248, allocations: 4 kB / 1.036 GB, free: 15.62 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.611e-05/0.2481, allocations: 11.98 kB / 1.036 GB, free: 15.61 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.097e-06/0.2481, allocations: 0 / 1.036 GB, free: 15.61 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.707e-05/0.2482, allocations: 19.92 kB / 1.036 GB, free: 15.59 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.2482, allocations: 0 / 1.036 GB, free: 15.59 MB / 0.795 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.057e-05/0.2483, allocations: 127.4 kB / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.084e-05/0.2483, allocations: 11.89 kB / 1.036 GB, free: 15.44 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.46e-05/0.2483, allocations: 20.23 kB / 1.036 GB, free: 15.42 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.2484, allocations: 0 / 1.036 GB, free: 15.42 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.2484, allocations: 192 / 1.036 GB, free: 15.42 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2484, allocations: 7.938 kB / 1.036 GB, free: 15.41 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.2485, allocations: 189.6 kB / 1.036 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.2486, allocations: 0 / 1.036 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.013e-05/0.2486, allocations: 8 kB / 1.036 GB, free: 15.17 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2486, allocations: 0 / 1.036 GB, free: 15.17 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/0.2487, allocations: 7.984 kB / 1.036 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.2487, allocations: 0 / 1.036 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2487, allocations: 0 / 1.036 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002345/0.2489, allocations: 187.4 kB / 1.036 GB, free: 14.96 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.716e-05/0.249, allocations: 96.89 kB / 1.036 GB, free: 14.85 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.108e-05/0.249, allocations: 4 kB / 1.036 GB, free: 14.84 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.2491, allocations: 19.92 kB / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.55e-05/0.2492, allocations: 7.984 kB / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.2492, allocations: 3.938 kB / 1.036 GB, free: 14.81 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.994e-05/0.2492, allocations: 99.27 kB / 1.036 GB, free: 14.71 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2492, allocations: 0 / 1.036 GB, free: 14.71 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002255/0.2495, allocations: 12 kB / 1.036 GB, free: 14.7 MB / 0.795 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.0004719/0.2499, allocations: 0.7241 MB / 1.037 GB, free: 13.95 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001989/0.2502, allocations: 63.91 kB / 1.037 GB, free: 13.89 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2502, allocations: 3.938 kB / 1.037 GB, free: 13.88 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.633e-05/0.2503, allocations: 27.98 kB / 1.037 GB, free: 13.86 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.2505, allocations: 15.92 kB / 1.037 GB, free: 13.84 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.252, allocations: 1.471 MB / 1.039 GB, free: 12.3 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002081/0.2522, allocations: 0.6887 MB / 1.039 GB, free: 11.58 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.085e-05/0.2522, allocations: 8.172 kB / 1.039 GB, free: 11.57 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.938e-05/0.2523, allocations: 23.44 kB / 1.039 GB, free: 11.55 MB / 0.795 GB Notification: Performance of SimCode: time 2.7e-07/0.2523, allocations: 0 / 1.039 GB, free: 11.55 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8391/1.091, allocations: 1.745 MB / 1.041 GB, free: 9.988 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002366/1.092, allocations: 242.8 kB / 1.041 GB, free: 9.727 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.656/2.747, allocations: 0 / 1.041 GB, free: 9.727 MB / 0.795 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)