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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 106.9 kB / 16.46 MB, free: 6.035 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.00166/0.00166, allocations: 192.5 kB / 19.41 MB, free: 3.539 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.452/1.452, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.043/3.043, allocations: 497.2 MB / 0.7811 GB, free: 33.62 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002709/0.002709, allocations: 66.33 kB / 1.134 GB, free: 33.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3144, allocations: 173.9 MB / 1.304 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002731/0.3172, allocations: 1.49 MB / 1.305 GB, free: 48 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008429/0.318, allocations: 470.9 kB / 1.306 GB, free: 15.58 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.315e-05/0.3181, allocations: 0 / 1.306 GB, free: 15.58 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 9.45e-05/0.3182, allocations: 7.875 kB / 1.306 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.978e-05/0.3182, allocations: 15.86 kB / 1.306 GB, free: 15.56 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.3184, allocations: 27.97 kB / 1.306 GB, free: 15.53 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001826/0.3186, allocations: 103.7 kB / 1.306 GB, free: 15.43 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.26e-05/0.3187, allocations: 16.11 kB / 1.306 GB, free: 15.41 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.3188, allocations: 43.91 kB / 1.306 GB, free: 15.37 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 9.274e-05/0.3189, allocations: 47.77 kB / 1.306 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.692e-05/0.319, allocations: 8 kB / 1.306 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.863e-05/0.319, allocations: 8 kB / 1.306 GB, free: 15.31 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.974e-05/0.319, allocations: 15.97 kB / 1.306 GB, free: 15.29 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.998e-05/0.3191, allocations: 39.8 kB / 1.306 GB, free: 15.25 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001569/0.3193, allocations: 83.97 kB / 1.306 GB, free: 15.17 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3193, allocations: 0 / 1.306 GB, free: 15.17 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.893e-06/0.3193, allocations: 0 / 1.306 GB, free: 15.17 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.048e-05/0.3193, allocations: 0 / 1.306 GB, free: 15.17 MB / 1.014 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.0007698/0.32, allocations: 454.5 kB / 1.307 GB, free: 14.67 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.3201, allocations: 8.922 kB / 1.307 GB, free: 14.66 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.766e-05/0.3201, allocations: 42.73 kB / 1.307 GB, free: 14.61 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.001e-05/0.3202, allocations: 8.891 kB / 1.307 GB, free: 14.6 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.3204, allocations: 184.3 kB / 1.307 GB, free: 14.38 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.3204, allocations: 4.375 kB / 1.307 GB, free: 14.38 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/0.3204, allocations: 16.36 kB / 1.307 GB, free: 14.36 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003146/0.3208, allocations: 117.5 kB / 1.307 GB, free: 14.24 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.3208, allocations: 0 / 1.307 GB, free: 14.24 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.3208, allocations: 8 kB / 1.307 GB, free: 14.23 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3208, allocations: 0 / 1.307 GB, free: 14.23 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002903/0.3211, allocations: 87.92 kB / 1.307 GB, free: 14.15 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005744/0.3216, allocations: 328.7 kB / 1.307 GB, free: 13.78 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003134/0.322, allocations: 102.4 kB / 1.308 GB, free: 13.67 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.3221, allocations: 64.94 kB / 1.308 GB, free: 13.6 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.3222, allocations: 0 / 1.308 GB, free: 13.6 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003501/0.3225, allocations: 135.2 kB / 1.308 GB, free: 13.46 MB / 1.014 GB Notification: Performance of pre-optimization done (n=6): time 1.553e-06/0.3225, allocations: 0 / 1.308 GB, free: 13.46 MB / 1.014 GB Notification: Performance of matching and sorting (n=6): time 0.000714/0.3232, allocations: 279.2 kB / 1.308 GB, free: 13.17 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.3233, allocations: 85.05 kB / 1.308 GB, free: 13.07 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.3234, allocations: 135.9 kB / 1.308 GB, free: 12.93 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/0.3234, allocations: 33.7 kB / 1.308 GB, free: 12.89 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.034e-05/0.3235, allocations: 92.08 kB / 1.308 GB, free: 12.8 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.655e-05/0.3235, allocations: 19.89 kB / 1.308 GB, free: 12.78 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.024e-05/0.3236, allocations: 29.72 kB / 1.308 GB, free: 12.74 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.3237, allocations: 322.8 kB / 1.309 GB, free: 12.42 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.3239, allocations: 63.95 kB / 1.309 GB, free: 12.36 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.3241, allocations: 67.95 kB / 1.309 GB, free: 12.29 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003368/0.3244, allocations: 181.9 kB / 1.309 GB, free: 12.09 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3244, allocations: 0 / 1.309 GB, free: 12.09 MB / 1.014 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.00049/0.3249, allocations: 260.9 kB / 1.309 GB, free: 11.82 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.819e-05/0.3249, allocations: 63.39 kB / 1.309 GB, free: 11.74 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3249, allocations: 4 kB / 1.309 GB, free: 11.74 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.325, allocations: 4 kB / 1.309 GB, free: 11.73 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.3251, allocations: 15.98 kB / 1.309 GB, free: 11.72 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.3251, allocations: 0 / 1.309 GB, free: 11.72 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.3252, allocations: 27.86 kB / 1.309 GB, free: 11.69 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.3253, allocations: 11.88 kB / 1.309 GB, free: 11.68 MB / 1.014 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.0001294/0.3254, allocations: 159.5 kB / 1.309 GB, free: 11.51 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.986e-05/0.3254, allocations: 12.05 kB / 1.31 GB, free: 11.5 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.14e-05/0.3254, allocations: 16.31 kB / 1.31 GB, free: 11.48 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3254, allocations: 0 / 1.31 GB, free: 11.48 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3254, allocations: 0 / 1.31 GB, free: 11.48 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3254, allocations: 0 / 1.31 GB, free: 11.48 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.3256, allocations: 197.6 kB / 1.31 GB, free: 11.23 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3256, allocations: 0 / 1.31 GB, free: 11.23 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.446e-05/0.3257, allocations: 11.98 kB / 1.31 GB, free: 11.22 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.3257, allocations: 0 / 1.31 GB, free: 11.22 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.3257, allocations: 8 kB / 1.31 GB, free: 11.21 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3257, allocations: 4 kB / 1.31 GB, free: 11.21 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3257, allocations: 3.984 kB / 1.31 GB, free: 11.21 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004989/0.3262, allocations: 250.8 kB / 1.31 GB, free: 10.94 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 4.899e-05/0.3263, allocations: 81.12 kB / 1.31 GB, free: 10.84 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.745e-05/0.3263, allocations: 8 kB / 1.31 GB, free: 10.83 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.3264, allocations: 27.97 kB / 1.31 GB, free: 10.8 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.3266, allocations: 35.91 kB / 1.31 GB, free: 10.77 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.3266, allocations: 7.984 kB / 1.31 GB, free: 10.76 MB / 1.014 GB Notification: Performance of sorting global known variables: time 6.663e-05/0.3266, allocations: 103.2 kB / 1.31 GB, free: 10.66 MB / 1.014 GB Notification: Performance of sort global known variables: time 9e-08/0.3266, allocations: 0 / 1.31 GB, free: 10.66 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002063/0.3268, allocations: 27.98 kB / 1.31 GB, free: 10.63 MB / 1.014 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.0007884/0.3276, allocations: 0.7742 MB / 1.311 GB, free: 9.824 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.000482/0.3281, allocations: 258.6 kB / 1.311 GB, free: 9.547 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3281, allocations: 0 / 1.311 GB, free: 9.547 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002403/0.3284, allocations: 135.3 kB / 1.311 GB, free: 9.402 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.3286, allocations: 13.72 kB / 1.311 GB, free: 9.391 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.3309, allocations: 1.755 MB / 1.313 GB, free: 7.535 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.3312, allocations: 0.6962 MB / 1.314 GB, free: 6.812 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 5.345e-05/0.3313, allocations: 7.984 kB / 1.314 GB, free: 6.805 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.517e-05/0.3313, allocations: 23.42 kB / 1.314 GB, free: 6.781 MB / 1.014 GB Notification: Performance of SimCode: time 2.91e-07/0.3313, allocations: 0 / 1.314 GB, free: 6.781 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/0.3561, allocations: 3.058 MB / 1.317 GB, free: 3.836 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.62/7.977, allocations: 9.812 kB / 1.317 GB, free: 3.828 MB / 1.014 GB " [Timeout remaining time 292] (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 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 840.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 14.295134282205254]