Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 106.8 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 185.9 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 225.6 MB / 249.3 MB, free: 3.195 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.458/2.458, allocations: 476.7 MB / 0.7628 GB, free: 15.21 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_11_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 67.88 kB / 1.107 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7447/0.7465, allocations: 168.7 MB / 1.271 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002136/0.7486, allocations: 1.504 MB / 1.273 GB, free: 6.543 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0006008/0.7492, allocations: 465 kB / 1.273 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.203e-05/0.7493, allocations: 4.812 kB / 1.273 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 7.476e-05/0.7494, allocations: 5.109 kB / 1.273 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.936e-05/0.7494, allocations: 20.28 kB / 1.273 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001722/0.7496, allocations: 37.67 kB / 1.273 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001424/0.7497, allocations: 98.84 kB / 1.273 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.186e-05/0.7498, allocations: 9.688 kB / 1.273 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/0.7499, allocations: 51.17 kB / 1.273 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.386e-05/0.75, allocations: 39.83 kB / 1.274 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.638e-05/0.75, allocations: 8.219 kB / 1.274 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.228e-05/0.75, allocations: 12.56 kB / 1.274 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.208e-05/0.7501, allocations: 15.52 kB / 1.274 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.767e-05/0.7501, allocations: 36.69 kB / 1.274 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.7503, allocations: 85.58 kB / 1.274 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 1.189e-05/0.7503, allocations: 0 / 1.274 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.443e-06/0.7503, allocations: 0.625 kB / 1.274 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.7503, allocations: 0 / 1.274 GB, free: 6.035 MB / 0.9981 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.0005457/0.7508, allocations: 451 kB / 1.274 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.7509, allocations: 9.375 kB / 1.274 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.642e-05/0.7509, allocations: 44.72 kB / 1.274 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.34e-05/0.7509, allocations: 13.77 kB / 1.274 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.751, allocations: 194 kB / 1.274 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.7511, allocations: 8.562 kB / 1.274 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/0.7511, allocations: 5.844 kB / 1.274 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002705/0.7513, allocations: 125.2 kB / 1.274 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.7514, allocations: 0.9375 kB / 1.274 GB, free: 5.258 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.7514, allocations: 6.031 kB / 1.274 GB, free: 5.254 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.7514, allocations: 8.594 kB / 1.274 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002825/0.7517, allocations: 91.27 kB / 1.275 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004086/0.7521, allocations: 328.5 kB / 1.275 GB, free: 4.934 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002838/0.7523, allocations: 93.97 kB / 1.275 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.7525, allocations: 68.38 kB / 1.275 GB, free: 4.871 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.131e-05/0.7525, allocations: 1.031 kB / 1.275 GB, free: 4.871 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002657/0.7528, allocations: 123.8 kB / 1.275 GB, free: 4.805 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.282e-06/0.7528, allocations: 1.031 kB / 1.275 GB, free: 4.805 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0006539/0.7534, allocations: 275.3 kB / 1.275 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.7535, allocations: 87.12 kB / 1.276 GB, free: 4.594 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.433e-05/0.7536, allocations: 130.6 kB / 1.276 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.7536, allocations: 32.86 kB / 1.276 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.198e-05/0.7536, allocations: 93.25 kB / 1.276 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.86e-05/0.7536, allocations: 23.81 kB / 1.276 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.219e-05/0.7537, allocations: 30.97 kB / 1.276 GB, free: 4.316 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.465e-05/0.7537, allocations: 325.2 kB / 1.276 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.7539, allocations: 66.81 kB / 1.276 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.7541, allocations: 66.69 kB / 1.276 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003101/0.7544, allocations: 185.7 kB / 1.276 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.7544, allocations: 0 / 1.276 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004522/0.7548, allocations: 262.8 kB / 1.277 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.7549, allocations: 66.7 kB / 1.277 GB, free: 3.625 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.7549, allocations: 1.125 kB / 1.277 GB, free: 3.625 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.7549, allocations: 4.938 kB / 1.277 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.755, allocations: 12.84 kB / 1.277 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.755, allocations: 4.969 kB / 1.277 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.7551, allocations: 25.69 kB / 1.277 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/0.7552, allocations: 7.594 kB / 1.277 GB, free: 3.609 MB / 0.9981 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 7.099e-05/0.7552, allocations: 152.8 kB / 1.277 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.915e-05/0.7552, allocations: 5.281 kB / 1.277 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.237e-05/0.7553, allocations: 10.09 kB / 1.277 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.7553, allocations: 0.7812 kB / 1.277 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.7553, allocations: 4.938 kB / 1.277 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.7553, allocations: 0.75 kB / 1.277 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.023e-05/0.7554, allocations: 196.8 kB / 1.277 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.7554, allocations: 4 kB / 1.277 GB, free: 3.227 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.438e-05/0.7554, allocations: 24.84 kB / 1.277 GB, free: 3.215 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.7554, allocations: 0.9062 kB / 1.277 GB, free: 3.215 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.7555, allocations: 3.75 kB / 1.277 GB, free: 3.215 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.7555, allocations: 0 / 1.277 GB, free: 3.215 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.7555, allocations: 0.8125 kB / 1.277 GB, free: 3.215 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004318/0.7559, allocations: 249.5 kB / 1.277 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.895e-05/0.7559, allocations: 83.44 kB / 1.277 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.7559, allocations: 4.516 kB / 1.277 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.7561, allocations: 21.83 kB / 1.278 GB, free: 2.973 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.7562, allocations: 33.23 kB / 1.278 GB, free: 2.965 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.7562, allocations: 12.39 kB / 1.278 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.07e-05/0.7562, allocations: 113.3 kB / 1.278 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.7562, allocations: 0 / 1.278 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002001/0.7564, allocations: 25.75 kB / 1.278 GB, free: 2.863 MB / 0.9981 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.000576/0.757, allocations: 0.7842 MB / 1.278 GB, free: 2.195 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004335/0.7574, allocations: 255.4 kB / 1.279 GB, free: 2.035 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.7574, allocations: 0 / 1.279 GB, free: 2.035 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002141/0.7577, allocations: 127.6 kB / 1.279 GB, free: 1.957 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001846/0.7578, allocations: 11.88 kB / 1.279 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/0.76, allocations: 1.765 MB / 1.281 GB, free: 16.6 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.7602, allocations: 0.6947 MB / 1.281 GB, free: 15.9 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.275e-05/0.7603, allocations: 11.81 kB / 1.281 GB, free: 15.89 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.547e-05/0.7603, allocations: 22 kB / 1.281 GB, free: 15.88 MB / 1.014 GB Notification: Performance of SimCode: time 3.5e-07/0.7603, allocations: 0 / 1.281 GB, free: 15.88 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02456/0.7849, allocations: 3.045 MB / 1.284 GB, free: 15.38 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.143/7.928, allocations: 1.25 kB / 1.284 GB, free: 15.38 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" 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 [Calling sys.exit(0), Time elapsed: 13.117635888000223]