Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.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.PIDHysteresisTimer,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer",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.431/1.431, allocations: 252 MB / 267 MB, free: 10.97 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.001162/0.001162, allocations: 187.2 kB / 326.6 MB, free: 2.219 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.949/1.949, allocations: 205.4 MB / 0.5776 GB, free: 20.2 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.0009767/0.0009771, allocations: 87.48 kB / 0.6823 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003844/0.0003846, allocations: 12.19 kB / 0.7964 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2464, allocations: 106.3 MB / 0.9003 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003309/0.2498, allocations: 2.678 MB / 0.9029 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002425/0.2523, allocations: 0.9478 MB / 0.9038 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005955/0.2529, allocations: 15.88 kB / 0.9039 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002798/0.2532, allocations: 51.52 kB / 0.9039 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.2535, allocations: 71.42 kB / 0.904 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000641/0.2541, allocations: 166.5 kB / 0.9041 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0004427/0.2546, allocations: 487.8 kB / 0.9046 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000399/0.255, allocations: 179.7 kB / 0.9048 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002157/0.2552, allocations: 143.2 kB / 0.9049 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.2554, allocations: 147.1 kB / 0.905 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.591e-05/0.2555, allocations: 12 kB / 0.9051 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 4.035e-05/0.2555, allocations: 12 kB / 0.9051 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.542e-05/0.2556, allocations: 63.62 kB / 0.9051 GB, free: 58.83 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.909e-05/0.2557, allocations: 101.5 kB / 0.9052 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003379/0.256, allocations: 419.2 kB / 0.9056 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.256, allocations: 4 kB / 0.9056 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.645e-06/0.2561, allocations: 0 / 0.9056 GB, free: 58.31 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.647e-06/0.2561, allocations: 0 / 0.9056 GB, free: 58.31 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001138/0.2572, allocations: 0.6958 MB / 0.9063 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.2573, allocations: 8.031 kB / 0.9063 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.026e-05/0.2574, allocations: 70.53 kB / 0.9064 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.381e-05/0.2575, allocations: 59.3 kB / 0.9064 GB, free: 57.42 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005596/0.258, allocations: 399.6 kB / 0.9068 GB, free: 56.99 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.223e-05/0.2581, allocations: 33 kB / 0.9068 GB, free: 56.96 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.396e-05/0.2581, allocations: 47.88 kB / 0.9069 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006142/0.2588, allocations: 393.6 kB / 0.9073 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.2588, allocations: 0 / 0.9073 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.475e-05/0.2588, allocations: 16 kB / 0.9073 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.2588, allocations: 12 kB / 0.9073 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005134/0.2594, allocations: 267.8 kB / 0.9076 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.2609, allocations: 1.324 MB / 0.9088 GB, free: 54.81 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006293/0.2616, allocations: 309.5 kB / 0.9091 GB, free: 54.5 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.2618, allocations: 140.8 kB / 0.9093 GB, free: 54.36 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.2618, allocations: 0 / 0.9093 GB, free: 54.36 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000351/0.2622, allocations: 177.6 kB / 0.9094 GB, free: 54.18 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=33): time 1.443e-06/0.2622, allocations: 0 / 0.9094 GB, free: 54.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=33): time 0.0007843/0.263, allocations: 389.7 kB / 0.9098 GB, free: 53.79 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.2631, allocations: 89.09 kB / 0.9099 GB, free: 53.69 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000288/0.2634, allocations: 341.6 kB / 0.9102 GB, free: 53.35 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.2634, allocations: 33.7 kB / 0.9103 GB, free: 53.31 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.2635, allocations: 240.8 kB / 0.9105 GB, free: 53.07 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.954e-05/0.2636, allocations: 98.55 kB / 0.9106 GB, free: 52.97 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.526e-05/0.2636, allocations: 12 kB / 0.9106 GB, free: 52.96 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.896e-05/0.2637, allocations: 350.8 kB / 0.9109 GB, free: 52.61 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.2639, allocations: 108.6 kB / 0.911 GB, free: 52.5 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002303/0.2642, allocations: 176.4 kB / 0.9112 GB, free: 52.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.2644, allocations: 114.2 kB / 0.9113 GB, free: 52.19 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.2644, allocations: 0 / 0.9113 GB, free: 52.19 MB / 0.6042 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005446/0.265, allocations: 350.9 kB / 0.9116 GB, free: 51.84 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.265, allocations: 8 kB / 0.9116 GB, free: 51.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.265, allocations: 0 / 0.9116 GB, free: 51.84 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.265, allocations: 4 kB / 0.9117 GB, free: 51.83 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002692/0.2653, allocations: 63.91 kB / 0.9117 GB, free: 51.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.2653, allocations: 7.938 kB / 0.9117 GB, free: 51.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002176/0.2656, allocations: 51.86 kB / 0.9118 GB, free: 51.71 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.2656, allocations: 12 kB / 0.9118 GB, free: 51.7 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: 14 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.greaterEqualThreshold.y,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * 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.0002015/0.2658, allocations: 181.6 kB / 0.912 GB, free: 51.51 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.279e-05/0.2658, allocations: 39.53 kB / 0.912 GB, free: 51.47 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.685e-05/0.2659, allocations: 44.25 kB / 0.912 GB, free: 51.43 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.2659, allocations: 4 kB / 0.912 GB, free: 51.42 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.266, allocations: 0 / 0.912 GB, free: 51.42 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.266, allocations: 0 / 0.912 GB, free: 51.42 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.267, allocations: 0.8142 MB / 0.9128 GB, free: 50.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.267, allocations: 0 / 0.9128 GB, free: 50.55 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.2673, allocations: 51.91 kB / 0.9129 GB, free: 50.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.2673, allocations: 4 kB / 0.9129 GB, free: 50.5 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.2673, allocations: 8 kB / 0.9129 GB, free: 50.49 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.2673, allocations: 4 kB / 0.9129 GB, free: 50.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2673, allocations: 0 / 0.9129 GB, free: 50.48 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000741/0.2681, allocations: 0.5119 MB / 0.9134 GB, free: 49.96 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.2682, allocations: 140.6 kB / 0.9135 GB, free: 49.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.531e-05/0.2682, allocations: 11.98 kB / 0.9135 GB, free: 49.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.2684, allocations: 19.98 kB / 0.9136 GB, free: 49.77 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.83e-05/0.2685, allocations: 23.97 kB / 0.9136 GB, free: 49.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.2686, allocations: 7.984 kB / 0.9136 GB, free: 49.74 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002186/0.2688, allocations: 243.2 kB / 0.9138 GB, free: 49.5 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2688, allocations: 0 / 0.9138 GB, free: 49.5 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000309/0.2691, allocations: 87.69 kB / 0.9139 GB, free: 49.42 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0008926/0.27, allocations: 1.075 MB / 0.915 GB, free: 48.32 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004863/0.2705, allocations: 267.6 kB / 0.9152 GB, free: 48.05 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2705, allocations: 0 / 0.9152 GB, free: 48.05 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002173/0.2707, allocations: 132.3 kB / 0.9153 GB, free: 47.93 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005674/0.2713, allocations: 81.08 kB / 0.9154 GB, free: 47.85 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003255/0.2746, allocations: 2.295 MB / 0.9177 GB, free: 45.49 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.2749, allocations: 0.8191 MB / 0.9185 GB, free: 44.64 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001992/0.2751, allocations: 47.25 kB / 0.9185 GB, free: 44.59 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.2753, allocations: 143.4 kB / 0.9186 GB, free: 44.45 MB / 0.6042 GB Notification: Performance of SimCode: time 1.122e-06/0.2753, allocations: 4 kB / 0.9186 GB, free: 44.45 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0201/0.2954, allocations: 6.967 MB / 0.9254 GB, free: 37.67 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/0.2957, allocations: 209 kB / 0.9256 GB, free: 37.43 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.174/2.469, allocations: 0 / 0.9256 GB, free: 37.43 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)