Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.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.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis",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.466/1.466, allocations: 252 MB / 267 MB, free: 10.98 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.001064/0.001064, allocations: 188 kB / 326.6 MB, free: 2.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.909/1.909, allocations: 205.4 MB / 0.5777 GB, free: 20.29 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.000793/0.0007933, allocations: 80.09 kB / 0.6822 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003408, allocations: 9.219 kB / 0.7964 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2429, allocations: 106.3 MB / 0.9003 GB, free: 63.83 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.003146/0.2461, allocations: 2.543 MB / 0.9028 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001446/0.2476, allocations: 0.8933 MB / 0.9036 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002376/0.2479, allocations: 15.94 kB / 0.9037 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001805/0.2481, allocations: 43.58 kB / 0.9037 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.2482, allocations: 67.42 kB / 0.9038 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004187/0.2486, allocations: 154.4 kB / 0.9039 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0003143/0.249, allocations: 435.3 kB / 0.9043 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002676/0.2492, allocations: 145 kB / 0.9045 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001658/0.2494, allocations: 123.2 kB / 0.9046 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.2496, allocations: 135.1 kB / 0.9047 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.751e-05/0.2496, allocations: 12 kB / 0.9047 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 3.566e-05/0.2497, allocations: 12 kB / 0.9047 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.751e-05/0.2497, allocations: 51.7 kB / 0.9048 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.208e-05/0.2498, allocations: 93.45 kB / 0.9049 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.00025/0.25, allocations: 363.4 kB / 0.9052 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.25, allocations: 0 / 0.9052 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.613e-06/0.25, allocations: 0 / 0.9052 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.096e-05/0.2501, allocations: 0 / 0.9052 GB, free: 58.74 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0009083/0.251, allocations: 0.6466 MB / 0.9059 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.251, allocations: 15.97 kB / 0.9059 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.437e-05/0.2511, allocations: 62.55 kB / 0.9059 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.751e-05/0.2512, allocations: 51.39 kB / 0.906 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004611/0.2516, allocations: 379.4 kB / 0.9063 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.2517, allocations: 20.66 kB / 0.9064 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.614e-05/0.2517, allocations: 31.91 kB / 0.9064 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005063/0.2522, allocations: 341.1 kB / 0.9067 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.2523, allocations: 0 / 0.9067 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.2523, allocations: 12 kB / 0.9067 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.2523, allocations: 8 kB / 0.9067 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004186/0.2527, allocations: 222.1 kB / 0.9069 GB, free: 56.85 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.254, allocations: 1.182 MB / 0.9081 GB, free: 55.59 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000537/0.2546, allocations: 239.3 kB / 0.9083 GB, free: 55.34 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/0.2548, allocations: 110.3 kB / 0.9084 GB, free: 55.23 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.113e-05/0.2548, allocations: 4.172 kB / 0.9084 GB, free: 55.23 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.2549, allocations: 42.75 kB / 0.9085 GB, free: 55.18 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=22): time 1.332e-06/0.2549, allocations: 0 / 0.9085 GB, free: 55.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22): time 0.000663/0.2555, allocations: 318.7 kB / 0.9088 GB, free: 54.87 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.2556, allocations: 106.8 kB / 0.9089 GB, free: 54.74 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.2559, allocations: 337.6 kB / 0.9092 GB, free: 54.4 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.958e-05/0.256, allocations: 33.7 kB / 0.9092 GB, free: 54.36 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.2561, allocations: 216.2 kB / 0.9094 GB, free: 54.15 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.242e-05/0.2562, allocations: 78.84 kB / 0.9095 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.178e-05/0.2562, allocations: 4 kB / 0.9095 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.2563, allocations: 346.8 kB / 0.9099 GB, free: 53.72 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.2565, allocations: 79.97 kB / 0.9099 GB, free: 53.64 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.2567, allocations: 139.7 kB / 0.9101 GB, free: 53.48 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.2569, allocations: 92.61 kB / 0.9102 GB, free: 53.39 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.2569, allocations: 4 kB / 0.9102 GB, free: 53.38 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004814/0.2574, allocations: 279.3 kB / 0.9104 GB, free: 53.11 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2574, allocations: 8.031 kB / 0.9104 GB, free: 53.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.2574, allocations: 4 kB / 0.9104 GB, free: 53.09 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.2575, allocations: 7.953 kB / 0.9104 GB, free: 53.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/0.2577, allocations: 55.91 kB / 0.9105 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.2577, allocations: 4 kB / 0.9105 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/0.2579, allocations: 35.81 kB / 0.9105 GB, free: 52.99 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.2579, allocations: 12 kB / 0.9105 GB, free: 52.98 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001528/0.2581, allocations: 165.7 kB / 0.9107 GB, free: 52.81 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.966e-05/0.2581, allocations: 35.53 kB / 0.9107 GB, free: 52.77 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.85e-05/0.2582, allocations: 39.36 kB / 0.9108 GB, free: 52.73 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.2582, allocations: 4 kB / 0.9108 GB, free: 52.73 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.2583, allocations: 3.953 kB / 0.9108 GB, free: 52.72 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.2583, allocations: 3.984 kB / 0.9108 GB, free: 52.72 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003473/0.2586, allocations: 389.3 kB / 0.9112 GB, free: 52.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2586, allocations: 15.92 kB / 0.9112 GB, free: 52.27 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002103/0.2588, allocations: 35.98 kB / 0.9112 GB, free: 52.24 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.2589, allocations: 0 / 0.9112 GB, free: 52.24 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.2589, allocations: 8 kB / 0.9112 GB, free: 52.23 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2589, allocations: 0 / 0.9112 GB, free: 52.23 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2589, allocations: 3.984 kB / 0.9112 GB, free: 52.23 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006251/0.2595, allocations: 434 kB / 0.9116 GB, free: 51.79 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.2597, allocations: 128.6 kB / 0.9118 GB, free: 51.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.978e-05/0.2597, allocations: 8 kB / 0.9118 GB, free: 51.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.2599, allocations: 23.97 kB / 0.9118 GB, free: 51.61 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.768e-05/0.26, allocations: 15.97 kB / 0.9118 GB, free: 51.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.26, allocations: 16 kB / 0.9118 GB, free: 51.58 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001959/0.2602, allocations: 239.1 kB / 0.912 GB, free: 51.35 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2602, allocations: 0 / 0.912 GB, free: 51.35 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002999/0.2605, allocations: 71.72 kB / 0.9121 GB, free: 51.28 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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.0007727/0.2613, allocations: 0.9691 MB / 0.9131 GB, free: 50.29 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004542/0.2617, allocations: 200.2 kB / 0.9132 GB, free: 50.09 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2618, allocations: 4 kB / 0.9133 GB, free: 50.09 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001657/0.2619, allocations: 95.91 kB / 0.9133 GB, free: 49.99 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005712/0.2625, allocations: 65.39 kB / 0.9134 GB, free: 49.93 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002807/0.2653, allocations: 2.035 MB / 0.9154 GB, free: 47.82 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.2656, allocations: 0.7953 MB / 0.9162 GB, free: 47 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001597/0.2657, allocations: 38.95 kB / 0.9162 GB, free: 46.96 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.2659, allocations: 123.4 kB / 0.9163 GB, free: 46.84 MB / 0.6042 GB Notification: Performance of SimCode: time 6.92e-07/0.2659, allocations: 0 / 0.9163 GB, free: 46.84 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.2847, allocations: 6.228 MB / 0.9224 GB, free: 40.79 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/0.2849, allocations: 203 kB / 0.9226 GB, free: 40.55 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.176/2.461, allocations: 0 / 0.9226 GB, free: 40.55 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)