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.RequestCounter.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.RequestCounter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",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.571/1.571, allocations: 251.9 MB / 266.9 MB, free: 11.07 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.001116/0.001116, allocations: 180.8 kB / 326.5 MB, free: 2.281 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.729/1.729, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0009962/0.0009959, allocations: 96.36 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004612/0.0004612, allocations: 8.594 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2556, allocations: 106.3 MB / 0.9002 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001423/0.2571, allocations: 1.219 MB / 0.9013 GB, free: 62.63 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006562/0.2578, allocations: 488.5 kB / 0.9018 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.028e-05/0.2578, allocations: 0 / 0.9018 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 7.458e-05/0.2579, allocations: 7.922 kB / 0.9018 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.436e-05/0.2579, allocations: 7.984 kB / 0.9018 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001658/0.2581, allocations: 27.97 kB / 0.9019 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.202e-05/0.2582, allocations: 43.88 kB / 0.9019 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.2583, allocations: 16.17 kB / 0.9019 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.2585, allocations: 35.91 kB / 0.9019 GB, free: 62.01 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.434e-05/0.2585, allocations: 31.83 kB / 0.902 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.386e-05/0.2586, allocations: 7.938 kB / 0.902 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.72e-05/0.2586, allocations: 8 kB / 0.902 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 3.486e-05/0.2586, allocations: 11.92 kB / 0.902 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.298e-05/0.2587, allocations: 37.7 kB / 0.902 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.803e-05/0.2588, allocations: 39.91 kB / 0.9021 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2588, allocations: 0 / 0.9021 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.894e-06/0.2588, allocations: 0 / 0.9021 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.2588, allocations: 0 / 0.9021 GB, free: 61.87 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006841/0.2595, allocations: 450.7 kB / 0.9025 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.2596, allocations: 12.03 kB / 0.9025 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.409e-05/0.2596, allocations: 38.48 kB / 0.9026 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.628e-05/0.2597, allocations: 11.86 kB / 0.9026 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.2599, allocations: 179 kB / 0.9027 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.2599, allocations: 4 kB / 0.9027 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.2599, allocations: 8 kB / 0.9028 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.2602, allocations: 101.6 kB / 0.9028 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.2602, allocations: 0 / 0.9028 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.2603, allocations: 7.938 kB / 0.9029 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.2603, allocations: 4 kB / 0.9029 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002877/0.2606, allocations: 87.92 kB / 0.9029 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005804/0.2612, allocations: 336.7 kB / 0.9033 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002688/0.2614, allocations: 102.5 kB / 0.9034 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.2615, allocations: 0 / 0.9034 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002765/0.2617, allocations: 119.4 kB / 0.9035 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.2618, allocations: 0 / 0.9035 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0005512/0.2623, allocations: 231.3 kB / 0.9037 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.2624, allocations: 85.09 kB / 0.9038 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.844e-05/0.2624, allocations: 132.1 kB / 0.9039 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.2625, allocations: 33.7 kB / 0.9039 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.942e-05/0.2625, allocations: 92.05 kB / 0.904 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.2626, allocations: 23.73 kB / 0.904 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-06/0.2626, allocations: 0 / 0.904 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.414e-05/0.2626, allocations: 318.8 kB / 0.9044 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.2628, allocations: 55.95 kB / 0.9044 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.2629, allocations: 63.89 kB / 0.9045 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.2631, allocations: 103.4 kB / 0.9046 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2631, allocations: 0 / 0.9046 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003919/0.2635, allocations: 228.9 kB / 0.9048 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.2635, allocations: 55.41 kB / 0.9048 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.2635, allocations: 80 / 0.9048 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.2636, allocations: 3.953 kB / 0.9048 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.2637, allocations: 27.97 kB / 0.9049 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.2637, allocations: 11.86 kB / 0.9049 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.2638, allocations: 27.89 kB / 0.9049 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.2639, allocations: 4 kB / 0.9049 GB, free: 58.68 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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 8.498e-05/0.264, allocations: 143.5 kB / 0.905 GB, free: 58.53 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.587e-05/0.264, allocations: 15.91 kB / 0.9051 GB, free: 58.51 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.749e-05/0.264, allocations: 12.72 kB / 0.9051 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.264, allocations: 3.953 kB / 0.9051 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.264, allocations: 0 / 0.9051 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.264, allocations: 0 / 0.9051 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004454/0.2645, allocations: 448.1 kB / 0.9055 GB, free: 58 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2645, allocations: 3.938 kB / 0.9055 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.193e-05/0.2646, allocations: 19.98 kB / 0.9055 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2646, allocations: 0 / 0.9055 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.2646, allocations: 7.938 kB / 0.9055 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2646, allocations: 0 / 0.9055 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2646, allocations: 0 / 0.9055 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003501/0.265, allocations: 281.1 kB / 0.9058 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.762e-05/0.265, allocations: 93 kB / 0.9059 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.2651, allocations: 4.281 kB / 0.9059 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.2652, allocations: 19.94 kB / 0.9059 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.547e-05/0.2653, allocations: 19.97 kB / 0.9059 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.2653, allocations: 11.92 kB / 0.9059 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.913e-05/0.2654, allocations: 100.5 kB / 0.906 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2654, allocations: 0 / 0.906 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002237/0.2656, allocations: 20 kB / 0.9061 GB, free: 57.39 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0005855/0.2662, allocations: 0.8233 MB / 0.9069 GB, free: 56.53 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003938/0.2666, allocations: 234.7 kB / 0.9071 GB, free: 56.28 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2666, allocations: 4 kB / 0.9071 GB, free: 56.27 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.2668, allocations: 119.3 kB / 0.9072 GB, free: 56.14 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001977/0.267, allocations: 15 kB / 0.9072 GB, free: 56.13 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.2683, allocations: 0.7176 MB / 0.9079 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/0.2685, allocations: 0.7004 MB / 0.9086 GB, free: 54.64 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.884e-05/0.2685, allocations: 15.98 kB / 0.9086 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.089e-05/0.2686, allocations: 19.44 kB / 0.9086 GB, free: 54.6 MB / 0.6042 GB Notification: Performance of SimCode: time 6.31e-07/0.2686, allocations: 0 / 0.9086 GB, free: 54.6 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01175/0.2803, allocations: 2.128 MB / 0.9107 GB, free: 52.68 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001916/0.2806, allocations: 225.8 kB / 0.9109 GB, free: 52.44 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.7/1.981, allocations: 2.922 kB / 0.9109 GB, free: 52.44 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)