Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_9_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.007823/0.007823, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001745/0.001745, allocations: 199.4 kB / 16.68 MB, free: 5.93 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.316/1.316, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.14/2.14, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.91 kB / 0.9504 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7328/0.7341, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.00239/0.7365, allocations: 1.475 MB / 1.089 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000719/0.7372, allocations: 468.6 kB / 1.089 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.894e-05/0.7373, allocations: 1.094 kB / 1.089 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.7374, allocations: 9.375 kB / 1.089 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.586e-05/0.7375, allocations: 10.91 kB / 1.089 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002275/0.7377, allocations: 29.91 kB / 1.089 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.7379, allocations: 107.2 kB / 1.089 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.738, allocations: 13.06 kB / 1.089 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001385/0.7382, allocations: 51.45 kB / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.947e-05/0.7383, allocations: 39.86 kB / 1.09 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.017e-05/0.7383, allocations: 7.406 kB / 1.09 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.063e-05/0.7383, allocations: 12.59 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.215e-05/0.7384, allocations: 17.91 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.338e-05/0.7385, allocations: 38.47 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001659/0.7386, allocations: 84.42 kB / 1.09 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.7387, allocations: 3.938 kB / 1.09 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.493e-06/0.7387, allocations: 1.25 kB / 1.09 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.7387, allocations: 0 / 1.09 GB, free: 3.742 MB / 0.8575 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.0006875/0.7394, allocations: 445.9 kB / 1.09 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.7394, allocations: 10.02 kB / 1.09 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.428e-05/0.7395, allocations: 38.62 kB / 1.09 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.627e-05/0.7395, allocations: 11.8 kB / 1.09 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.7397, allocations: 186.5 kB / 1.09 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.7397, allocations: 7.625 kB / 1.09 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.794e-05/0.7397, allocations: 10.28 kB / 1.09 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003459/0.7401, allocations: 114.2 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.7401, allocations: 0 / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.7401, allocations: 10.31 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.7401, allocations: 1.125 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003356/0.7405, allocations: 85.94 kB / 1.091 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005501/0.741, allocations: 335.2 kB / 1.091 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003402/0.7414, allocations: 111.7 kB / 1.091 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.7416, allocations: 71.44 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.7416, allocations: 1.156 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000347/0.742, allocations: 124.9 kB / 1.091 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.492e-06/0.742, allocations: 0 / 1.091 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0007563/0.7427, allocations: 279.5 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.7428, allocations: 82.67 kB / 1.092 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.489e-05/0.7429, allocations: 135 kB / 1.092 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.7429, allocations: 29.16 kB / 1.092 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.37e-05/0.743, allocations: 101.7 kB / 1.092 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.204e-05/0.743, allocations: 16.55 kB / 1.092 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.106e-05/0.7431, allocations: 28.11 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.846e-05/0.7431, allocations: 323.6 kB / 1.092 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.7433, allocations: 65.7 kB / 1.092 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001921/0.7435, allocations: 63.97 kB / 1.092 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/0.7439, allocations: 194.2 kB / 1.092 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.7439, allocations: 3.938 kB / 1.092 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005059/0.7444, allocations: 255.1 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.775e-05/0.7445, allocations: 65.7 kB / 1.093 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.7445, allocations: 160 / 1.093 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.7445, allocations: 5.016 kB / 1.093 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.7446, allocations: 18.92 kB / 1.093 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.7447, allocations: 8.797 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.7448, allocations: 32.28 kB / 1.093 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.7449, allocations: 7.797 kB / 1.093 GB, free: 1.316 MB / 0.8575 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 9.864e-05/0.745, allocations: 154.5 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.373e-05/0.745, allocations: 10.11 kB / 1.093 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.073e-05/0.745, allocations: 12.12 kB / 1.093 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.745, allocations: 5.094 kB / 1.093 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.745, allocations: 0 / 1.093 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.7451, allocations: 0.5156 kB / 1.093 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001323/0.7452, allocations: 196.1 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.7452, allocations: 0.7188 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.246e-05/0.7453, allocations: 12.17 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.7453, allocations: 0.6875 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.7453, allocations: 4.422 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.7453, allocations: 0 / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.7453, allocations: 0.7812 kB / 1.093 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000492/0.7458, allocations: 253.4 kB / 1.093 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.359e-05/0.7459, allocations: 83.94 kB / 1.094 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.7459, allocations: 7.766 kB / 1.094 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.7461, allocations: 19.42 kB / 1.094 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.7462, allocations: 39.8 kB / 1.094 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.7462, allocations: 3.984 kB / 1.094 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.579e-05/0.7463, allocations: 100.4 kB / 1.094 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7463, allocations: 0 / 1.094 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002109/0.7465, allocations: 29.75 kB / 1.094 GB, free: 0.5859 MB / 0.8575 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.0007835/0.7473, allocations: 0.7836 MB / 1.095 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005518/0.7478, allocations: 260.8 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.7479, allocations: 1.281 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002633/0.7481, allocations: 139.5 kB / 1.095 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.7483, allocations: 17 kB / 1.095 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.7508, allocations: 1.755 MB / 1.097 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.7511, allocations: 0.6936 MB / 1.097 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.023e-05/0.7511, allocations: 8.5 kB / 1.097 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.499e-05/0.7512, allocations: 21.33 kB / 1.097 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of SimCode: time 3.71e-07/0.7512, allocations: 0 / 1.097 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01871/0.7699, allocations: 3.006 MB / 1.1 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.405/8.175, allocations: 9.141 kB / 1.1 GB, free: 13.09 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.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 Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches