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.007932/0.007932, allocations: 98.3 kB / 15.73 MB, free: 6.004 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.001896/0.001896, allocations: 190.9 kB / 16.67 MB, free: 5.934 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.579/1.579, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.889/2.889, allocations: 437.1 MB / 0.7105 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 67.89 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2764, allocations: 151.6 MB / 1.166 GB, free: 7.309 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002583/0.279, allocations: 1.474 MB / 1.168 GB, free: 5.816 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007807/0.2798, allocations: 462.9 kB / 1.168 GB, free: 5.359 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.034e-05/0.2798, allocations: 4 kB / 1.168 GB, free: 5.355 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 8.654e-05/0.2799, allocations: 7.938 kB / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.773e-05/0.28, allocations: 11.86 kB / 1.168 GB, free: 5.336 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001924/0.2802, allocations: 35.89 kB / 1.168 GB, free: 5.301 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001624/0.2804, allocations: 99.81 kB / 1.168 GB, free: 5.203 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.291e-05/0.2805, allocations: 16.19 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.2806, allocations: 55.75 kB / 1.168 GB, free: 5.133 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.386e-05/0.2807, allocations: 35.89 kB / 1.168 GB, free: 5.098 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.006e-05/0.2807, allocations: 8 kB / 1.168 GB, free: 5.09 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.997e-05/0.2808, allocations: 11.94 kB / 1.168 GB, free: 5.078 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.704e-05/0.2808, allocations: 15.98 kB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.68e-05/0.2809, allocations: 39.8 kB / 1.168 GB, free: 5.023 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.281, allocations: 79.97 kB / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.281, allocations: 0 / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2811, allocations: 0 / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.2811, allocations: 4 kB / 1.168 GB, free: 4.941 MB / 0.92 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.0007579/0.2818, allocations: 454.5 kB / 1.169 GB, free: 4.438 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.2819, allocations: 8.031 kB / 1.169 GB, free: 4.43 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.468e-05/0.2819, allocations: 38.69 kB / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.757e-05/0.282, allocations: 8.891 kB / 1.169 GB, free: 4.375 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002124/0.2822, allocations: 192.2 kB / 1.169 GB, free: 4.148 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.2822, allocations: 12.34 kB / 1.169 GB, free: 4.137 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.2822, allocations: 8.375 kB / 1.169 GB, free: 4.129 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003136/0.2826, allocations: 125.5 kB / 1.169 GB, free: 4 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.2826, allocations: 0 / 1.169 GB, free: 4 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.2826, allocations: 4 kB / 1.169 GB, free: 3.996 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.2826, allocations: 0 / 1.169 GB, free: 3.996 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003124/0.2829, allocations: 95.84 kB / 1.169 GB, free: 3.902 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000557/0.2835, allocations: 332.7 kB / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003266/0.2838, allocations: 102.5 kB / 1.17 GB, free: 3.418 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002035/0.2841, allocations: 72.94 kB / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.2841, allocations: 0 / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003202/0.2844, allocations: 131.2 kB / 1.17 GB, free: 3.203 MB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 1.823e-06/0.2844, allocations: 0 / 1.17 GB, free: 3.203 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0007379/0.2852, allocations: 271.2 kB / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.47e-05/0.2852, allocations: 89.09 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.2854, allocations: 128.4 kB / 1.17 GB, free: 2.688 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.2854, allocations: 29.7 kB / 1.17 GB, free: 2.652 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.296e-05/0.2855, allocations: 100 kB / 1.171 GB, free: 2.551 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.473e-05/0.2855, allocations: 19.84 kB / 1.171 GB, free: 2.531 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.929e-05/0.2856, allocations: 33.7 kB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.2858, allocations: 326.8 kB / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.286, allocations: 64.03 kB / 1.171 GB, free: 2.102 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.2862, allocations: 75.88 kB / 1.171 GB, free: 2.027 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.2866, allocations: 177.9 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2866, allocations: 0 / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005422/0.2871, allocations: 261 kB / 1.171 GB, free: 1.559 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 5.335e-05/0.2872, allocations: 67.34 kB / 1.172 GB, free: 1.48 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.2872, allocations: 4 kB / 1.172 GB, free: 1.477 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.2873, allocations: 0 / 1.172 GB, free: 1.477 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.2874, allocations: 15.97 kB / 1.172 GB, free: 1.461 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.2874, allocations: 0 / 1.172 GB, free: 1.461 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001538/0.2876, allocations: 24.23 kB / 1.172 GB, free: 1.438 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.2876, allocations: 7.938 kB / 1.172 GB, free: 1.43 MB / 0.92 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.0001498/0.2877, allocations: 155.5 kB / 1.172 GB, free: 1.262 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.255e-05/0.2878, allocations: 15.95 kB / 1.172 GB, free: 1.246 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.847e-05/0.2878, allocations: 8.375 kB / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2878, allocations: 3.984 kB / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2878, allocations: 0 / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2878, allocations: 0 / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001738/0.288, allocations: 197.5 kB / 1.172 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.288, allocations: 0 / 1.172 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.538e-05/0.2881, allocations: 15.92 kB / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.2881, allocations: 4 kB / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.2882, allocations: 4 kB / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2882, allocations: 0 / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2882, allocations: 0 / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005347/0.2887, allocations: 250.6 kB / 1.172 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.606e-05/0.2888, allocations: 85.06 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.2888, allocations: 0 / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.289, allocations: 23.97 kB / 1.172 GB, free: 0.5742 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.2891, allocations: 39.95 kB / 1.172 GB, free: 0.5352 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.2891, allocations: 4 kB / 1.172 GB, free: 0.5312 MB / 0.92 GB Notification: Performance of sorting global known variables: time 7.274e-05/0.2892, allocations: 103.2 kB / 1.172 GB, free: 440 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.944e-06/0.2892, allocations: 0 / 1.172 GB, free: 440 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002089/0.2894, allocations: 23.94 kB / 1.172 GB, free: 416 kB / 0.92 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.0009414/0.2904, allocations: 0.7819 MB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005557/0.2909, allocations: 266.7 kB / 1.173 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.291, allocations: 0 / 1.173 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002789/0.2912, allocations: 147.3 kB / 1.174 GB, free: 15.15 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002067/0.2915, allocations: 15.98 kB / 1.174 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002451/0.2939, allocations: 1.761 MB / 1.175 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003235/0.2943, allocations: 0.6885 MB / 1.176 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.155e-05/0.2943, allocations: 11.98 kB / 1.176 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.685e-05/0.2944, allocations: 23.42 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of SimCode: time 3.01e-07/0.2944, allocations: 0 / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02488/0.3193, allocations: 2.997 MB / 1.179 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.01/9.33, allocations: 22.38 kB / 1.179 GB, free: 9.617 MB / 0.9356 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