Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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.RequestCounter,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00087/0.0008702, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009887/0.0009888, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.856/1.856, allocations: 292.7 MB / 0.5499 GB, free: 14.56 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008184/0.0008188, allocations: 12.75 kB / 0.6738 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2629, allocations: 116.3 MB / 0.7874 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002021/0.2649, allocations: 1.226 MB / 0.7886 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.000892/0.2659, allocations: 465.2 kB / 0.7891 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.451e-05/0.266, allocations: 4 kB / 0.7891 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.219e-05/0.2661, allocations: 3.938 kB / 0.7891 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.336e-05/0.2661, allocations: 15.86 kB / 0.7891 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.2664, allocations: 19.97 kB / 0.7891 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001268/0.2665, allocations: 71.77 kB / 0.7892 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.2666, allocations: 16.17 kB / 0.7892 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.2668, allocations: 31.84 kB / 0.7892 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.475e-05/0.2669, allocations: 35.91 kB / 0.7892 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.473e-05/0.2669, allocations: 4 kB / 0.7892 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.579e-05/0.2669, allocations: 3.938 kB / 0.7893 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.495e-05/0.267, allocations: 11.92 kB / 0.7893 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.544e-05/0.267, allocations: 37.64 kB / 0.7893 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.578e-05/0.2671, allocations: 60.11 kB / 0.7894 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2671, allocations: 3.938 kB / 0.7894 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2671, allocations: 0 / 0.7894 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.571e-06/0.2671, allocations: 0 / 0.7894 GB, free: 9.832 MB / 0.6075 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.0006511/0.2678, allocations: 434.5 kB / 0.7898 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.2678, allocations: 12.03 kB / 0.7898 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.452e-05/0.2679, allocations: 34.56 kB / 0.7898 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.633e-05/0.268, allocations: 7.906 kB / 0.7898 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002044/0.2682, allocations: 190.9 kB / 0.79 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.2682, allocations: 4 kB / 0.79 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.2682, allocations: 7.984 kB / 0.79 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002786/0.2685, allocations: 105.6 kB / 0.7901 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.2685, allocations: 0 / 0.7901 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.2685, allocations: 0 / 0.7901 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.2685, allocations: 4 kB / 0.7901 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002657/0.2688, allocations: 87.92 kB / 0.7902 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005941/0.2694, allocations: 348.6 kB / 0.7905 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002844/0.2697, allocations: 94.52 kB / 0.7906 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.2699, allocations: 60.94 kB / 0.7907 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.2699, allocations: 0 / 0.7907 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002873/0.2702, allocations: 115.4 kB / 0.7908 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 2.956e-06/0.2702, allocations: 3.984 kB / 0.7908 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0006124/0.2708, allocations: 235.1 kB / 0.791 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.2709, allocations: 85.08 kB / 0.7911 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.973e-05/0.271, allocations: 132.9 kB / 0.7912 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.2711, allocations: 33.7 kB / 0.7913 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.79e-05/0.2711, allocations: 92.12 kB / 0.7914 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.2712, allocations: 15.72 kB / 0.7914 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.999e-06/0.2712, allocations: 12 kB / 0.7914 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.2713, allocations: 318.8 kB / 0.7917 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.2715, allocations: 63.89 kB / 0.7917 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.2716, allocations: 55.91 kB / 0.7918 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.2718, allocations: 107.4 kB / 0.7919 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2718, allocations: 0 / 0.7919 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004298/0.2723, allocations: 228.9 kB / 0.7921 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.668e-05/0.2723, allocations: 59.41 kB / 0.7922 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2723, allocations: 4 kB / 0.7922 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.2723, allocations: 3.953 kB / 0.7922 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.2725, allocations: 23.98 kB / 0.7922 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.2725, allocations: 0 / 0.7922 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.2726, allocations: 27.91 kB / 0.7922 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.2726, allocations: 4 kB / 0.7922 GB, free: 6.594 MB / 0.6075 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 0.0001212/0.2728, allocations: 147.5 kB / 0.7924 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.811e-05/0.2728, allocations: 7.906 kB / 0.7924 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.472e-05/0.2728, allocations: 20.7 kB / 0.7924 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.2728, allocations: 0 / 0.7924 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.2729, allocations: 7.953 kB / 0.7924 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.2729, allocations: 3.938 kB / 0.7924 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005554/0.2734, allocations: 440.2 kB / 0.7928 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2734, allocations: 4 kB / 0.7928 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.53e-05/0.2735, allocations: 15.98 kB / 0.7929 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.2735, allocations: 0 / 0.7929 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.2736, allocations: 7.953 kB / 0.7929 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2736, allocations: 0 / 0.7929 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2736, allocations: 0 / 0.7929 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004655/0.274, allocations: 293.4 kB / 0.7931 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.705e-05/0.2741, allocations: 89 kB / 0.7932 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.2741, allocations: 0 / 0.7932 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.2743, allocations: 23.94 kB / 0.7933 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.2744, allocations: 23.97 kB / 0.7933 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/0.2744, allocations: 0 / 0.7933 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.557e-05/0.2745, allocations: 107.5 kB / 0.7934 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2745, allocations: 0 / 0.7934 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002338/0.2747, allocations: 20 kB / 0.7934 GB, free: 5.285 MB / 0.6075 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.0007437/0.2755, allocations: 0.8194 MB / 0.7942 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004262/0.2759, allocations: 242.7 kB / 0.7944 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2759, allocations: 0 / 0.7944 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.2762, allocations: 119.3 kB / 0.7945 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.2764, allocations: 15.95 kB / 0.7946 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.2778, allocations: 0.7143 MB / 0.7953 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.2781, allocations: 0.6926 MB / 0.7959 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.061e-05/0.2782, allocations: 11.98 kB / 0.7959 GB, free: 2.527 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.778e-05/0.2783, allocations: 27.42 kB / 0.796 GB, free: 2.504 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2783, allocations: 0 / 0.796 GB, free: 2.504 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01678/0.2951, allocations: 2.139 MB / 0.7981 GB, free: 0.5625 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002686/0.2954, allocations: 216.1 kB / 0.7983 GB, free: 332 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.895/2.191, allocations: 7.281 kB / 0.7983 GB, free: 328 kB / 0.6075 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) Environment - environmentSimulation: