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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 169 kB / 23.27 MB, free: 1.227 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9486/0.9486, allocations: 177.1 MB / 203.7 MB, free: 5.539 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.26/2.26, allocations: 438.1 MB / 0.682 GB, free: 14.14 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|numReq.u.[0-9,]+.|numReq.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests") translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|numReq.u.[0-9,]+.|numReq.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 0.8897 GB, free: 9.82 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.599e-05/1.743e-05, allocations: 6.312 kB / 0.8897 GB, free: 9.812 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002361/0.002378, allocations: 1.536 MB / 0.8912 GB, free: 8.266 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0008443/0.003223, allocations: 0.4987 MB / 0.8917 GB, free: 7.762 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.069e-05/0.003293, allocations: 0 / 0.8917 GB, free: 7.762 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.003396, allocations: 11.92 kB / 0.8917 GB, free: 7.75 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 5.788e-05/0.003454, allocations: 11.88 kB / 0.8917 GB, free: 7.738 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002398/0.003693, allocations: 55.73 kB / 0.8918 GB, free: 7.684 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.000155/0.003848, allocations: 95.77 kB / 0.8919 GB, free: 7.59 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.669e-05/0.003945, allocations: 20.16 kB / 0.8919 GB, free: 7.57 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.00413, allocations: 67.83 kB / 0.8919 GB, free: 7.504 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 7.646e-05/0.004206, allocations: 43.88 kB / 0.892 GB, free: 7.461 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/0.00423, allocations: 8 kB / 0.892 GB, free: 7.453 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 4.206e-05/0.004272, allocations: 8 kB / 0.892 GB, free: 7.445 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 3.566e-05/0.004307, allocations: 15.92 kB / 0.892 GB, free: 7.43 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 4.653e-05/0.004354, allocations: 31.92 kB / 0.892 GB, free: 7.398 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001362/0.00449, allocations: 71.84 kB / 0.8921 GB, free: 7.328 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.004492, allocations: 0 / 0.8921 GB, free: 7.328 MB / 0.8542 GB Notification: Performance of FrontEnd: time 5.81e-07/0.004492, allocations: 0 / 0.8921 GB, free: 7.328 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.907e-06/0.004496, allocations: 3.938 kB / 0.8921 GB, free: 7.324 MB / 0.8542 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.0005164/0.005012, allocations: 487.6 kB / 0.8926 GB, free: 6.801 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.005045, allocations: 8.625 kB / 0.8926 GB, free: 6.793 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.005152, allocations: 28.88 kB / 0.8926 GB, free: 6.766 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.005274, allocations: 148.4 kB / 0.8928 GB, free: 6.594 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-06/0.005284, allocations: 4.375 kB / 0.8928 GB, free: 6.59 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.0053, allocations: 12.38 kB / 0.8928 GB, free: 6.578 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001579/0.005457, allocations: 124.6 kB / 0.8929 GB, free: 6.441 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.005465, allocations: 4.188 kB / 0.8929 GB, free: 6.438 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.005475, allocations: 4.125 kB / 0.8929 GB, free: 6.434 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.00548, allocations: 4 kB / 0.8929 GB, free: 6.43 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.01e-05/0.00553, allocations: 53.69 kB / 0.893 GB, free: 6.371 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002891/0.005819, allocations: 288.4 kB / 0.8932 GB, free: 6.062 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 9.037e-05/0.005909, allocations: 76.75 kB / 0.8933 GB, free: 5.969 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.87e-05/0.005958, allocations: 65.48 kB / 0.8934 GB, free: 5.895 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.194e-05/0.00597, allocations: 0 / 0.8934 GB, free: 5.895 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001246/0.006095, allocations: 122.7 kB / 0.8935 GB, free: 5.754 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=6): time 1.933e-06/0.006097, allocations: 0 / 0.8935 GB, free: 5.754 MB / 0.8542 GB Notification: Performance of matching and sorting (n=6): time 0.0002633/0.00636, allocations: 242.6 kB / 0.8937 GB, free: 5.492 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.006394, allocations: 85.11 kB / 0.8938 GB, free: 5.391 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.508e-05/0.006479, allocations: 196.5 kB / 0.894 GB, free: 5.184 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.006492, allocations: 29.7 kB / 0.894 GB, free: 5.148 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.006544, allocations: 138.9 kB / 0.8941 GB, free: 5.008 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.488e-05/0.006559, allocations: 23.83 kB / 0.8942 GB, free: 4.984 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.006609, allocations: 35.36 kB / 0.8942 GB, free: 4.941 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.006743, allocations: 496.1 kB / 0.8947 GB, free: 4.445 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.395e-05/0.006807, allocations: 83.38 kB / 0.8948 GB, free: 4.352 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.027e-05/0.006858, allocations: 79.39 kB / 0.8948 GB, free: 4.262 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.299e-05/0.006941, allocations: 140.7 kB / 0.895 GB, free: 4.102 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.006942, allocations: 0 / 0.895 GB, free: 4.102 MB / 0.8542 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001832/0.007125, allocations: 256.4 kB / 0.8952 GB, free: 3.82 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/0.007159, allocations: 67.33 kB / 0.8953 GB, free: 3.742 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.007163, allocations: 0 / 0.8953 GB, free: 3.742 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.375e-06/0.007171, allocations: 0 / 0.8953 GB, free: 3.742 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.505e-05/0.007236, allocations: 23.92 kB / 0.8953 GB, free: 3.719 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.014e-06/0.007238, allocations: 0 / 0.8953 GB, free: 3.719 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.015e-05/0.007298, allocations: 19.94 kB / 0.8953 GB, free: 3.699 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-06/0.007308, allocations: 4 kB / 0.8953 GB, free: 3.695 MB / 0.8542 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 8.322e-05/0.007392, allocations: 198.3 kB / 0.8955 GB, free: 3.484 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.739e-05/0.007409, allocations: 19.89 kB / 0.8955 GB, free: 3.465 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.351e-05/0.007432, allocations: 12.78 kB / 0.8955 GB, free: 3.449 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.007434, allocations: 0 / 0.8955 GB, free: 3.449 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.007436, allocations: 0 / 0.8955 GB, free: 3.449 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.007439, allocations: 0 / 0.8955 GB, free: 3.449 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.064e-05/0.00752, allocations: 117.2 kB / 0.8957 GB, free: 3.309 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-07/0.00752, allocations: 0 / 0.8957 GB, free: 3.309 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.781e-05/0.007548, allocations: 12.23 kB / 0.8957 GB, free: 3.297 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.71e-07/0.007549, allocations: 0 / 0.8957 GB, free: 3.297 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.00756, allocations: 11.94 kB / 0.8957 GB, free: 3.285 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-07/0.00756, allocations: 4 kB / 0.8957 GB, free: 3.281 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.007561, allocations: 0 / 0.8957 GB, free: 3.281 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001889/0.00775, allocations: 231.7 kB / 0.8959 GB, free: 3.02 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.199e-05/0.007762, allocations: 11.94 kB / 0.8959 GB, free: 3.008 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.007777, allocations: 3.938 kB / 0.8959 GB, free: 3.004 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.83e-05/0.007825, allocations: 15.98 kB / 0.8959 GB, free: 2.988 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.169e-05/0.007897, allocations: 35.95 kB / 0.896 GB, free: 2.953 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.007905, allocations: 8 kB / 0.896 GB, free: 2.945 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.263e-05/0.007947, allocations: 135.1 kB / 0.8961 GB, free: 2.812 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.007947, allocations: 0 / 0.8961 GB, free: 2.812 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001287/0.008076, allocations: 28 kB / 0.8961 GB, free: 2.785 MB / 0.8542 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 6.471e-05/0.008141, allocations: 103.2 kB / 0.8962 GB, free: 2.676 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001884/0.008329, allocations: 267.5 kB / 0.8965 GB, free: 2.367 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.00833, allocations: 0 / 0.8965 GB, free: 2.367 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 8.739e-05/0.008418, allocations: 136.8 kB / 0.8966 GB, free: 2.211 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000143/0.008561, allocations: 19.97 kB / 0.8966 GB, free: 2.191 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004494/0.00901, allocations: 252.4 kB / 0.8969 GB, free: 1.906 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.602e-05/0.009046, allocations: 63.34 kB / 0.8969 GB, free: 1.824 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.7e-05/0.009073, allocations: 3.938 kB / 0.8969 GB, free: 1.82 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.368e-05/0.009167, allocations: 98.19 kB / 0.897 GB, free: 1.723 MB / 0.8542 GB Notification: Performance of SimCode: time 9.52e-07/0.009168, allocations: 0 / 0.897 GB, free: 1.723 MB / 0.8542 GB Notification: Performance of Templates: time 0.003158/0.01233, allocations: 2.222 MB / 0.8992 GB, free: 15.53 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.06337266927585]