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.33/1.33, allocations: 252 MB / 267.3 MB, free: 10.86 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.001035/0.001035, allocations: 170 kB / 327 MB, free: 2.105 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.536/1.536, allocations: 205.4 MB / 0.578 GB, free: 20.15 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.0007263/0.0007264, allocations: 81.52 kB / 0.6826 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003551/0.0003551, allocations: 14.19 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2143, allocations: 106.3 MB / 0.9009 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.00151/0.2159, allocations: 1.246 MB / 0.9021 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008286/0.2167, allocations: 0.4916 MB / 0.9026 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.448e-05/0.2168, allocations: 0 / 0.9026 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001011/0.2169, allocations: 4 kB / 0.9026 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.393e-05/0.217, allocations: 15.84 kB / 0.9026 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002021/0.2172, allocations: 23.98 kB / 0.9027 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001036/0.2173, allocations: 79.7 kB / 0.9027 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.2174, allocations: 20.17 kB / 0.9028 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.2175, allocations: 27.91 kB / 0.9028 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.43e-05/0.2176, allocations: 35.84 kB / 0.9028 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.2176, allocations: 4 kB / 0.9028 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.455e-05/0.2177, allocations: 3.938 kB / 0.9028 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.072e-05/0.2177, allocations: 15.91 kB / 0.9028 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.561e-05/0.2178, allocations: 57.5 kB / 0.9029 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.2179, allocations: 63.77 kB / 0.903 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2179, allocations: 0 / 0.903 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.114e-06/0.2179, allocations: 4 kB / 0.903 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.159e-06/0.2179, allocations: 0 / 0.903 GB, free: 61.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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006129/0.2185, allocations: 442.9 kB / 0.9034 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.2186, allocations: 8.031 kB / 0.9034 GB, free: 60.81 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.653e-05/0.2186, allocations: 34.73 kB / 0.9034 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.868e-05/0.2187, allocations: 12.84 kB / 0.9034 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.2188, allocations: 184.2 kB / 0.9036 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.906e-06/0.2188, allocations: 8.375 kB / 0.9036 GB, free: 60.53 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.2189, allocations: 4.375 kB / 0.9036 GB, free: 60.53 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002742/0.2191, allocations: 105.5 kB / 0.9037 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.2192, allocations: 0 / 0.9037 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.2192, allocations: 15.94 kB / 0.9037 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.2192, allocations: 4 kB / 0.9037 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.2195, allocations: 87.92 kB / 0.9038 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004973/0.22, allocations: 340.6 kB / 0.9041 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002773/0.2203, allocations: 98.5 kB / 0.9042 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.2204, allocations: 60.94 kB / 0.9043 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.2205, allocations: 4 kB / 0.9043 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002892/0.2208, allocations: 115.4 kB / 0.9044 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.2208, allocations: 0 / 0.9044 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0005599/0.2213, allocations: 235.2 kB / 0.9046 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.2214, allocations: 81.11 kB / 0.9047 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.63e-05/0.2215, allocations: 131.5 kB / 0.9048 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.2215, allocations: 33.7 kB / 0.9049 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.369e-05/0.2215, allocations: 92.12 kB / 0.905 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.2216, allocations: 23.66 kB / 0.905 GB, free: 59 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.338e-06/0.2216, allocations: 4 kB / 0.905 GB, free: 59 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.36e-05/0.2216, allocations: 326.7 kB / 0.9053 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.2218, allocations: 55.95 kB / 0.9054 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.2219, allocations: 59.91 kB / 0.9054 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002775/0.2222, allocations: 181.9 kB / 0.9056 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2222, allocations: 0 / 0.9056 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003992/0.2226, allocations: 237 kB / 0.9058 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/0.2227, allocations: 59.41 kB / 0.9059 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.2227, allocations: 0 / 0.9059 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.2227, allocations: 0 / 0.9059 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.2228, allocations: 19.98 kB / 0.9059 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.413e-06/0.2229, allocations: 0 / 0.9059 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.223, allocations: 27.91 kB / 0.9059 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.223, allocations: 8 kB / 0.9059 GB, free: 57.98 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.749e-05/0.2231, allocations: 143.5 kB / 0.9061 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.598e-05/0.2231, allocations: 7.906 kB / 0.9061 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.982e-05/0.2232, allocations: 20.64 kB / 0.9061 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2232, allocations: 0 / 0.9061 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.2232, allocations: 0 / 0.9061 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2232, allocations: 3.938 kB / 0.9061 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004554/0.2236, allocations: 448.1 kB / 0.9065 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2237, allocations: 0 / 0.9065 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.365e-05/0.2237, allocations: 19.98 kB / 0.9065 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2238, allocations: 4 kB / 0.9065 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.2238, allocations: 4 kB / 0.9065 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.2238, allocations: 3.938 kB / 0.9065 GB, free: 57.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2238, allocations: 0 / 0.9065 GB, free: 57.26 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003567/0.2242, allocations: 289 kB / 0.9068 GB, free: 56.96 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.269e-05/0.2242, allocations: 81.02 kB / 0.9069 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.2242, allocations: 11.98 kB / 0.9069 GB, free: 56.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.2244, allocations: 19.92 kB / 0.9069 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.2245, allocations: 19.97 kB / 0.9069 GB, free: 56.81 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.2245, allocations: 8 kB / 0.907 GB, free: 56.8 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.311e-05/0.2245, allocations: 101.8 kB / 0.9071 GB, free: 56.7 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2246, allocations: 0 / 0.9071 GB, free: 56.7 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002151/0.2248, allocations: 16 kB / 0.9071 GB, free: 56.69 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005665/0.2253, allocations: 0.8233 MB / 0.9079 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003837/0.2257, allocations: 238.7 kB / 0.9081 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2258, allocations: 0 / 0.9081 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001825/0.2259, allocations: 123.3 kB / 0.9082 GB, free: 55.44 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.2262, allocations: 29.36 kB / 0.9082 GB, free: 55.41 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.228, allocations: 1.755 MB / 0.91 GB, free: 53.57 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001276/0.2282, allocations: 0.6926 MB / 0.9106 GB, free: 52.85 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.71e-05/0.2282, allocations: 11.98 kB / 0.9106 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.203e-05/0.2283, allocations: 27.42 kB / 0.9107 GB, free: 52.81 MB / 0.6042 GB Notification: Performance of SimCode: time 3.6e-07/0.2283, allocations: 0 / 0.9107 GB, free: 52.81 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01138/0.2397, allocations: 2.16 MB / 0.9128 GB, free: 50.86 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000149/0.2399, allocations: 246.3 kB / 0.913 GB, free: 50.61 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.794/2.034, allocations: 0 / 0.913 GB, free: 50.61 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)