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.001161/0.001161, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 185.3 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.631/1.631, allocations: 292.3 MB / 0.549 GB, free: 12.72 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.001518/0.001518, allocations: 73.61 kB / 0.6718 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.218, allocations: 114.5 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.003/0.2211, allocations: 1.518 MB / 0.7851 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007831/0.2219, allocations: 0.4928 MB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.005e-05/0.2219, allocations: 0 / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.791e-05/0.2221, allocations: 3.938 kB / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.224e-05/0.2221, allocations: 7.875 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001897/0.2223, allocations: 43.88 kB / 0.7857 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.2224, allocations: 75.84 kB / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.2225, allocations: 20.17 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.2227, allocations: 43.77 kB / 0.7858 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.575e-05/0.2227, allocations: 35.91 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.349e-05/0.2228, allocations: 12 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.652e-05/0.2228, allocations: 4 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.998e-05/0.2228, allocations: 15.92 kB / 0.7859 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.276e-05/0.2229, allocations: 35.8 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.223, allocations: 79.92 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.223, allocations: 4 kB / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.204e-06/0.223, allocations: 0 / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.2231, allocations: 3.938 kB / 0.786 GB, free: 10.85 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.0006077/0.2237, allocations: 442.6 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.2237, allocations: 8.031 kB / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.805e-05/0.2238, allocations: 42.73 kB / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.675e-05/0.2238, allocations: 8.844 kB / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001903/0.224, allocations: 184.2 kB / 0.7866 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.224, allocations: 384 / 0.7866 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.548e-05/0.224, allocations: 8.312 kB / 0.7866 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002851/0.2243, allocations: 105.5 kB / 0.7867 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.2243, allocations: 0 / 0.7867 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.2244, allocations: 4 kB / 0.7867 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.2244, allocations: 3.984 kB / 0.7867 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002649/0.2246, allocations: 71.94 kB / 0.7868 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005875/0.2252, allocations: 340.6 kB / 0.7871 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002816/0.2255, allocations: 82.52 kB / 0.7872 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.2257, allocations: 52.94 kB / 0.7873 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.2257, allocations: 0 / 0.7873 GB, free: 9.348 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003231/0.226, allocations: 107.3 kB / 0.7874 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.2261, allocations: 0 / 0.7874 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0005964/0.2267, allocations: 207.2 kB / 0.7876 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.2267, allocations: 81.09 kB / 0.7876 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.2268, allocations: 138 kB / 0.7878 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.2269, allocations: 29.7 kB / 0.7878 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.765e-05/0.2269, allocations: 104 kB / 0.7879 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.227, allocations: 11.81 kB / 0.7879 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.259e-05/0.227, allocations: 29.7 kB / 0.7879 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.2271, allocations: 322.8 kB / 0.7882 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.2273, allocations: 43.95 kB / 0.7883 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.2275, allocations: 51.89 kB / 0.7883 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002948/0.2278, allocations: 173.8 kB / 0.7885 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2278, allocations: 0 / 0.7885 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004043/0.2282, allocations: 208.9 kB / 0.7887 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.826e-05/0.2282, allocations: 64.34 kB / 0.7888 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2282, allocations: 3.984 kB / 0.7888 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.2283, allocations: 0 / 0.7888 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.2284, allocations: 19.98 kB / 0.7888 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.2284, allocations: 0 / 0.7888 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.2285, allocations: 23.86 kB / 0.7888 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.2286, allocations: 0 / 0.7888 GB, free: 7.633 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 (act1.count,$PRE.act1.count,act1.T_start,$PRE.act1.T_start,reqCou.nInc,$whenCondition1) * 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 9.772e-05/0.2287, allocations: 151.5 kB / 0.789 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.72e-05/0.2287, allocations: 7.906 kB / 0.789 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.168e-05/0.2287, allocations: 12.72 kB / 0.789 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.2287, allocations: 8 kB / 0.789 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2287, allocations: 3.938 kB / 0.789 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2287, allocations: 3.938 kB / 0.789 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005214/0.2293, allocations: 436.4 kB / 0.7894 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2293, allocations: 0 / 0.7894 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.206e-05/0.2294, allocations: 15.97 kB / 0.7894 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.2294, allocations: 0 / 0.7894 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.2294, allocations: 8 kB / 0.7894 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.2294, allocations: 3.938 kB / 0.7894 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2294, allocations: 0 / 0.7894 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003947/0.2298, allocations: 269.3 kB / 0.7897 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.667e-05/0.2299, allocations: 81.02 kB / 0.7898 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.2299, allocations: 4 kB / 0.7898 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.23, allocations: 23.86 kB / 0.7898 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.2301, allocations: 23.97 kB / 0.7898 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.2302, allocations: 4 kB / 0.7898 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.819e-05/0.2302, allocations: 106.2 kB / 0.7899 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2302, allocations: 0 / 0.7899 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002429/0.2305, allocations: 16 kB / 0.7899 GB, free: 6.359 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 (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.0007022/0.2312, allocations: 0.8077 MB / 0.7907 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004163/0.2316, allocations: 218.7 kB / 0.7909 GB, free: 5.281 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2316, allocations: 0 / 0.7909 GB, free: 5.281 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.2318, allocations: 119.3 kB / 0.791 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.2321, allocations: 15.88 kB / 0.7911 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002188/0.2343, allocations: 1.72 MB / 0.7927 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.2346, allocations: 0.6908 MB / 0.7934 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.434e-05/0.2347, allocations: 11.98 kB / 0.7934 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.909e-05/0.2347, allocations: 23.42 kB / 0.7935 GB, free: 2.578 MB / 0.6075 GB Notification: Performance of SimCode: time 8.41e-07/0.2347, allocations: 3.938 kB / 0.7935 GB, free: 2.574 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.2516, allocations: 2.521 MB / 0.7959 GB, free: 204 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.983/7.234, allocations: 2.5 kB / 0.7959 GB, free: 204 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/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)