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.789/2.789, allocations: 284.9 MB / 292.4 MB, free: 10.5 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.001547/0.001547, allocations: 184.8 kB / 360.6 MB, free: 7.281 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.083/2.083, allocations: 205.3 MB / 0.6191 GB, free: 12.2 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001096/0.001095, allocations: 96.38 kB / 0.7321 GB, free: 44.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.43e-05/2.434e-05, allocations: 4 kB / 0.8509 GB, free: 3.312 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8146/0.8146, allocations: 115.3 MB / 0.9634 GB, free: 78.61 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2396/1.054, allocations: 138.6 MB / 1.099 GB, free: 1.75 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003176/1.055, allocations: 88.78 kB / 1.099 GB, free: 1.664 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007278/1.062, allocations: 1.504 MB / 1.1 GB, free: 204 kB / 0.698 GB Notification: Performance of FrontEnd: time 1.703e-06/1.062, allocations: 4.812 kB / 1.1 GB, free: 200 kB / 0.698 GB Notification: Performance of Transformations before backend: time 1.1e-05/1.062, allocations: 0 / 1.1 GB, free: 200 kB / 0.698 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.0007831/1.063, allocations: 443.9 kB / 1.101 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/1.063, allocations: 13.16 kB / 1.101 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.893e-05/1.063, allocations: 9.672 kB / 1.101 GB, free: 15.69 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002486/1.063, allocations: 197.3 kB / 1.101 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/1.063, allocations: 0 / 1.101 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.805e-05/1.063, allocations: 8.656 kB / 1.101 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001658/1.063, allocations: 31.98 kB / 1.101 GB, free: 15.42 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000176/1.064, allocations: 66.39 kB / 1.101 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/1.064, allocations: 2.891 kB / 1.101 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/1.064, allocations: 1.875 kB / 1.101 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/1.064, allocations: 0.5938 kB / 1.101 GB, free: 15.35 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007556/1.064, allocations: 320.2 kB / 1.101 GB, free: 15 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/1.065, allocations: 47.45 kB / 1.101 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.409e-05/1.065, allocations: 34.66 kB / 1.101 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/1.065, allocations: 0 / 1.101 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002333/1.065, allocations: 92.03 kB / 1.102 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.924e-06/1.065, allocations: 0 / 1.102 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0003294/1.065, allocations: 89.58 kB / 1.102 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.573e-05/1.065, allocations: 89.09 kB / 1.102 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/1.066, allocations: 117.9 kB / 1.102 GB, free: 14.49 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/1.066, allocations: 25.7 kB / 1.102 GB, free: 14.46 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.038e-05/1.066, allocations: 92.05 kB / 1.102 GB, free: 14.37 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.94e-05/1.066, allocations: 32.64 kB / 1.102 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.092e-05/1.066, allocations: 0 / 1.102 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001294/1.066, allocations: 321.5 kB / 1.102 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.254e-05/1.066, allocations: 30.42 kB / 1.102 GB, free: 13.99 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.171e-05/1.066, allocations: 35.78 kB / 1.102 GB, free: 13.96 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.521e-05/1.066, allocations: 15.98 kB / 1.102 GB, free: 13.94 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/1.066, allocations: 0 / 1.102 GB, free: 13.94 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003168/1.067, allocations: 109.7 kB / 1.103 GB, free: 13.83 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 6.968e-05/1.067, allocations: 59.39 kB / 1.103 GB, free: 13.76 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/1.067, allocations: 7.938 kB / 1.103 GB, free: 13.75 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/1.067, allocations: 4 kB / 1.103 GB, free: 13.75 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002242/1.067, allocations: 15.98 kB / 1.103 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/1.067, allocations: 0 / 1.103 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/1.067, allocations: 31.84 kB / 1.103 GB, free: 13.7 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.335e-05/1.067, allocations: 4 kB / 1.103 GB, free: 13.7 MB / 0.7136 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 () * 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.0001274/1.067, allocations: 142.5 kB / 1.103 GB, free: 13.54 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002652/1.068, allocations: 100.2 kB / 1.103 GB, free: 13.44 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/1.068, allocations: 7.906 kB / 1.103 GB, free: 13.43 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.265e-05/1.068, allocations: 16.56 kB / 1.103 GB, free: 13.42 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/1.068, allocations: 0 / 1.103 GB, free: 13.42 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/1.068, allocations: 3.953 kB / 1.103 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/1.068, allocations: 0 / 1.103 GB, free: 13.41 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004509/1.068, allocations: 331.1 kB / 1.103 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/1.068, allocations: 4 kB / 1.103 GB, free: 13.04 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/1.068, allocations: 15.98 kB / 1.103 GB, free: 13.03 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.326e-06/1.068, allocations: 4.938 kB / 1.103 GB, free: 13.02 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/1.068, allocations: 9.484 kB / 1.103 GB, free: 13.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/1.069, allocations: 3.953 kB / 1.103 GB, free: 13.01 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/1.069, allocations: 0 / 1.103 GB, free: 13.01 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003029/1.069, allocations: 195.4 kB / 1.103 GB, free: 12.8 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.159e-05/1.069, allocations: 88.95 kB / 1.104 GB, free: 12.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.025e-05/1.069, allocations: 6.156 kB / 1.104 GB, free: 12.7 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/1.069, allocations: 19.97 kB / 1.104 GB, free: 12.68 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/1.069, allocations: 27.92 kB / 1.104 GB, free: 12.65 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/1.069, allocations: 0 / 1.104 GB, free: 12.65 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.541e-05/1.07, allocations: 96.41 kB / 1.104 GB, free: 12.55 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.01e-07/1.07, allocations: 0 / 1.104 GB, free: 12.55 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000342/1.07, allocations: 27.92 kB / 1.104 GB, free: 12.53 MB / 0.7136 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) * 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.0006676/1.071, allocations: 0.7358 MB / 1.104 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003244/1.071, allocations: 174.8 kB / 1.105 GB, free: 11.57 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/1.071, allocations: 0 / 1.105 GB, free: 11.57 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001512/1.071, allocations: 87.41 kB / 1.105 GB, free: 11.47 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/1.071, allocations: 27.88 kB / 1.105 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006794/1.072, allocations: 152.3 kB / 1.105 GB, free: 11.26 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003022/1.072, allocations: 0.6963 MB / 1.105 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 9.769e-05/1.073, allocations: 7.984 kB / 1.105 GB, free: 10.53 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.56e-05/1.073, allocations: 31.42 kB / 1.106 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of SimCode: time 1.062e-06/1.073, allocations: 0 / 1.106 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03957/1.112, allocations: 1.739 MB / 1.107 GB, free: 8.828 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002909/1.113, allocations: 171.3 kB / 1.107 GB, free: 8.641 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.306/3.419, allocations: 0 / 1.107 GB, free: 8.641 MB / 0.7136 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)