Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_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.005906/0.005906, allocations: 97.41 kB / 15.73 MB, free: 6.039 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.001564/0.001565, allocations: 195.8 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002543/0.002543, allocations: 275 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.084/1.084, allocations: 178.6 MB / 0.5074 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003436/0.003436, allocations: 99.83 kB / 0.6943 GB, free: 3.656 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4777/0.4812, allocations: 89.14 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.00294/0.4842, allocations: 1.481 MB / 0.7827 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008848/0.4851, allocations: 462.8 kB / 0.7832 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.125e-05/0.4852, allocations: 1.375 kB / 0.7832 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.875e-05/0.4853, allocations: 9.047 kB / 0.7832 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.211e-05/0.4854, allocations: 10.78 kB / 0.7832 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002219/0.4856, allocations: 29.31 kB / 0.7832 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001853/0.4858, allocations: 112.7 kB / 0.7833 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.4859, allocations: 12.91 kB / 0.7834 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.486, allocations: 51.94 kB / 0.7834 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.351e-05/0.4861, allocations: 38.72 kB / 0.7834 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.816e-05/0.4862, allocations: 11.41 kB / 0.7835 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 2.182e-05/0.4862, allocations: 8.219 kB / 0.7835 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.789e-05/0.4863, allocations: 18.36 kB / 0.7835 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 8.802e-05/0.4864, allocations: 41.3 kB / 0.7835 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001644/0.4865, allocations: 80.33 kB / 0.7836 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.4865, allocations: 0 / 0.7836 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.016e-06/0.4865, allocations: 5.219 kB / 0.7836 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.4866, allocations: 0 / 0.7836 GB, free: 12.31 MB / 0.5606 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.0007776/0.4873, allocations: 450.2 kB / 0.784 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.4874, allocations: 9.156 kB / 0.784 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.346e-05/0.4874, allocations: 43.11 kB / 0.7841 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.906e-05/0.4875, allocations: 10.14 kB / 0.7841 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.4877, allocations: 191.5 kB / 0.7843 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.4877, allocations: 7.281 kB / 0.7843 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.714e-05/0.4878, allocations: 10.84 kB / 0.7843 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.4881, allocations: 118.5 kB / 0.7844 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.4881, allocations: 0 / 0.7844 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.4881, allocations: 1.891 kB / 0.7844 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.4881, allocations: 1.094 kB / 0.7844 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003193/0.4885, allocations: 89.98 kB / 0.7845 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005877/0.4891, allocations: 335.5 kB / 0.7848 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003382/0.4894, allocations: 107.6 kB / 0.7849 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.4896, allocations: 72.23 kB / 0.785 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.4896, allocations: 0 / 0.785 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003449/0.49, allocations: 125.7 kB / 0.7851 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.49, allocations: 0 / 0.7851 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.000779/0.4908, allocations: 283.9 kB / 0.7854 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.434e-05/0.4909, allocations: 81.62 kB / 0.7855 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.491, allocations: 131.4 kB / 0.7856 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.491, allocations: 28.83 kB / 0.7856 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.948e-05/0.4911, allocations: 102.9 kB / 0.7857 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.537e-05/0.4911, allocations: 19.97 kB / 0.7857 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.672e-05/0.4912, allocations: 35.66 kB / 0.7858 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.4914, allocations: 319.3 kB / 0.7861 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.4916, allocations: 67.69 kB / 0.7861 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.4918, allocations: 66.42 kB / 0.7862 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003817/0.4922, allocations: 187 kB / 0.7864 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4922, allocations: 3.938 kB / 0.7864 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005356/0.4927, allocations: 253.6 kB / 0.7866 GB, free: 9.977 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.155e-05/0.4928, allocations: 66.58 kB / 0.7867 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4928, allocations: 0 / 0.7867 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.4928, allocations: 1.531 kB / 0.7867 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.493, allocations: 14.92 kB / 0.7867 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-06/0.493, allocations: 0 / 0.7867 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.4932, allocations: 32.03 kB / 0.7867 GB, free: 9.898 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.4932, allocations: 8.062 kB / 0.7867 GB, free: 9.895 MB / 0.5606 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.0001417/0.4933, allocations: 152.7 kB / 0.7869 GB, free: 9.742 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.306e-05/0.4934, allocations: 9.484 kB / 0.7869 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.015e-05/0.4934, allocations: 13.08 kB / 0.7869 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.4934, allocations: 0 / 0.7869 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4934, allocations: 0 / 0.7869 GB, free: 9.73 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.4934, allocations: 4.562 kB / 0.7869 GB, free: 9.727 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/0.4936, allocations: 196.2 kB / 0.7871 GB, free: 9.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.4936, allocations: 1.188 kB / 0.7871 GB, free: 9.52 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.894e-05/0.4937, allocations: 12.67 kB / 0.7871 GB, free: 9.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.4937, allocations: 3.984 kB / 0.7871 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.4938, allocations: 3.156 kB / 0.7871 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.4938, allocations: 1.969 kB / 0.7871 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4938, allocations: 0 / 0.7871 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005484/0.4943, allocations: 255 kB / 0.7874 GB, free: 9.371 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.869e-05/0.4944, allocations: 86.83 kB / 0.7874 GB, free: 9.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.955e-05/0.4944, allocations: 7.516 kB / 0.7874 GB, free: 9.266 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.4946, allocations: 22.7 kB / 0.7875 GB, free: 9.262 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.4947, allocations: 38.12 kB / 0.7875 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.4947, allocations: 3.109 kB / 0.7875 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.383e-05/0.4948, allocations: 107.4 kB / 0.7876 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4948, allocations: 3.938 kB / 0.7876 GB, free: 9.156 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002129/0.4951, allocations: 22.56 kB / 0.7876 GB, free: 9.156 MB / 0.5606 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.0008676/0.4959, allocations: 0.787 MB / 0.7884 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005432/0.4965, allocations: 261.7 kB / 0.7887 GB, free: 8.324 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4965, allocations: 3.938 kB / 0.7887 GB, free: 8.32 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000287/0.4968, allocations: 140 kB / 0.7888 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.497, allocations: 14.45 kB / 0.7888 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00265/0.4997, allocations: 1.742 MB / 0.7905 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.5001, allocations: 0.689 MB / 0.7912 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.622e-05/0.5001, allocations: 12.19 kB / 0.7912 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.368e-05/0.5002, allocations: 21.67 kB / 0.7912 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of SimCode: time 5.81e-07/0.5002, allocations: 0 / 0.7912 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02604/0.5263, allocations: 3.023 MB / 0.7942 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.869/8.395, allocations: 9.438 kB / 0.7942 GB, free: 5.684 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)