Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_8_0_0_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_0_0_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 8.0.0/package.mo): time 2.752/2.752, allocations: 287.3 MB / 302.3 MB, free: 8.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001747/0.001746, allocations: 181.2 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.227/2.227, allocations: 205.4 MB / 0.6295 GB, free: 10.62 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001059/0.001059, allocations: 96.17 kB / 0.7428 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004873/0.0004875, allocations: 15.39 kB / 0.8657 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.21, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001799/0.2119, allocations: 1.211 MB / 0.9795 GB, free: 27.07 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.213, allocations: 473.1 kB / 0.9799 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.364e-05/0.2131, allocations: 0 / 0.9799 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.614e-05/0.2132, allocations: 3.938 kB / 0.9799 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.195e-05/0.2132, allocations: 11.92 kB / 0.9799 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002002/0.2135, allocations: 39.89 kB / 0.98 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001036/0.2136, allocations: 39.94 kB / 0.98 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.2137, allocations: 16.17 kB / 0.98 GB, free: 26.49 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.2138, allocations: 35.84 kB / 0.9801 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.361e-05/0.2139, allocations: 27.91 kB / 0.9801 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.214, allocations: 7.938 kB / 0.9801 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.978e-05/0.214, allocations: 8 kB / 0.9801 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.56e-05/0.214, allocations: 7.922 kB / 0.9801 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.105e-05/0.2141, allocations: 37.7 kB / 0.9802 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001041/0.2142, allocations: 56.11 kB / 0.9802 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2142, allocations: 0 / 0.9802 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.823e-06/0.2142, allocations: 0 / 0.9802 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.291e-06/0.2143, allocations: 0 / 0.9802 GB, free: 26.31 MB / 0.6198 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.0007282/0.215, allocations: 438.5 kB / 0.9806 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.215, allocations: 12.03 kB / 0.9806 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.569e-05/0.2151, allocations: 34.56 kB / 0.9807 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.444e-05/0.2152, allocations: 11.86 kB / 0.9807 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001632/0.2153, allocations: 187.8 kB / 0.9809 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.2154, allocations: 4 kB / 0.9809 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.2154, allocations: 8 kB / 0.9809 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003927/0.2158, allocations: 109.6 kB / 0.981 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.2158, allocations: 0 / 0.981 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.2158, allocations: 0 / 0.981 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.2159, allocations: 4 kB / 0.981 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004579/0.2163, allocations: 83.94 kB / 0.9811 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000709/0.217, allocations: 348.6 kB / 0.9814 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004481/0.2175, allocations: 98.52 kB / 0.9815 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.2175, allocations: 0 / 0.9815 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004035/0.218, allocations: 107.5 kB / 0.9816 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.034e-06/0.218, allocations: 0 / 0.9816 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0009371/0.2189, allocations: 243.2 kB / 0.9818 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/0.219, allocations: 81.11 kB / 0.9819 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.2191, allocations: 137 kB / 0.982 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.2191, allocations: 25.7 kB / 0.9821 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.254e-05/0.2192, allocations: 104.1 kB / 0.9822 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.93e-05/0.2192, allocations: 19.72 kB / 0.9822 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.126e-05/0.2193, allocations: 3.938 kB / 0.9822 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.296e-05/0.2193, allocations: 322.8 kB / 0.9825 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.2196, allocations: 51.97 kB / 0.9825 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002617/0.2199, allocations: 59.95 kB / 0.9826 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/0.2202, allocations: 103.3 kB / 0.9827 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2202, allocations: 0 / 0.9827 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0006865/0.2209, allocations: 224.9 kB / 0.9829 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.687e-05/0.221, allocations: 63.39 kB / 0.983 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.221, allocations: 0 / 0.983 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.221, allocations: 3.953 kB / 0.983 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.2212, allocations: 27.92 kB / 0.983 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.2212, allocations: 0 / 0.983 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.2215, allocations: 23.92 kB / 0.983 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/0.2215, allocations: 8 kB / 0.983 GB, free: 23.14 MB / 0.6198 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.0001168/0.2216, allocations: 143.5 kB / 0.9832 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.54e-05/0.2217, allocations: 11.91 kB / 0.9832 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.393e-05/0.2217, allocations: 12.72 kB / 0.9832 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2217, allocations: 3.953 kB / 0.9832 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2217, allocations: 0 / 0.9832 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2218, allocations: 3.984 kB / 0.9832 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000776/0.2225, allocations: 448.1 kB / 0.9836 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.2226, allocations: 0 / 0.9836 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.2227, allocations: 15.98 kB / 0.9836 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.2227, allocations: 4.281 kB / 0.9836 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.2228, allocations: 7.953 kB / 0.9837 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2228, allocations: 0 / 0.9837 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2228, allocations: 3.938 kB / 0.9837 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006261/0.2234, allocations: 281.1 kB / 0.9839 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.334e-05/0.2235, allocations: 89 kB / 0.984 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.468e-05/0.2235, allocations: 8 kB / 0.984 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000248/0.2238, allocations: 23.92 kB / 0.984 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.2239, allocations: 23.91 kB / 0.9841 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.224, allocations: 4 kB / 0.9841 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.548e-05/0.224, allocations: 99.27 kB / 0.9842 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.6e-07/0.224, allocations: 0 / 0.9842 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003191/0.2244, allocations: 16 kB / 0.9842 GB, free: 21.85 MB / 0.6198 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.0009127/0.2253, allocations: 0.8272 MB / 0.985 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006581/0.226, allocations: 234.7 kB / 0.9852 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.226, allocations: 0 / 0.9852 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003174/0.2263, allocations: 115.9 kB / 0.9853 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.2266, allocations: 19.94 kB / 0.9853 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001908/0.2285, allocations: 0.7135 MB / 0.986 GB, free: 19.83 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001554/0.2287, allocations: 0.7004 MB / 0.9867 GB, free: 19.1 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001046/0.2289, allocations: 15.98 kB / 0.9867 GB, free: 19.09 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.267e-05/0.2289, allocations: 19.42 kB / 0.9868 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of SimCode: time 9.32e-07/0.229, allocations: 0 / 0.9868 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01998/0.2489, allocations: 2.136 MB / 0.9888 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000258/0.2493, allocations: 220.9 kB / 0.989 GB, free: 16.86 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.67/2.919, allocations: 0 / 0.989 GB, free: 16.86 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)