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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001321/0.001321, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001181/0.001181, allocations: 189.8 kB / 16.25 MB, free: 6.637 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.22/1.22, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.441/2.441, allocations: 461.9 MB / 0.7344 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 63.23 kB / 0.8987 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.2237, allocations: 157.4 MB / 1.052 GB, free: 8.648 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002543/0.2263, allocations: 1.742 MB / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006256/0.227, allocations: 454.7 kB / 1.055 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.214e-05/0.227, allocations: 4 kB / 1.055 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.236e-05/0.2271, allocations: 0 / 1.055 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.849e-05/0.2271, allocations: 19.84 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001486/0.2273, allocations: 19.98 kB / 1.055 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.719e-05/0.2274, allocations: 79.72 kB / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.2275, allocations: 23.98 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.103e-05/0.2276, allocations: 39.84 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.651e-05/0.2277, allocations: 39.84 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.824e-05/0.2277, allocations: 8 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.249e-05/0.2277, allocations: 4 kB / 1.055 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.422e-05/0.2278, allocations: 19.92 kB / 1.055 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.855e-05/0.2278, allocations: 39.78 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001079/0.2279, allocations: 79.98 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.2279, allocations: 0 / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2279, allocations: 0 / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.2279, allocations: 0 / 1.055 GB, free: 6.07 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.0004705/0.2284, allocations: 399.1 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2285, allocations: 8.625 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.17e-05/0.2285, allocations: 38.75 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.2285, allocations: 8.844 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.2286, allocations: 180.2 kB / 1.056 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.2287, allocations: 4.375 kB / 1.056 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.2287, allocations: 4.375 kB / 1.056 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001864/0.2289, allocations: 99.42 kB / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.2289, allocations: 3.938 kB / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.2289, allocations: 4 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.2289, allocations: 0 / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.2291, allocations: 47.97 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004176/0.2295, allocations: 332.6 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.2296, allocations: 46.56 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.394e-05/0.2297, allocations: 32.94 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.2297, allocations: 0 / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.2298, allocations: 34.56 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 8.41e-07/0.2298, allocations: 0 / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0003008/0.2301, allocations: 109.6 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.2301, allocations: 81.11 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.646e-05/0.2302, allocations: 132.2 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.2302, allocations: 25.7 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.974e-05/0.2303, allocations: 100.1 kB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.2303, allocations: 11.81 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.939e-05/0.2304, allocations: 21.7 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.298e-05/0.2304, allocations: 322.8 kB / 1.057 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.442e-05/0.2305, allocations: 23.98 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.839e-05/0.2306, allocations: 41.69 kB / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.2307, allocations: 48.88 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2307, allocations: 128 / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000182/0.2309, allocations: 97.5 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.231, allocations: 8 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.231, allocations: 0 / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.749e-06/0.231, allocations: 0 / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.383e-05/0.2311, allocations: 11.98 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.2311, allocations: 0 / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.406e-05/0.2312, allocations: 15.92 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.2312, allocations: 4 kB / 1.057 GB, free: 3.566 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 7.551e-05/0.2313, allocations: 115.4 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.11e-05/0.2313, allocations: 7.906 kB / 1.057 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.633e-05/0.2314, allocations: 8.25 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.2314, allocations: 0 / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.2314, allocations: 0 / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.2314, allocations: 11.92 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.2315, allocations: 189.6 kB / 1.057 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2316, allocations: 4 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.137e-05/0.2316, allocations: 15.92 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.2316, allocations: 0 / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.2317, allocations: 3.938 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2317, allocations: 0 / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.2317, allocations: 7.984 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.2319, allocations: 175.4 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.354e-05/0.2319, allocations: 93 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.2319, allocations: 0 / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.232, allocations: 15.98 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/0.2321, allocations: 7.984 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.2321, allocations: 3.938 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.032e-05/0.2322, allocations: 106 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2322, allocations: 0 / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002354/0.2324, allocations: 12 kB / 1.058 GB, free: 2.711 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.0004199/0.2328, allocations: 0.7162 MB / 1.059 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001834/0.233, allocations: 55.95 kB / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.233, allocations: 0 / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.296e-05/0.2331, allocations: 31.92 kB / 1.059 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.2334, allocations: 7.938 kB / 1.059 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.2347, allocations: 1.444 MB / 1.06 GB, free: 360 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.2349, allocations: 0.6885 MB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.202e-05/0.235, allocations: 7.984 kB / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.283e-05/0.235, allocations: 27.42 kB / 1.061 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.235, allocations: 3.938 kB / 1.061 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6793/0.9144, allocations: 1.879 MB / 1.063 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002356/0.9146, allocations: 229.9 kB / 1.063 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.729, allocations: 1.125 kB / 1.063 GB, free: 13.64 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)