Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_10_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.0009204/0.0009233, allocations: 91.84 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.005271/0.005271, allocations: 170 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.274/1.274, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.446/2.446, allocations: 437.8 MB / 0.7121 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003155/0.0003154, allocations: 8 kB / 0.873 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5515/0.5518, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001822/0.5537, allocations: 1.381 MB / 1.024 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000701/0.5544, allocations: 447 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.12e-05/0.5545, allocations: 0 / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.207e-05/0.5545, allocations: 3.938 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.362e-05/0.5546, allocations: 23.78 kB / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001584/0.5547, allocations: 23.98 kB / 1.025 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.757e-05/0.5549, allocations: 67.78 kB / 1.025 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.555, allocations: 35.88 kB / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.5551, allocations: 31.8 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.099e-05/0.5552, allocations: 27.84 kB / 1.025 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.882e-05/0.5552, allocations: 4 kB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.44e-05/0.5552, allocations: 4 kB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.865e-05/0.5552, allocations: 7.922 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.138e-05/0.5553, allocations: 57.5 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.96e-05/0.5554, allocations: 81.98 kB / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.5554, allocations: 0 / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.092e-06/0.5554, allocations: 0 / 1.025 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.5554, allocations: 0 / 1.025 GB, free: 13.67 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.0004631/0.5559, allocations: 379.3 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.5559, allocations: 8.031 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.051e-05/0.556, allocations: 42.73 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.209e-05/0.556, allocations: 8.844 kB / 1.026 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.5561, allocations: 176.2 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.5562, allocations: 8.375 kB / 1.026 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.5562, allocations: 384 / 1.026 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.5564, allocations: 95.5 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.5564, allocations: 4 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.5564, allocations: 7.984 kB / 1.026 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.5564, allocations: 0 / 1.026 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.5566, allocations: 63.84 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004643/0.5571, allocations: 336.6 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001377/0.5572, allocations: 54.59 kB / 1.026 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.976e-05/0.5573, allocations: 36.94 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.5574, allocations: 3.938 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.5574, allocations: 34.56 kB / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.5574, allocations: 0 / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.000356/0.5577, allocations: 117.5 kB / 1.027 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.5578, allocations: 77.11 kB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.5579, allocations: 128.1 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.5579, allocations: 33.64 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.007e-05/0.558, allocations: 100 kB / 1.027 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.558, allocations: 11.89 kB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.419e-05/0.558, allocations: 9.719 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.99e-05/0.5582, allocations: 330.8 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.678e-05/0.5582, allocations: 27.98 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.775e-05/0.5583, allocations: 37.7 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.5585, allocations: 60.98 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.5585, allocations: 0 / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002102/0.5587, allocations: 93.58 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.5587, allocations: 8 kB / 1.027 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.5588, allocations: 0 / 1.027 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.756e-06/0.5588, allocations: 7.938 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.904e-05/0.5589, allocations: 11.98 kB / 1.027 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.5589, allocations: 0 / 1.027 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.989e-05/0.559, allocations: 23.86 kB / 1.028 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.559, allocations: 0 / 1.028 GB, free: 11.13 MB / 0.7794 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.141e-05/0.5591, allocations: 117.8 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.027e-05/0.5591, allocations: 11.89 kB / 1.028 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.698e-05/0.5592, allocations: 12.25 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.5592, allocations: 0 / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.5592, allocations: 0 / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.5592, allocations: 3.938 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/0.5594, allocations: 189.6 kB / 1.028 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.5594, allocations: 0 / 1.028 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.205e-05/0.5594, allocations: 11.98 kB / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.5595, allocations: 0 / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.5595, allocations: 8 kB / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.5595, allocations: 0 / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.5595, allocations: 0 / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002418/0.5597, allocations: 195.2 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.235e-05/0.5598, allocations: 81.02 kB / 1.028 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.5598, allocations: 11.94 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.5599, allocations: 15.98 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.126e-05/0.56, allocations: 7.984 kB / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.56, allocations: 8 kB / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.118e-05/0.5601, allocations: 107.2 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5601, allocations: 0 / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002243/0.5603, allocations: 8 kB / 1.028 GB, free: 10.26 MB / 0.7794 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.0004884/0.5608, allocations: 0.7321 MB / 1.029 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002013/0.561, allocations: 63.97 kB / 1.029 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.561, allocations: 0 / 1.029 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.889e-05/0.5611, allocations: 31.97 kB / 1.029 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.5614, allocations: 8.5 kB / 1.029 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.5628, allocations: 1.481 MB / 1.031 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.5631, allocations: 0.6965 MB / 1.031 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.853e-05/0.5631, allocations: 0 / 1.031 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.566e-05/0.5632, allocations: 27.42 kB / 1.031 GB, free: 7.098 MB / 0.7794 GB Notification: Performance of SimCode: time 4.61e-07/0.5632, allocations: 4 kB / 1.031 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02487/0.5881, allocations: 1.735 MB / 1.033 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/0.5883, allocations: 225.9 kB / 1.033 GB, free: 5.293 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.721/2.31, allocations: 7.172 kB / 1.033 GB, free: 5.289 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)