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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008667/0.0008667, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005077/0.005077, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.2/1.2, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.285/2.285, allocations: 437.8 MB / 0.7121 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002812, allocations: 8 kB / 0.8729 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5202/0.5205, allocations: 153.8 MB / 1.023 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001396/0.5219, allocations: 1.207 MB / 1.024 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0006616/0.5226, allocations: 451.1 kB / 1.025 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.547e-05/0.5227, allocations: 4 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 7.108e-05/0.5227, allocations: 7.922 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.872e-05/0.5228, allocations: 11.86 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001626/0.523, allocations: 31.97 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.5231, allocations: 87.75 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.472e-05/0.5232, allocations: 20.12 kB / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.5233, allocations: 35.89 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.279e-05/0.5234, allocations: 39.83 kB / 1.025 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.043e-05/0.5234, allocations: 4 kB / 1.025 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.417e-05/0.5234, allocations: 4 kB / 1.025 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.64e-05/0.5234, allocations: 15.92 kB / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.075e-05/0.5235, allocations: 57.56 kB / 1.025 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.5236, allocations: 77.98 kB / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.5236, allocations: 0 / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.382e-06/0.5236, allocations: 0 / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.5237, allocations: 0 / 1.025 GB, free: 13.84 MB / 0.7794 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.0005681/0.5242, allocations: 438.6 kB / 1.026 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.5243, allocations: 16.02 kB / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.755e-05/0.5243, allocations: 38.69 kB / 1.026 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.477e-05/0.5244, allocations: 8.938 kB / 1.026 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.5245, allocations: 196.1 kB / 1.026 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.5245, allocations: 12.36 kB / 1.026 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.958e-05/0.5246, allocations: 8.375 kB / 1.026 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002921/0.5249, allocations: 121.6 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.032e-06/0.5249, allocations: 0 / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.5249, allocations: 4 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.5249, allocations: 0 / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000303/0.5252, allocations: 107.9 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000479/0.5257, allocations: 340.7 kB / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003074/0.526, allocations: 122.5 kB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.5262, allocations: 84.81 kB / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.5262, allocations: 0 / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002966/0.5265, allocations: 139.3 kB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.422e-06/0.5265, allocations: 0 / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006784/0.5272, allocations: 299.2 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.5273, allocations: 81.11 kB / 1.027 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.846e-05/0.5274, allocations: 131.9 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.5274, allocations: 25.7 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.84e-05/0.5275, allocations: 96.05 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.5275, allocations: 23.88 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.294e-05/0.5275, allocations: 17.72 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.228e-05/0.5276, allocations: 326.8 kB / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001863/0.5278, allocations: 71.94 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.528, allocations: 79.89 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003334/0.5283, allocations: 193.9 kB / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.5284, allocations: 4 kB / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004814/0.5288, allocations: 276.8 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.164e-05/0.5289, allocations: 59.41 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.5289, allocations: 3.984 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.5289, allocations: 4.25 kB / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.529, allocations: 19.98 kB / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.5291, allocations: 4 kB / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.5292, allocations: 31.92 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.5292, allocations: 12.02 kB / 1.028 GB, free: 10.21 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.0001051/0.5293, allocations: 160 kB / 1.029 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.804e-05/0.5294, allocations: 11.91 kB / 1.029 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.778e-05/0.5294, allocations: 12.36 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.5294, allocations: 0 / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.5294, allocations: 4 kB / 1.029 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.5294, allocations: 0 / 1.029 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001251/0.5296, allocations: 189.5 kB / 1.029 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.5296, allocations: 4 kB / 1.029 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.319e-05/0.5297, allocations: 19.92 kB / 1.029 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.5297, allocations: 4 kB / 1.029 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.5297, allocations: 4 kB / 1.029 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.5297, allocations: 0 / 1.029 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.5297, allocations: 3.938 kB / 1.029 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004576/0.5302, allocations: 266.6 kB / 1.029 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.735e-05/0.5302, allocations: 81.02 kB / 1.029 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.699e-05/0.5302, allocations: 7.984 kB / 1.029 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.5304, allocations: 27.98 kB / 1.029 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.725e-05/0.5305, allocations: 35.95 kB / 1.029 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.5305, allocations: 4 kB / 1.029 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.658e-05/0.5306, allocations: 101.7 kB / 1.029 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5306, allocations: 0 / 1.029 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001954/0.5308, allocations: 28 kB / 1.029 GB, free: 9.16 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.00068/0.5315, allocations: 0.7977 MB / 1.03 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00046/0.5319, allocations: 282.7 kB / 1.03 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.5319, allocations: 0 / 1.03 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000241/0.5322, allocations: 147.4 kB / 1.03 GB, free: 7.871 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001916/0.5324, allocations: 19.92 kB / 1.03 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.5345, allocations: 1.808 MB / 1.032 GB, free: 5.941 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002019/0.5347, allocations: 0.6926 MB / 1.033 GB, free: 5.223 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.867e-05/0.5347, allocations: 11.98 kB / 1.033 GB, free: 5.211 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.523e-05/0.5348, allocations: 19.42 kB / 1.033 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of SimCode: time 3.01e-07/0.5348, allocations: 0 / 1.033 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.939/2.473, allocations: 2.546 MB / 1.035 GB, free: 2.785 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003014/2.474, allocations: 200.7 kB / 1.036 GB, free: 2.535 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/4.428, allocations: 1.125 kB / 1.036 GB, free: 2.535 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