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.001202/0.001202, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001203/0.001203, allocations: 190.6 kB / 16.25 MB, free: 6.633 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.9 MB, free: 4.504 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.203/2.203, allocations: 437.1 MB / 0.7101 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 59.91 kB / 0.8688 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4619/0.4633, allocations: 151.6 MB / 1.017 GB, free: 2.668 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002125/0.4654, allocations: 1.546 MB / 1.018 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005793/0.466, allocations: 463 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.651e-05/0.4661, allocations: 0 / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 7.483e-05/0.4662, allocations: 3.938 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.112e-05/0.4662, allocations: 19.84 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001566/0.4664, allocations: 31.97 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.4665, allocations: 95.77 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.504e-05/0.4666, allocations: 16.16 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.4667, allocations: 51.84 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.546e-05/0.4668, allocations: 43.83 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.4668, allocations: 8 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.484e-05/0.4669, allocations: 8 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.14e-05/0.4669, allocations: 11.92 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.177e-05/0.4669, allocations: 43.84 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.4671, allocations: 78.02 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.4671, allocations: 4 kB / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4671, allocations: 0 / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.4671, allocations: 0 / 1.019 GB, free: 256 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.0005649/0.4677, allocations: 446.6 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.4677, allocations: 12.03 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.976e-05/0.4677, allocations: 34.75 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.391e-05/0.4678, allocations: 12.84 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.4679, allocations: 203.9 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.396e-06/0.4679, allocations: 4.375 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.468, allocations: 4.375 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.4682, allocations: 125.5 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.711e-06/0.4682, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.4683, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.526e-06/0.4683, allocations: 0 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000261/0.4685, allocations: 87.92 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004379/0.469, allocations: 344.5 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002672/0.4693, allocations: 102.5 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.4694, allocations: 68.94 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.4694, allocations: 7.938 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002675/0.4697, allocations: 127.3 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 2.535e-06/0.4697, allocations: 3.938 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006017/0.4703, allocations: 275.1 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.4704, allocations: 85.11 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.711e-05/0.4705, allocations: 131.8 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.4705, allocations: 33.7 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.542e-05/0.4705, allocations: 96.19 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.4706, allocations: 15.81 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.215e-05/0.4706, allocations: 29.7 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.564e-05/0.4707, allocations: 322.8 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.4709, allocations: 63.94 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.4711, allocations: 71.95 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.4714, allocations: 181.8 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.4714, allocations: 0 / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000426/0.4718, allocations: 260.9 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.267e-05/0.4719, allocations: 67.41 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.4719, allocations: 3.938 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.948e-06/0.4719, allocations: 0 / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.472, allocations: 15.97 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.207e-06/0.472, allocations: 4 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.4721, allocations: 23.83 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.4722, allocations: 7.938 kB / 1.022 GB, free: 12.75 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 9.298e-05/0.4723, allocations: 160.1 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.4723, allocations: 4 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.309e-05/0.4723, allocations: 8.375 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.4723, allocations: 4.094 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.4723, allocations: 4.188 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.4723, allocations: 3.984 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001151/0.4725, allocations: 197.5 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.4725, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.131e-05/0.4726, allocations: 15.97 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.4726, allocations: 0 / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.4726, allocations: 8 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.4726, allocations: 4 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4726, allocations: 0 / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004068/0.473, allocations: 250.5 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.865e-05/0.473, allocations: 81.11 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.4731, allocations: 4 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.4732, allocations: 27.97 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.351e-05/0.4733, allocations: 31.95 kB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.4733, allocations: 4 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.096e-05/0.4734, allocations: 105.2 kB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4734, allocations: 0 / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001932/0.4736, allocations: 28 kB / 1.023 GB, free: 11.71 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.000615/0.4742, allocations: 0.778 MB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004271/0.4746, allocations: 266.7 kB / 1.024 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.4747, allocations: 4 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002234/0.4749, allocations: 139.3 kB / 1.024 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001799/0.4751, allocations: 19.92 kB / 1.024 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00186/0.4769, allocations: 1.765 MB / 1.026 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/0.4771, allocations: 0.6885 MB / 1.027 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.584e-05/0.4772, allocations: 7.984 kB / 1.027 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.435e-05/0.4772, allocations: 27.38 kB / 1.027 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.4772, allocations: 0 / 1.027 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7101/1.187, allocations: 2.723 MB / 1.03 GB, free: 5.242 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002538/1.188, allocations: 203.4 kB / 1.03 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.663/2.851, allocations: 0 / 1.03 GB, free: 4.988 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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) "" 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