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.001324/0.001324, allocations: 108.1 kB / 16.4 MB, free: 6.504 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.001307/0.001307, allocations: 191.7 kB / 19.35 MB, free: 3.734 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.379/1.379, allocations: 222.9 MB / 245.1 MB, free: 15.01 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 2.698/2.698, allocations: 489 MB / 0.7678 GB, free: 0 / 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.003182/0.003182, allocations: 67.89 kB / 1.101 GB, free: 5.891 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7896/0.7928, allocations: 163.8 MB / 1.261 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002552/0.7954, allocations: 1.476 MB / 1.262 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0007397/0.7961, allocations: 466.9 kB / 1.263 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.49e-05/0.7962, allocations: 0 / 1.263 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 8.3e-05/0.7963, allocations: 7.938 kB / 1.263 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.751e-05/0.7963, allocations: 11.88 kB / 1.263 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001902/0.7965, allocations: 39.88 kB / 1.263 GB, free: 5.094 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001659/0.7967, allocations: 103.8 kB / 1.263 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.307e-05/0.7968, allocations: 24.16 kB / 1.263 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.7969, allocations: 47.83 kB / 1.263 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.929e-05/0.797, allocations: 43.81 kB / 1.263 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.7971, allocations: 8 kB / 1.263 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.028e-05/0.7971, allocations: 8 kB / 1.263 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.62e-05/0.7971, allocations: 19.92 kB / 1.263 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.833e-05/0.7972, allocations: 35.86 kB / 1.263 GB, free: 4.809 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.7974, allocations: 78.56 kB / 1.263 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.7974, allocations: 0 / 1.263 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.362e-06/0.7974, allocations: 3.938 kB / 1.263 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.7974, allocations: 8 kB / 1.263 GB, free: 4.723 MB / 0.9669 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.0007086/0.7981, allocations: 450.5 kB / 1.264 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.7982, allocations: 12.03 kB / 1.264 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.798e-05/0.7982, allocations: 38.67 kB / 1.264 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.946e-05/0.7982, allocations: 12.89 kB / 1.264 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001872/0.7984, allocations: 188.3 kB / 1.264 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.7985, allocations: 4.375 kB / 1.264 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.262e-05/0.7985, allocations: 4.375 kB / 1.264 GB, free: 3.922 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003065/0.7988, allocations: 129.5 kB / 1.264 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.7988, allocations: 0 / 1.264 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.7988, allocations: 0 / 1.264 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.7988, allocations: 4 kB / 1.264 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003155/0.7992, allocations: 99.83 kB / 1.264 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005253/0.7997, allocations: 336.7 kB / 1.265 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003227/0.8, allocations: 106.5 kB / 1.265 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.8002, allocations: 68.94 kB / 1.265 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.8002, allocations: 0 / 1.265 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003164/0.8006, allocations: 131.3 kB / 1.265 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.693e-06/0.8006, allocations: 0 / 1.265 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0007072/0.8013, allocations: 267.2 kB / 1.265 GB, free: 2.711 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.184e-05/0.8014, allocations: 89.09 kB / 1.265 GB, free: 2.605 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.8015, allocations: 131.2 kB / 1.265 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.8015, allocations: 33.7 kB / 1.265 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.284e-05/0.8016, allocations: 96.09 kB / 1.265 GB, free: 2.332 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.443e-05/0.8016, allocations: 19.83 kB / 1.265 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.666e-05/0.8017, allocations: 29.72 kB / 1.265 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.8018, allocations: 322.8 kB / 1.266 GB, free: 1.953 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.802, allocations: 59.95 kB / 1.266 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.8022, allocations: 75.89 kB / 1.266 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003565/0.8026, allocations: 181.9 kB / 1.266 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.8026, allocations: 0 / 1.266 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005/0.8031, allocations: 264.9 kB / 1.266 GB, free: 1.344 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.717e-05/0.8031, allocations: 71.39 kB / 1.266 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.8032, allocations: 0 / 1.266 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.8032, allocations: 0 / 1.266 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.8033, allocations: 15.98 kB / 1.266 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.8033, allocations: 0 / 1.266 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.8035, allocations: 19.97 kB / 1.266 GB, free: 1.227 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.8035, allocations: 7.938 kB / 1.266 GB, free: 1.219 MB / 0.9669 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.0001206/0.8036, allocations: 152.4 kB / 1.267 GB, free: 1.055 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.954e-05/0.8036, allocations: 11.95 kB / 1.267 GB, free: 1.043 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.955e-05/0.8037, allocations: 12.36 kB / 1.267 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.8037, allocations: 4 kB / 1.267 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.8037, allocations: 0 / 1.267 GB, free: 1.023 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.8037, allocations: 3.938 kB / 1.267 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.8039, allocations: 197.6 kB / 1.267 GB, free: 0.7773 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.8039, allocations: 0 / 1.267 GB, free: 0.7773 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.674e-05/0.804, allocations: 11.98 kB / 1.267 GB, free: 0.7656 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.634e-06/0.804, allocations: 3.938 kB / 1.267 GB, free: 0.7617 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.804, allocations: 12.25 kB / 1.267 GB, free: 0.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.804, allocations: 4 kB / 1.267 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.804, allocations: 0 / 1.267 GB, free: 0.7461 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004919/0.8045, allocations: 246.6 kB / 1.267 GB, free: 492 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.031e-05/0.8046, allocations: 88.98 kB / 1.267 GB, free: 384 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.8046, allocations: 4 kB / 1.267 GB, free: 380 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.8047, allocations: 23.98 kB / 1.267 GB, free: 356 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.8049, allocations: 35.95 kB / 1.267 GB, free: 320 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.8049, allocations: 0 / 1.267 GB, free: 320 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.73e-05/0.805, allocations: 105.5 kB / 1.267 GB, free: 216 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.805, allocations: 4 kB / 1.267 GB, free: 212 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002027/0.8052, allocations: 24 kB / 1.267 GB, free: 188 kB / 0.9669 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.000811/0.806, allocations: 0.7892 MB / 1.268 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005057/0.8065, allocations: 262.7 kB / 1.268 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.8065, allocations: 3.938 kB / 1.268 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002507/0.8068, allocations: 143.3 kB / 1.268 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001981/0.807, allocations: 17.86 kB / 1.269 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.8093, allocations: 1.761 MB / 1.27 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.8096, allocations: 0.6923 MB / 1.271 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.967e-05/0.8097, allocations: 7.984 kB / 1.271 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.441e-05/0.8098, allocations: 19.44 kB / 1.271 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of SimCode: time 2.61e-07/0.8098, allocations: 4 kB / 1.271 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02148/0.8313, allocations: 3.024 MB / 1.274 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.655/8.486, allocations: 4 kB / 1.274 GB, free: 9.387 MB / 0.9825 GB " [Timeout remaining time 291] (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.310975142987445]