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.005162/0.005162, allocations: 102.3 kB / 15.73 MB, free: 6.023 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.001384/0.001384, allocations: 195.7 kB / 16.67 MB, free: 5.938 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00251/0.00251, allocations: 283.7 kB / 290.8 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.026/1.026, allocations: 169.2 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002821/0.002822, allocations: 99.84 kB / 0.6809 GB, free: 7.492 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4331/0.4359, allocations: 86.97 MB / 0.7659 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.002664/0.4386, allocations: 1.472 MB / 0.7673 GB, free: 2.383 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0007884/0.4394, allocations: 460.7 kB / 0.7677 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.942e-05/0.4395, allocations: 8 kB / 0.7678 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 8.874e-05/0.4396, allocations: 3.938 kB / 0.7678 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.27e-05/0.4397, allocations: 15.84 kB / 0.7678 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001908/0.4399, allocations: 31.89 kB / 0.7678 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001619/0.44, allocations: 95.83 kB / 0.7679 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.4402, allocations: 24.16 kB / 0.7679 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001339/0.4403, allocations: 51.78 kB / 0.768 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.155e-05/0.4404, allocations: 35.89 kB / 0.768 GB, free: 1.668 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.097e-05/0.4404, allocations: 8 kB / 0.768 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 2.21e-05/0.4405, allocations: 11.94 kB / 0.768 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.544e-05/0.4405, allocations: 11.98 kB / 0.768 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.047e-05/0.4406, allocations: 43.78 kB / 0.7681 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.4407, allocations: 81.25 kB / 0.7682 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.4408, allocations: 4 kB / 0.7682 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.072e-06/0.4408, allocations: 3.938 kB / 0.7682 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.4408, allocations: 0 / 0.7682 GB, free: 1.512 MB / 0.5294 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.0007053/0.4415, allocations: 450.1 kB / 0.7686 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.4415, allocations: 8.031 kB / 0.7686 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.587e-05/0.4416, allocations: 46.73 kB / 0.7686 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.78e-05/0.4416, allocations: 8.891 kB / 0.7686 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002001/0.4418, allocations: 196.2 kB / 0.7688 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.4419, allocations: 8.375 kB / 0.7688 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/0.4419, allocations: 8.375 kB / 0.7689 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.4422, allocations: 117.5 kB / 0.769 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.597e-06/0.4422, allocations: 0 / 0.769 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.4423, allocations: 4 kB / 0.769 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.4423, allocations: 0 / 0.769 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003163/0.4426, allocations: 87.92 kB / 0.7691 GB, free: 500 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005547/0.4432, allocations: 336.6 kB / 0.7694 GB, free: 112 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003258/0.4435, allocations: 98.52 kB / 0.7695 GB, free: 4 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002157/0.4437, allocations: 80.91 kB / 0.7695 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.4437, allocations: 4 kB / 0.7695 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003571/0.4441, allocations: 127.3 kB / 0.7697 GB, free: 15.78 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.4441, allocations: 0 / 0.7697 GB, free: 15.78 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0007448/0.4449, allocations: 275.2 kB / 0.7699 GB, free: 15.5 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.396e-05/0.445, allocations: 85.09 kB / 0.77 GB, free: 15.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.4451, allocations: 137.2 kB / 0.7701 GB, free: 15.26 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.4451, allocations: 25.7 kB / 0.7702 GB, free: 15.23 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.413e-05/0.4452, allocations: 104.1 kB / 0.7703 GB, free: 15.12 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.4452, allocations: 19.84 kB / 0.7703 GB, free: 15.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.648e-05/0.4453, allocations: 29.7 kB / 0.7703 GB, free: 15.07 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.4454, allocations: 326.8 kB / 0.7706 GB, free: 14.74 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.4457, allocations: 67.95 kB / 0.7707 GB, free: 14.67 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001923/0.4459, allocations: 63.95 kB / 0.7708 GB, free: 14.61 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003694/0.4462, allocations: 189.9 kB / 0.7709 GB, free: 14.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.4462, allocations: 0 / 0.7709 GB, free: 14.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005352/0.4468, allocations: 260.9 kB / 0.7712 GB, free: 14.13 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.953e-05/0.4469, allocations: 67.39 kB / 0.7712 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.4469, allocations: 4 kB / 0.7713 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.4469, allocations: 0 / 0.7713 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.447, allocations: 11.98 kB / 0.7713 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.447, allocations: 0 / 0.7713 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/0.4472, allocations: 27.97 kB / 0.7713 GB, free: 14.01 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.4472, allocations: 7.938 kB / 0.7713 GB, free: 14 MB / 0.545 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.0001318/0.4474, allocations: 154 kB / 0.7714 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.274e-05/0.4474, allocations: 11.95 kB / 0.7715 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.899e-05/0.4474, allocations: 12.36 kB / 0.7715 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.4474, allocations: 0 / 0.7715 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.4474, allocations: 0 / 0.7715 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.4474, allocations: 256 / 0.7715 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001744/0.4476, allocations: 193.5 kB / 0.7717 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4476, allocations: 4 kB / 0.7717 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.014e-05/0.4477, allocations: 15.98 kB / 0.7717 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.4477, allocations: 4 kB / 0.7717 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.4478, allocations: 0 / 0.7717 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.4478, allocations: 0 / 0.7717 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.4478, allocations: 3.938 kB / 0.7717 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005364/0.4483, allocations: 246.6 kB / 0.7719 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.816e-05/0.4484, allocations: 93 kB / 0.772 GB, free: 13.17 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.4484, allocations: 7.984 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.4486, allocations: 15.98 kB / 0.772 GB, free: 13.15 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.4487, allocations: 39.95 kB / 0.7721 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.4487, allocations: 4 kB / 0.7721 GB, free: 13.11 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.568e-05/0.4488, allocations: 103.2 kB / 0.7722 GB, free: 13 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.897e-06/0.4488, allocations: 0 / 0.7722 GB, free: 13 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002123/0.449, allocations: 23.94 kB / 0.7722 GB, free: 12.98 MB / 0.545 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.0008569/0.4499, allocations: 0.7858 MB / 0.773 GB, free: 12.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005363/0.4505, allocations: 266.7 kB / 0.7732 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4505, allocations: 3.938 kB / 0.7732 GB, free: 11.87 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002737/0.4507, allocations: 143.3 kB / 0.7733 GB, free: 11.72 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.451, allocations: 18.73 kB / 0.7734 GB, free: 11.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002521/0.4535, allocations: 1.75 MB / 0.7751 GB, free: 9.855 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.4538, allocations: 0.6885 MB / 0.7757 GB, free: 9.141 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.934e-05/0.4539, allocations: 11.98 kB / 0.7758 GB, free: 9.129 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.672e-05/0.454, allocations: 19.44 kB / 0.7758 GB, free: 9.109 MB / 0.545 GB Notification: Performance of SimCode: time 4.91e-07/0.454, allocations: 0 / 0.7758 GB, free: 9.109 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02465/0.4786, allocations: 3.02 MB / 0.7787 GB, free: 6.223 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.092/8.57, allocations: 15.69 kB / 0.7787 GB, free: 6.211 MB / 0.545 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)