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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001496/0.001496, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001191/0.001191, allocations: 194.5 kB / 16.14 MB, free: 6.645 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.175/1.175, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.075/2.075, allocations: 390.2 MB / 0.6643 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4798/0.4809, allocations: 140.4 MB / 0.949 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001978/0.4829, allocations: 1.538 MB / 0.9506 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005274/0.4834, allocations: 460.9 kB / 0.951 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.403e-05/0.4835, allocations: 0 / 0.951 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.697e-05/0.4836, allocations: 7.922 kB / 0.951 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.897e-05/0.4836, allocations: 14.67 kB / 0.951 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001436/0.4838, allocations: 37.41 kB / 0.951 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.732e-05/0.4839, allocations: 89.19 kB / 0.9511 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.86e-05/0.484, allocations: 14.7 kB / 0.9511 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.4841, allocations: 46.2 kB / 0.9512 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.204e-05/0.4842, allocations: 40.08 kB / 0.9512 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.536e-05/0.4842, allocations: 7.625 kB / 0.9512 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.929e-05/0.4842, allocations: 5.594 kB / 0.9512 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.918e-05/0.4843, allocations: 7.016 kB / 0.9512 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.258e-05/0.4844, allocations: 35.8 kB / 0.9513 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.4845, allocations: 84.53 kB / 0.9514 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.4845, allocations: 1.312 kB / 0.9514 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.82e-07/0.4845, allocations: 0 / 0.9514 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.707e-06/0.4845, allocations: 0 / 0.9514 GB, free: 7.367 MB / 0.7169 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.0005492/0.4851, allocations: 449.3 kB / 0.9518 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.4851, allocations: 8.625 kB / 0.9518 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.558e-05/0.4851, allocations: 37.67 kB / 0.9518 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.189e-05/0.4852, allocations: 10.56 kB / 0.9518 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.4853, allocations: 196.9 kB / 0.952 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.4853, allocations: 7.312 kB / 0.952 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.837e-05/0.4853, allocations: 7.094 kB / 0.952 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/0.4856, allocations: 119 kB / 0.9522 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.4856, allocations: 0 / 0.9522 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.4856, allocations: 5.375 kB / 0.9522 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.4856, allocations: 1.281 kB / 0.9522 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002684/0.4859, allocations: 86.95 kB / 0.9523 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003816/0.4863, allocations: 340 kB / 0.9526 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.4866, allocations: 113.3 kB / 0.9527 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.4867, allocations: 71.75 kB / 0.9528 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.07e-05/0.4867, allocations: 0 / 0.9528 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00025/0.487, allocations: 123.9 kB / 0.9529 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.487, allocations: 0 / 0.9529 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005789/0.4876, allocations: 273.9 kB / 0.9531 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.4876, allocations: 89.59 kB / 0.9532 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.361e-05/0.4877, allocations: 130.1 kB / 0.9533 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.4877, allocations: 36.67 kB / 0.9534 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.92e-05/0.4877, allocations: 87.08 kB / 0.9535 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.722e-05/0.4878, allocations: 24.2 kB / 0.9535 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.897e-05/0.4878, allocations: 29.06 kB / 0.9535 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.264e-05/0.4879, allocations: 328.9 kB / 0.9538 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/0.488, allocations: 61.86 kB / 0.9539 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.4882, allocations: 66.64 kB / 0.9539 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.4885, allocations: 186.9 kB / 0.9541 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.4885, allocations: 0 / 0.9541 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003963/0.4889, allocations: 258.6 kB / 0.9544 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.4889, allocations: 64.2 kB / 0.9544 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-06/0.4889, allocations: 0 / 0.9544 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.947e-06/0.4889, allocations: 4 kB / 0.9544 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.489, allocations: 21.48 kB / 0.9545 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.878e-06/0.489, allocations: 1.406 kB / 0.9545 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001322/0.4892, allocations: 29.34 kB / 0.9545 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.4892, allocations: 7.25 kB / 0.9545 GB, free: 4.645 MB / 0.7169 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 6.644e-05/0.4893, allocations: 149.9 kB / 0.9546 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.761e-05/0.4893, allocations: 5.969 kB / 0.9546 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.201e-05/0.4893, allocations: 17.58 kB / 0.9547 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.4893, allocations: 1.25 kB / 0.9547 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.4893, allocations: 96 / 0.9547 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.4893, allocations: 5.094 kB / 0.9547 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.712e-05/0.4894, allocations: 195.5 kB / 0.9548 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4894, allocations: 1.406 kB / 0.9549 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.694e-05/0.4895, allocations: 16.27 kB / 0.9549 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.4895, allocations: 0 / 0.9549 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.4896, allocations: 6.375 kB / 0.9549 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.4896, allocations: 1.25 kB / 0.9549 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.4896, allocations: 4 kB / 0.9549 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003766/0.4899, allocations: 245.2 kB / 0.9551 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.722e-05/0.49, allocations: 83.2 kB / 0.9552 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.49, allocations: 7.797 kB / 0.9552 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.4901, allocations: 15.89 kB / 0.9552 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.18e-05/0.4902, allocations: 41.92 kB / 0.9553 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.4902, allocations: 3.938 kB / 0.9553 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.637e-05/0.4903, allocations: 103.6 kB / 0.9554 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4903, allocations: 0 / 0.9554 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000189/0.4905, allocations: 25.14 kB / 0.9554 GB, free: 3.84 MB / 0.7169 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.0005247/0.491, allocations: 0.7839 MB / 0.9561 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003701/0.4914, allocations: 264.9 kB / 0.9564 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.4914, allocations: 0 / 0.9564 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001884/0.4916, allocations: 144.8 kB / 0.9565 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001777/0.4918, allocations: 19.84 kB / 0.9566 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.4934, allocations: 1.75 MB / 0.9583 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.984e-05/0.4935, allocations: 0.6868 MB / 0.9589 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.694e-05/0.4936, allocations: 9.984 kB / 0.9589 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.126e-05/0.4936, allocations: 21.23 kB / 0.959 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of SimCode: time 7.01e-07/0.4936, allocations: 0 / 0.959 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3175/0.8112, allocations: 2.615 MB / 0.9615 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002039/0.8114, allocations: 204.3 kB / 0.9617 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.536/2.347, allocations: 2.625 kB / 0.9617 GB, free: 15.07 MB / 0.7325 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,numReq.u[1],numReq.u[2],numReq.y Variables in the result:numReq.kind,numReq.nin,numReq.threShold,numReq.u[1],numReq.u[2],numReq.y,pulse.amplitude,pulse.nperiod,pulse.offset,pulse.period,pulse.startTime,pulse.width,pulse.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time