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.0008448/0.0008448, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.005101/0.005101, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.194/1.194, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.088/2.088, allocations: 390.9 MB / 0.6664 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002824/0.0002824, allocations: 12 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5229/0.5232, allocations: 142.4 MB / 0.9552 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.0013/0.5246, allocations: 1.188 MB / 0.9563 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006181/0.5252, allocations: 468.1 kB / 0.9568 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.864e-05/0.5253, allocations: 0 / 0.9568 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.213e-05/0.5253, allocations: 4.844 kB / 0.9568 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.364e-05/0.5254, allocations: 10.2 kB / 0.9568 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000172/0.5256, allocations: 41.61 kB / 0.9568 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.863e-05/0.5257, allocations: 85.61 kB / 0.9569 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.639e-05/0.5258, allocations: 17.89 kB / 0.9569 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.5259, allocations: 46.02 kB / 0.957 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.379e-05/0.526, allocations: 38.33 kB / 0.957 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.21e-05/0.526, allocations: 4.344 kB / 0.957 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.412e-05/0.526, allocations: 4.312 kB / 0.957 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.603e-05/0.5261, allocations: 11.33 kB / 0.957 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.861e-05/0.5261, allocations: 65.69 kB / 0.9571 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001009/0.5262, allocations: 76.17 kB / 0.9572 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.5262, allocations: 1.062 kB / 0.9572 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.473e-06/0.5262, allocations: 0 / 0.9572 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.5263, allocations: 0 / 0.9572 GB, free: 6.094 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.0005335/0.5268, allocations: 436 kB / 0.9576 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.5268, allocations: 13.41 kB / 0.9576 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.247e-05/0.5269, allocations: 38.44 kB / 0.9576 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.701e-05/0.5269, allocations: 9.688 kB / 0.9576 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.527, allocations: 192.7 kB / 0.9578 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.878e-06/0.5271, allocations: 7.469 kB / 0.9578 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.371e-05/0.5271, allocations: 10.38 kB / 0.9578 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002821/0.5274, allocations: 137.5 kB / 0.958 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.5274, allocations: 1.188 kB / 0.958 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.5274, allocations: 1.156 kB / 0.958 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.5274, allocations: 1.188 kB / 0.958 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/0.5277, allocations: 105.5 kB / 0.9581 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004455/0.5282, allocations: 334.6 kB / 0.9584 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003009/0.5285, allocations: 126.2 kB / 0.9585 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.5287, allocations: 78.38 kB / 0.9586 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.504e-05/0.5287, allocations: 4 kB / 0.9586 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002747/0.529, allocations: 130.9 kB / 0.9587 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.529, allocations: 0 / 0.9587 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0006381/0.5296, allocations: 302.8 kB / 0.959 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.5297, allocations: 83.86 kB / 0.9591 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.308e-05/0.5297, allocations: 130.9 kB / 0.9592 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.5298, allocations: 28.45 kB / 0.9592 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.823e-05/0.5298, allocations: 100.2 kB / 0.9593 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.908e-05/0.5298, allocations: 15.94 kB / 0.9593 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-05/0.5299, allocations: 17.84 kB / 0.9594 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.378e-05/0.5299, allocations: 321.5 kB / 0.9597 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.5301, allocations: 79.89 kB / 0.9597 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.5303, allocations: 77.31 kB / 0.9598 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.5306, allocations: 201.4 kB / 0.96 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5306, allocations: 3.938 kB / 0.96 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004463/0.531, allocations: 276.1 kB / 0.9603 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/0.5311, allocations: 63.95 kB / 0.9603 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.5311, allocations: 0 / 0.9603 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.5311, allocations: 0.9062 kB / 0.9603 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.5312, allocations: 16.98 kB / 0.9604 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.5313, allocations: 1.594 kB / 0.9604 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.5314, allocations: 43.5 kB / 0.9604 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.738e-05/0.5314, allocations: 6.562 kB / 0.9604 GB, free: 3.371 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 8.418e-05/0.5315, allocations: 155 kB / 0.9605 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.026e-05/0.5315, allocations: 12.98 kB / 0.9606 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.489e-05/0.5316, allocations: 9.906 kB / 0.9606 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.5316, allocations: 1.312 kB / 0.9606 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.5316, allocations: 8 kB / 0.9606 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.5316, allocations: 1.312 kB / 0.9606 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.593e-05/0.5317, allocations: 192.2 kB / 0.9608 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.5317, allocations: 0 / 0.9608 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.272e-05/0.5318, allocations: 15.45 kB / 0.9608 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.5318, allocations: 0.9688 kB / 0.9608 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.5318, allocations: 3 kB / 0.9608 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.5318, allocations: 3.984 kB / 0.9608 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.5318, allocations: 5 kB / 0.9608 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004522/0.5323, allocations: 266.9 kB / 0.961 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.227e-05/0.5323, allocations: 86.98 kB / 0.9611 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.431e-05/0.5324, allocations: 3.219 kB / 0.9611 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.5325, allocations: 26.69 kB / 0.9612 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.5326, allocations: 30.28 kB / 0.9612 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.5326, allocations: 15.14 kB / 0.9612 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.15e-05/0.5327, allocations: 99.73 kB / 0.9613 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5327, allocations: 4 kB / 0.9613 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001989/0.5329, allocations: 26 kB / 0.9613 GB, free: 2.555 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.0006001/0.5335, allocations: 0.7975 MB / 0.9621 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000458/0.534, allocations: 277.3 kB / 0.9624 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.534, allocations: 5.062 kB / 0.9624 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002227/0.5342, allocations: 144.9 kB / 0.9625 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001917/0.5344, allocations: 15.16 kB / 0.9625 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001899/0.5363, allocations: 1.803 MB / 0.9643 GB, free: 72 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002759/0.5366, allocations: 0.6888 MB / 0.965 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.004e-05/0.5367, allocations: 9.703 kB / 0.965 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.576e-05/0.5367, allocations: 14.09 kB / 0.965 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of SimCode: time 4.21e-07/0.5367, allocations: 0 / 0.965 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3673/0.9041, allocations: 2.535 MB / 0.9675 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001939/0.9043, allocations: 210.5 kB / 0.9677 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.615/2.52, allocations: 0 / 0.9677 GB, free: 13.87 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