Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_latest_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.0009322/0.0009322, allocations: 98.03 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.004756/0.004756, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.178/1.178, 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 11.0.0-master/package.mo): time 2.358/2.358, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002808/0.0002808, allocations: 8.656 kB / 0.9029 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2184, allocations: 159.6 MB / 1.059 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001384/0.2198, allocations: 1.209 MB / 1.06 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006605/0.2205, allocations: 458.9 kB / 1.06 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.348e-05/0.2206, allocations: 0 / 1.06 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.063e-05/0.2207, allocations: 7.922 kB / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.763e-05/0.2207, allocations: 15.86 kB / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001609/0.2209, allocations: 27.97 kB / 1.06 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.221, allocations: 91.77 kB / 1.061 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.63e-05/0.2211, allocations: 16.17 kB / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.2212, allocations: 43.83 kB / 1.061 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.272e-05/0.2213, allocations: 39.83 kB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.082e-05/0.2213, allocations: 4 kB / 1.061 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.321e-05/0.2213, allocations: 4 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.561e-05/0.2214, allocations: 11.92 kB / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.226e-05/0.2214, allocations: 61.55 kB / 1.061 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001/0.2215, allocations: 64.05 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2216, allocations: 7.984 kB / 1.061 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2216, allocations: 4 kB / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.266e-06/0.2216, allocations: 3.938 kB / 1.061 GB, free: 2.816 MB / 0.8106 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.0005557/0.2221, allocations: 434.7 kB / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.2222, allocations: 11.97 kB / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.945e-05/0.2222, allocations: 42.73 kB / 1.061 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.308e-05/0.2223, allocations: 8.844 kB / 1.061 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.2224, allocations: 199 kB / 1.061 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.2224, allocations: 8.375 kB / 1.061 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.2225, allocations: 8.375 kB / 1.061 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000306/0.2228, allocations: 125.5 kB / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.413e-06/0.2228, allocations: 0 / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.2228, allocations: 3.984 kB / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.2228, allocations: 8 kB / 1.062 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002976/0.2231, allocations: 99.92 kB / 1.062 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004754/0.2236, allocations: 344.6 kB / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003047/0.2239, allocations: 118.5 kB / 1.062 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.2241, allocations: 80.94 kB / 1.062 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/0.2241, allocations: 4 kB / 1.062 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002942/0.2244, allocations: 135.3 kB / 1.062 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 2.575e-06/0.2244, allocations: 0 / 1.062 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006763/0.2251, allocations: 295.1 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.2252, allocations: 85.09 kB / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.791e-05/0.2253, allocations: 132.4 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.2253, allocations: 33.7 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.575e-05/0.2253, allocations: 96.05 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.2254, allocations: 27.8 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.104e-05/0.2254, allocations: 17.72 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.919e-05/0.2255, allocations: 322.8 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/0.2257, allocations: 71.95 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.2259, allocations: 75.95 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003376/0.2262, allocations: 205.9 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2262, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004949/0.2267, allocations: 276.9 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.364e-05/0.2268, allocations: 59.41 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.2268, allocations: 3.938 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.017e-06/0.2268, allocations: 0 / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.2269, allocations: 19.97 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.2269, allocations: 0 / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/0.2271, allocations: 31.98 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.2271, allocations: 7.938 kB / 1.064 GB, free: 15.2 MB / 0.8262 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.945e-05/0.2272, allocations: 155.5 kB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.878e-05/0.2273, allocations: 7.906 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.687e-05/0.2273, allocations: 16.36 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.2273, allocations: 0 / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2273, allocations: 0 / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.2273, allocations: 0 / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001241/0.2274, allocations: 193.5 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2275, allocations: 4 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.515e-05/0.2275, allocations: 15.98 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.2276, allocations: 0 / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.2276, allocations: 11.94 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2276, allocations: 0 / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2276, allocations: 0 / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004582/0.2281, allocations: 266.5 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.549e-05/0.2281, allocations: 88.95 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.2281, allocations: 0 / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.2283, allocations: 32.28 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.2284, allocations: 39.95 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.2284, allocations: 4 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.08e-05/0.2285, allocations: 103.2 kB / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2285, allocations: 0 / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001989/0.2287, allocations: 24 kB / 1.065 GB, free: 14.14 MB / 0.8262 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.0006821/0.2294, allocations: 0.8014 MB / 1.066 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004586/0.2298, allocations: 274.7 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2298, allocations: 0 / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002389/0.2301, allocations: 155.2 kB / 1.066 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001937/0.2303, allocations: 19.92 kB / 1.066 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.2323, allocations: 1.797 MB / 1.068 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001786/0.2325, allocations: 0.6926 MB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.686e-05/0.2326, allocations: 11.98 kB / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.473e-05/0.2326, allocations: 19.42 kB / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.2326, allocations: 0 / 1.069 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.226/1.458, allocations: 2.542 MB / 1.071 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002131/1.459, allocations: 213.7 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.533/2.992, allocations: 3.375 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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