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.00123/0.001231, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001162/0.001162, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.211/1.211, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.544/2.544, allocations: 461.9 MB / 0.7342 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 68.73 kB / 0.8985 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2422, allocations: 157.4 MB / 1.052 GB, free: 8.156 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002812/0.245, allocations: 1.734 MB / 1.054 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006804/0.2457, allocations: 450.8 kB / 1.054 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.564e-05/0.2458, allocations: 0 / 1.054 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.631e-05/0.2458, allocations: 3.938 kB / 1.054 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.818e-05/0.2459, allocations: 19.84 kB / 1.054 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001479/0.2461, allocations: 19.98 kB / 1.054 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.662e-05/0.2462, allocations: 79.72 kB / 1.054 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.2463, allocations: 27.97 kB / 1.054 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.57e-05/0.2464, allocations: 23.92 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.127e-05/0.2465, allocations: 35.84 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.2465, allocations: 4 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.828e-05/0.2465, allocations: 8 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.475e-05/0.2466, allocations: 19.84 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.406e-05/0.2466, allocations: 31.8 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001073/0.2467, allocations: 83.97 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.2467, allocations: 0 / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.32e-07/0.2467, allocations: 0 / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.2468, allocations: 0 / 1.055 GB, free: 5.609 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.0004934/0.2473, allocations: 391.2 kB / 1.055 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.2473, allocations: 15.97 kB / 1.055 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.006e-05/0.2473, allocations: 42.67 kB / 1.055 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.302e-05/0.2474, allocations: 8.844 kB / 1.055 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.2475, allocations: 172.2 kB / 1.055 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.2475, allocations: 4.375 kB / 1.055 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.2475, allocations: 4.375 kB / 1.055 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002032/0.2478, allocations: 103.4 kB / 1.055 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.2478, allocations: 3.984 kB / 1.055 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.2478, allocations: 8 kB / 1.055 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.2478, allocations: 0 / 1.055 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001649/0.248, allocations: 47.97 kB / 1.055 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004499/0.2484, allocations: 328.6 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.2486, allocations: 50.56 kB / 1.056 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.294e-05/0.2487, allocations: 28.94 kB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.2487, allocations: 4 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.2487, allocations: 34.59 kB / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.2487, allocations: 0 / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0003337/0.2491, allocations: 105.5 kB / 1.056 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.2491, allocations: 77.11 kB / 1.056 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.55e-05/0.2492, allocations: 129.2 kB / 1.056 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.2492, allocations: 33.7 kB / 1.056 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.872e-05/0.2493, allocations: 100.1 kB / 1.056 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.2493, allocations: 11.8 kB / 1.056 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.109e-05/0.2494, allocations: 17.72 kB / 1.056 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.615e-05/0.2495, allocations: 334.8 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.145e-05/0.2496, allocations: 19.98 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.437e-05/0.2497, allocations: 41.64 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001444/0.2498, allocations: 48.83 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2498, allocations: 0 / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001997/0.25, allocations: 89.59 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.25, allocations: 4 kB / 1.057 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.2501, allocations: 4 kB / 1.057 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.177e-06/0.2501, allocations: 0 / 1.057 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.773e-05/0.2502, allocations: 4 kB / 1.057 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.2502, allocations: 7.984 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.867e-05/0.2503, allocations: 7.938 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.2503, allocations: 11.98 kB / 1.057 GB, free: 3.109 MB / 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.417e-05/0.2504, allocations: 125.7 kB / 1.057 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.164e-05/0.2504, allocations: 7.906 kB / 1.057 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.776e-05/0.2504, allocations: 8.25 kB / 1.057 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.2505, allocations: 0 / 1.057 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2505, allocations: 0 / 1.057 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2505, allocations: 3.938 kB / 1.057 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.2506, allocations: 185.6 kB / 1.057 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2507, allocations: 4.125 kB / 1.057 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.888e-05/0.2507, allocations: 15.98 kB / 1.057 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.2507, allocations: 4 kB / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.2508, allocations: 0 / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.2508, allocations: 0 / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2508, allocations: 0 / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002295/0.251, allocations: 187.3 kB / 1.057 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.621e-05/0.2511, allocations: 85.25 kB / 1.057 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.2511, allocations: 0 / 1.057 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.2512, allocations: 15.98 kB / 1.057 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.143e-05/0.2513, allocations: 15.95 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.2513, allocations: 3.938 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.071e-05/0.2513, allocations: 103.2 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2513, allocations: 0 / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002315/0.2516, allocations: 12 kB / 1.058 GB, free: 2.25 MB / 0.8106 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.0004703/0.2521, allocations: 0.7124 MB / 1.058 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000185/0.2522, allocations: 55.89 kB / 1.058 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2523, allocations: 4 kB / 1.058 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.993e-05/0.2524, allocations: 27.98 kB / 1.058 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.2526, allocations: 3.938 kB / 1.058 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001431/0.2541, allocations: 1.445 MB / 1.06 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.2543, allocations: 0.6926 MB / 1.06 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.348e-05/0.2544, allocations: 4 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.434e-05/0.2544, allocations: 19.42 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of SimCode: time 2.71e-07/0.2544, allocations: 0 / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.318/1.573, allocations: 1.812 MB / 1.062 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002286/1.573, allocations: 240.4 kB / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.618/3.191, allocations: 2.391 kB / 1.063 GB, free: 13.24 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)