Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.44/1.44, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001453/0.001453, allocations: 187.3 kB / 326.5 MB, free: 2.266 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.172/2.172, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 94.47 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004175/0.0004175, allocations: 8.5 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3207, allocations: 106.3 MB / 0.9002 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2138/0.5346, allocations: 133.2 MB / 1.03 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003669/0.5351, allocations: 99.86 kB / 1.03 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004982/0.5401, allocations: 1.515 MB / 1.032 GB, free: 8.934 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.627e-06/0.5401, allocations: 3.938 kB / 1.032 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.34e-05/0.5402, allocations: 4 kB / 1.032 GB, free: 8.926 MB / 0.6823 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.0007576/0.5409, allocations: 390.9 kB / 1.032 GB, free: 8.496 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 7.364e-05/0.541, allocations: 12.03 kB / 1.032 GB, free: 8.484 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.833e-05/0.5411, allocations: 42.48 kB / 1.032 GB, free: 8.434 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.661e-05/0.5412, allocations: 7.906 kB / 1.032 GB, free: 8.426 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.5414, allocations: 179 kB / 1.032 GB, free: 8.211 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.5415, allocations: 4 kB / 1.032 GB, free: 8.207 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.473e-05/0.5415, allocations: 8 kB / 1.032 GB, free: 8.199 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.5418, allocations: 91.31 kB / 1.032 GB, free: 8.098 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.5418, allocations: 0 / 1.032 GB, free: 8.098 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.5418, allocations: 0 / 1.032 GB, free: 8.098 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.5419, allocations: 3.984 kB / 1.032 GB, free: 8.094 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.5421, allocations: 59.97 kB / 1.033 GB, free: 8.035 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007542/0.5429, allocations: 332.6 kB / 1.033 GB, free: 7.66 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.543, allocations: 50.56 kB / 1.033 GB, free: 7.602 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.5431, allocations: 4 kB / 1.033 GB, free: 7.598 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.678e-05/0.5431, allocations: 30.56 kB / 1.033 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 1.603e-06/0.5431, allocations: 0 / 1.033 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.0003901/0.5435, allocations: 121.6 kB / 1.033 GB, free: 7.434 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.031e-05/0.5436, allocations: 85.11 kB / 1.033 GB, free: 7.332 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001178/0.5437, allocations: 115 kB / 1.033 GB, free: 7.211 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.5438, allocations: 25.7 kB / 1.033 GB, free: 7.18 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.608e-05/0.5439, allocations: 104 kB / 1.033 GB, free: 7.074 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.794e-05/0.5439, allocations: 15.84 kB / 1.033 GB, free: 7.059 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-06/0.5439, allocations: 0 / 1.033 GB, free: 7.059 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001703/0.5441, allocations: 318.8 kB / 1.034 GB, free: 6.738 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.773e-05/0.5442, allocations: 23.98 kB / 1.034 GB, free: 6.715 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.303e-05/0.5443, allocations: 45.7 kB / 1.034 GB, free: 6.664 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.767e-05/0.5444, allocations: 32.72 kB / 1.034 GB, free: 6.633 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.5444, allocations: 0 / 1.034 GB, free: 6.633 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000235/0.5446, allocations: 105.5 kB / 1.034 GB, free: 6.523 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.5447, allocations: 4 kB / 1.034 GB, free: 6.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.5447, allocations: 4.125 kB / 1.034 GB, free: 6.516 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.5447, allocations: 7.953 kB / 1.034 GB, free: 6.508 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.5448, allocations: 11.98 kB / 1.034 GB, free: 6.496 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.5449, allocations: 0 / 1.034 GB, free: 6.496 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.943e-05/0.5449, allocations: 19.97 kB / 1.034 GB, free: 6.477 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.545, allocations: 4 kB / 1.034 GB, free: 6.473 MB / 0.6823 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 ($PRE.chiSwi.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001245/0.5451, allocations: 113.8 kB / 1.034 GB, free: 6.352 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.745e-05/0.5451, allocations: 7.906 kB / 1.034 GB, free: 6.344 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.404e-05/0.5452, allocations: 8.25 kB / 1.034 GB, free: 6.328 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.5452, allocations: 4 kB / 1.034 GB, free: 6.324 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.5452, allocations: 3.953 kB / 1.034 GB, free: 6.32 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.5452, allocations: 0 / 1.034 GB, free: 6.32 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002382/0.5455, allocations: 185.6 kB / 1.034 GB, free: 6.09 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.5455, allocations: 4 kB / 1.034 GB, free: 6.086 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.546e-05/0.5456, allocations: 15.98 kB / 1.034 GB, free: 6.07 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.5456, allocations: 0 / 1.034 GB, free: 6.07 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.5456, allocations: 0 / 1.034 GB, free: 6.07 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.5456, allocations: 3.938 kB / 1.034 GB, free: 6.066 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5456, allocations: 0 / 1.034 GB, free: 6.066 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002833/0.5459, allocations: 191.4 kB / 1.034 GB, free: 5.863 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 9.96e-05/0.546, allocations: 81.02 kB / 1.035 GB, free: 5.766 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.993e-05/0.5461, allocations: 11.98 kB / 1.035 GB, free: 5.754 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.5462, allocations: 8 kB / 1.035 GB, free: 5.746 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.313e-05/0.5463, allocations: 11.97 kB / 1.035 GB, free: 5.734 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.5463, allocations: 4 kB / 1.035 GB, free: 5.73 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 7.615e-05/0.5464, allocations: 109.9 kB / 1.035 GB, free: 5.625 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5464, allocations: 0 / 1.035 GB, free: 5.625 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002405/0.5466, allocations: 12 kB / 1.035 GB, free: 5.613 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006996/0.5473, allocations: 0.7202 MB / 1.035 GB, free: 4.867 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002351/0.5476, allocations: 63.95 kB / 1.035 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.5476, allocations: 0 / 1.035 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.66e-05/0.5477, allocations: 35.92 kB / 1.035 GB, free: 4.77 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.5479, allocations: 10.98 kB / 1.035 GB, free: 4.762 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001208/0.5492, allocations: 0.5879 MB / 1.036 GB, free: 4.129 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.5496, allocations: 0.7004 MB / 1.037 GB, free: 3.402 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 6.139e-05/0.5496, allocations: 12.17 kB / 1.037 GB, free: 3.391 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.794e-05/0.5497, allocations: 19.42 kB / 1.037 GB, free: 3.371 MB / 0.6823 GB Notification: Performance of SimCode: time 6.61e-07/0.5497, allocations: 0 / 1.037 GB, free: 3.371 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01385/0.5636, allocations: 1.705 MB / 1.038 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/0.5638, allocations: 224.2 kB / 1.039 GB, free: 1.629 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/2.348, allocations: 0 / 1.039 GB, free: 1.629 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)