Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_10_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.001186/0.001186, allocations: 108 kB / 15.6 MB, free: 132 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.001187/0.001187, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.242/1.242, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.378/2.378, allocations: 437 MB / 0.7104 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 63.91 kB / 0.8693 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4789/0.4801, allocations: 151.6 MB / 1.017 GB, free: 2.566 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002465/0.4826, allocations: 1.475 MB / 1.019 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006679/0.4833, allocations: 462.9 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.328e-05/0.4834, allocations: 0 / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 7.962e-05/0.4835, allocations: 11.92 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.21e-05/0.4835, allocations: 11.86 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001865/0.4837, allocations: 39.83 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001426/0.4838, allocations: 99.77 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.238e-05/0.4839, allocations: 20.17 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.4841, allocations: 51.83 kB / 1.02 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.198e-05/0.4842, allocations: 39.83 kB / 1.02 GB, free: 364 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.603e-05/0.4842, allocations: 8 kB / 1.02 GB, free: 356 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.813e-05/0.4842, allocations: 8 kB / 1.02 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.049e-05/0.4843, allocations: 15.98 kB / 1.02 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.085e-05/0.4843, allocations: 47.78 kB / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.4844, allocations: 74.02 kB / 1.02 GB, free: 212 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.4844, allocations: 0 / 1.02 GB, free: 212 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.102e-06/0.4845, allocations: 0 / 1.02 GB, free: 212 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.4845, allocations: 0 / 1.02 GB, free: 212 kB / 0.7637 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.000615/0.4851, allocations: 454.5 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.4851, allocations: 8.031 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.849e-05/0.4852, allocations: 38.73 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.495e-05/0.4852, allocations: 12.84 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.4854, allocations: 188.2 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.4854, allocations: 8.375 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.931e-05/0.4854, allocations: 8.375 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002872/0.4857, allocations: 117.5 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.4857, allocations: 0 / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.4857, allocations: 4 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-06/0.4858, allocations: 0 / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002927/0.486, allocations: 95.86 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.4865, allocations: 332.6 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002942/0.4868, allocations: 106.5 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.487, allocations: 80.92 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.4871, allocations: 0 / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002885/0.4873, allocations: 127.2 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.423e-06/0.4874, allocations: 0 / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006706/0.488, allocations: 279.2 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.4881, allocations: 85.09 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.715e-05/0.4882, allocations: 130.8 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.4882, allocations: 29.7 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.572e-05/0.4883, allocations: 88.14 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.4883, allocations: 19.88 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.753e-05/0.4884, allocations: 37.7 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.08e-05/0.4885, allocations: 322.8 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001829/0.4886, allocations: 67.89 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.4888, allocations: 71.89 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003292/0.4892, allocations: 181.9 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.4892, allocations: 0 / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004648/0.4896, allocations: 260.8 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.465e-05/0.4897, allocations: 63.39 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.4897, allocations: 4 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.4897, allocations: 0 / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.4898, allocations: 11.98 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.4899, allocations: 0 / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.49, allocations: 39.81 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.49, allocations: 8.094 kB / 1.023 GB, free: 12.69 MB / 0.7794 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.000101/0.4901, allocations: 148.6 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.012e-05/0.4902, allocations: 8 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.735e-05/0.4902, allocations: 12.36 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.4902, allocations: 0 / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.4902, allocations: 0 / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.4902, allocations: 0 / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.4904, allocations: 201.5 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.4904, allocations: 0 / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.497e-05/0.4905, allocations: 15.92 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.4905, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.4905, allocations: 4 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4905, allocations: 0 / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.4905, allocations: 3.984 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004496/0.4909, allocations: 250.6 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.593e-05/0.491, allocations: 89.14 kB / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.591e-05/0.491, allocations: 8.234 kB / 1.024 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.4912, allocations: 19.98 kB / 1.024 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.4913, allocations: 39.95 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.4913, allocations: 4 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.415e-05/0.4914, allocations: 103.9 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4914, allocations: 4 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002005/0.4916, allocations: 20 kB / 1.024 GB, free: 11.67 MB / 0.7794 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.000695/0.4923, allocations: 0.7832 MB / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004668/0.4927, allocations: 278.6 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4928, allocations: 0 / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002371/0.493, allocations: 135.4 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001909/0.4932, allocations: 17.7 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002056/0.4953, allocations: 1.74 MB / 1.027 GB, free: 8.555 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000203/0.4955, allocations: 0.6924 MB / 1.027 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.748e-05/0.4955, allocations: 7.984 kB / 1.027 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.006e-05/0.4956, allocations: 23.44 kB / 1.027 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.4956, allocations: 0 / 1.027 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01762/0.5132, allocations: 2.967 MB / 1.03 GB, free: 4.926 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.663/7.176, allocations: 15.88 kB / 1.03 GB, free: 4.91 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches