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.001786/0.001787, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001792/0.001792, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.289/3.289, allocations: 205.4 MB / 222.1 MB, free: 5.668 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 3.079/3.079, allocations: 292.6 MB / 0.5497 GB, free: 14.62 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.0009902/0.0009909, allocations: 13.91 kB / 0.6737 GB, free: 26.37 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4209/0.4219, allocations: 116.3 MB / 0.7872 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003157/0.4251, allocations: 1.212 MB / 0.7884 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001273/0.4265, allocations: 472.1 kB / 0.7889 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.812e-05/0.4266, allocations: 4 kB / 0.7889 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.4268, allocations: 0 / 0.7889 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001113/0.4269, allocations: 15.91 kB / 0.7889 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003422/0.4272, allocations: 19.97 kB / 0.7889 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001953/0.4275, allocations: 51.88 kB / 0.789 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002158/0.4277, allocations: 16.17 kB / 0.789 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000226/0.4279, allocations: 39.84 kB / 0.789 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.4281, allocations: 39.77 kB / 0.7891 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.4281, allocations: 4 kB / 0.7891 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 2.525e-05/0.4282, allocations: 4 kB / 0.7891 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.53e-05/0.4282, allocations: 0 / 0.7891 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.097e-05/0.4283, allocations: 41.64 kB / 0.7891 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001788/0.4285, allocations: 56.11 kB / 0.7892 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4286, allocations: 0 / 0.7892 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.137e-06/0.4286, allocations: 0 / 0.7892 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.4286, allocations: 4 kB / 0.7892 GB, free: 9.891 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.001123/0.4297, allocations: 430.5 kB / 0.7896 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 7.185e-05/0.4298, allocations: 8.031 kB / 0.7896 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.32e-05/0.4299, allocations: 38.56 kB / 0.7896 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.533e-05/0.43, allocations: 7.906 kB / 0.7896 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004762/0.4305, allocations: 190.8 kB / 0.7898 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.4305, allocations: 11.94 kB / 0.7898 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.924e-05/0.4306, allocations: 7.984 kB / 0.7898 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006409/0.4312, allocations: 101.6 kB / 0.7899 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.4312, allocations: 0 / 0.7899 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.4313, allocations: 0 / 0.7899 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.4313, allocations: 0 / 0.7899 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000453/0.4318, allocations: 87.94 kB / 0.79 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.433, allocations: 348.6 kB / 0.7903 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004687/0.4335, allocations: 98.52 kB / 0.7904 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.4335, allocations: 4.125 kB / 0.7904 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00059/0.4341, allocations: 107.4 kB / 0.7905 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 2.665e-06/0.4341, allocations: 0 / 0.7905 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.001046/0.4352, allocations: 243.1 kB / 0.7908 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.4353, allocations: 81.11 kB / 0.7908 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004242/0.4358, allocations: 136.9 kB / 0.791 GB, free: 7.805 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.967e-05/0.4358, allocations: 25.7 kB / 0.791 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.4359, allocations: 96.12 kB / 0.7911 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.4361, allocations: 23.66 kB / 0.7911 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.117e-05/0.4361, allocations: 0 / 0.7911 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002932/0.4364, allocations: 322.8 kB / 0.7914 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.4367, allocations: 63.83 kB / 0.7915 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000236/0.4369, allocations: 55.97 kB / 0.7915 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004556/0.4374, allocations: 103.4 kB / 0.7916 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.4374, allocations: 4 kB / 0.7916 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0006883/0.4381, allocations: 228.9 kB / 0.7919 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/0.4382, allocations: 63.39 kB / 0.7919 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.4382, allocations: 0 / 0.7919 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.294e-05/0.4383, allocations: 0 / 0.7919 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000208/0.4385, allocations: 23.94 kB / 0.7919 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.4385, allocations: 0 / 0.7919 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002106/0.4387, allocations: 31.91 kB / 0.792 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.808e-05/0.4388, allocations: 4 kB / 0.792 GB, free: 6.719 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.0002164/0.439, allocations: 143.5 kB / 0.7921 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.832e-05/0.439, allocations: 7.906 kB / 0.7921 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.774e-05/0.4391, allocations: 16.7 kB / 0.7921 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.4391, allocations: 3.938 kB / 0.7921 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.4391, allocations: 3.953 kB / 0.7921 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.4392, allocations: 0 / 0.7921 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009767/0.4401, allocations: 444.2 kB / 0.7926 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.4402, allocations: 0 / 0.7926 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.4403, allocations: 19.98 kB / 0.7926 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-06/0.4403, allocations: 4 kB / 0.7926 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.4403, allocations: 4 kB / 0.7926 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.4403, allocations: 3.953 kB / 0.7926 GB, free: 6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4404, allocations: 0 / 0.7926 GB, free: 6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006606/0.441, allocations: 281.3 kB / 0.7929 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.584e-05/0.4411, allocations: 85.02 kB / 0.7929 GB, free: 5.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.738e-05/0.4412, allocations: 3.984 kB / 0.793 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.4414, allocations: 27.92 kB / 0.793 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.4416, allocations: 27.92 kB / 0.793 GB, free: 5.543 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.4416, allocations: 4 kB / 0.793 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001057/0.4418, allocations: 99.27 kB / 0.7931 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.485e-06/0.4418, allocations: 0 / 0.7931 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004387/0.4422, allocations: 19.94 kB / 0.7931 GB, free: 5.422 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.001574/0.4438, allocations: 0.8304 MB / 0.7939 GB, free: 4.562 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0009688/0.4448, allocations: 234.7 kB / 0.7942 GB, free: 4.309 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.4448, allocations: 0 / 0.7942 GB, free: 4.309 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000356/0.4452, allocations: 123.3 kB / 0.7943 GB, free: 4.176 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004107/0.4456, allocations: 18.38 kB / 0.7943 GB, free: 4.16 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002563/0.4482, allocations: 0.7186 MB / 0.795 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.4486, allocations: 0.6926 MB / 0.7957 GB, free: 2.672 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 9.884e-05/0.4487, allocations: 15.97 kB / 0.7957 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.421e-05/0.4488, allocations: 27.42 kB / 0.7957 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of SimCode: time 1.493e-06/0.4488, allocations: 0 / 0.7957 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02323/0.4721, allocations: 2.116 MB / 0.7978 GB, free: 0.7031 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003801/0.4725, allocations: 214.2 kB / 0.798 GB, free: 468 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.958/3.43, allocations: 3.938 kB / 0.798 GB, free: 464 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: