Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.NumberOfRequests.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.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_NumberOfRequests",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.001516/0.001516, 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.001642/0.001642, allocations: 188.6 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.353/1.353, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.611/1.611, allocations: 292.3 MB / 0.549 GB, free: 12.71 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.001389/0.001389, allocations: 75.25 kB / 0.6718 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2198, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.003009/0.2228, allocations: 1.499 MB / 0.7851 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008142/0.2237, allocations: 495.7 kB / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.78e-05/0.2238, allocations: 0 / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 9.378e-05/0.2239, allocations: 7.875 kB / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.801e-05/0.224, allocations: 19.8 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002/0.2242, allocations: 35.95 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000172/0.2244, allocations: 99.75 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.2245, allocations: 16.19 kB / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.2246, allocations: 55.77 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.673e-05/0.2247, allocations: 35.83 kB / 0.7858 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.464e-05/0.2247, allocations: 8 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.732e-05/0.2247, allocations: 8 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.806e-05/0.2248, allocations: 15.92 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.881e-05/0.2249, allocations: 43.83 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001405/0.225, allocations: 80 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.225, allocations: 4 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.332e-06/0.225, allocations: 0 / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.2251, allocations: 0 / 0.786 GB, free: 10.86 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006845/0.2257, allocations: 456.9 kB / 0.7864 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2258, allocations: 12.03 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.06e-05/0.2258, allocations: 34.75 kB / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.798e-05/0.2259, allocations: 16.84 kB / 0.7865 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001901/0.2261, allocations: 196.1 kB / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.2261, allocations: 8.375 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.2261, allocations: 4.375 kB / 0.7867 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.2264, allocations: 121.6 kB / 0.7868 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.2264, allocations: 3.984 kB / 0.7868 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.2265, allocations: 0 / 0.7868 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.2265, allocations: 0 / 0.7868 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002846/0.2268, allocations: 87.92 kB / 0.7869 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005065/0.2273, allocations: 328.7 kB / 0.7872 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.2276, allocations: 110.5 kB / 0.7873 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.2278, allocations: 68.94 kB / 0.7873 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.331e-05/0.2278, allocations: 0 / 0.7873 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003021/0.2281, allocations: 131.3 kB / 0.7875 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.2281, allocations: 0 / 0.7875 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0006917/0.2288, allocations: 275.1 kB / 0.7877 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/0.2289, allocations: 81.11 kB / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.229, allocations: 136.4 kB / 0.7879 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.168e-05/0.229, allocations: 29.7 kB / 0.788 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.809e-05/0.2291, allocations: 101 kB / 0.7881 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.992e-05/0.2291, allocations: 19.88 kB / 0.7881 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.747e-05/0.2292, allocations: 29.7 kB / 0.7881 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.2293, allocations: 322.8 kB / 0.7884 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.2295, allocations: 63.95 kB / 0.7885 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.2297, allocations: 71.94 kB / 0.7885 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003272/0.23, allocations: 189.9 kB / 0.7887 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.23, allocations: 0 / 0.7887 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004667/0.2305, allocations: 252.9 kB / 0.789 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.534e-05/0.2305, allocations: 67.39 kB / 0.789 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.2306, allocations: 4 kB / 0.789 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.2306, allocations: 3.938 kB / 0.789 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.2307, allocations: 15.92 kB / 0.7891 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.2307, allocations: 4 kB / 0.7891 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001462/0.2309, allocations: 23.97 kB / 0.7891 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.2309, allocations: 7.938 kB / 0.7891 GB, free: 7.348 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,numReq.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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 0.0001185/0.231, allocations: 155.5 kB / 0.7892 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.785e-05/0.231, allocations: 11.91 kB / 0.7892 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.507e-05/0.2311, allocations: 8.375 kB / 0.7893 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.2311, allocations: 4 kB / 0.7893 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2311, allocations: 0 / 0.7893 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.2311, allocations: 0 / 0.7893 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001406/0.2312, allocations: 197.7 kB / 0.7894 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.2312, allocations: 4 kB / 0.7895 GB, free: 6.91 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.1e-05/0.2313, allocations: 11.98 kB / 0.7895 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2313, allocations: 0 / 0.7895 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.2314, allocations: 3.984 kB / 0.7895 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.2314, allocations: 8 kB / 0.7895 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2314, allocations: 0 / 0.7895 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004615/0.2318, allocations: 246.5 kB / 0.7897 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.339e-05/0.2319, allocations: 85.02 kB / 0.7898 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.2319, allocations: 8 kB / 0.7898 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.2321, allocations: 23.97 kB / 0.7898 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.2322, allocations: 31.97 kB / 0.7899 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.07e-05/0.2322, allocations: 11.92 kB / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.878e-05/0.2323, allocations: 103.2 kB / 0.79 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2323, allocations: 0 / 0.79 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001981/0.2325, allocations: 24 kB / 0.79 GB, free: 6.32 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,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * 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.0007355/0.2332, allocations: 0.7819 MB / 0.7907 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004671/0.2337, allocations: 258.7 kB / 0.791 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2337, allocations: 0 / 0.791 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002377/0.2339, allocations: 151.3 kB / 0.7911 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000193/0.2341, allocations: 12 kB / 0.7912 GB, free: 5.055 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.2363, allocations: 1.75 MB / 0.7929 GB, free: 3.211 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.2366, allocations: 0.6924 MB / 0.7935 GB, free: 2.492 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.941e-05/0.2367, allocations: 7.984 kB / 0.7935 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.248e-05/0.2367, allocations: 27.36 kB / 0.7936 GB, free: 2.461 MB / 0.6075 GB Notification: Performance of SimCode: time 3.1e-07/0.2367, allocations: 0 / 0.7936 GB, free: 2.461 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01669/0.2534, allocations: 2.996 MB / 0.7965 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.27/7.523, allocations: 14.33 kB / 0.7965 GB, free: 15.56 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)