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.002028/0.002028, allocations: 88.72 kB / 19.44 MB, free: 360 kB / 13.93 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.002535/0.002535, allocations: 157.6 kB / 22.75 MB, free: 1.688 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 1.494/1.494, allocations: 177.2 MB / 203.1 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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 3.219/3.219, allocations: 429.6 MB / 0.673 GB, free: 3.871 MB / 0.6355 GB " [Timeout remaining time 176] 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.1.|numReq.u.2.|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.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 0.8776 GB, free: 6.52 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.785e-05/2.963e-05, allocations: 4.844 kB / 0.8776 GB, free: 6.516 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.00334/0.00337, allocations: 1.493 MB / 0.879 GB, free: 5.035 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001139/0.004509, allocations: 0.4971 MB / 0.8795 GB, free: 4.539 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.709e-05/0.004577, allocations: 3.594 kB / 0.8795 GB, free: 4.539 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001269/0.004703, allocations: 11.86 kB / 0.8795 GB, free: 4.527 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.974e-05/0.004773, allocations: 11.88 kB / 0.8795 GB, free: 4.516 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003506/0.005124, allocations: 43.88 kB / 0.8796 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002228/0.005347, allocations: 103.7 kB / 0.8797 GB, free: 4.371 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.005458, allocations: 8.188 kB / 0.8797 GB, free: 4.363 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.005735, allocations: 75.8 kB / 0.8797 GB, free: 4.289 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/0.005838, allocations: 35.89 kB / 0.8798 GB, free: 4.254 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.311e-05/0.005871, allocations: 8.938 kB / 0.8798 GB, free: 4.246 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.387e-05/0.005925, allocations: 8 kB / 0.8798 GB, free: 4.238 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.954e-05/0.005975, allocations: 15.97 kB / 0.8798 GB, free: 4.223 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.688e-05/0.006051, allocations: 32.95 kB / 0.8798 GB, free: 4.191 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002458/0.006297, allocations: 99.67 kB / 0.8799 GB, free: 4.094 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.006301, allocations: 4.938 kB / 0.8799 GB, free: 4.09 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.092e-06/0.006302, allocations: 0 / 0.8799 GB, free: 4.09 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.461e-06/0.006307, allocations: 0 / 0.8799 GB, free: 4.09 MB / 0.8386 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.0009119/0.007219, allocations: 381.8 kB / 0.8803 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.007259, allocations: 8.031 kB / 0.8803 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001963/0.007455, allocations: 28.88 kB / 0.8803 GB, free: 3.645 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003101/0.007765, allocations: 133.7 kB / 0.8805 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.007782, allocations: 4.375 kB / 0.8805 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.447e-05/0.007807, allocations: 8.375 kB / 0.8805 GB, free: 3.477 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003956/0.008203, allocations: 143.9 kB / 0.8806 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.008212, allocations: 192 / 0.8806 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.008238, allocations: 16.62 kB / 0.8806 GB, free: 3.309 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.008245, allocations: 4.578 kB / 0.8806 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003943/0.00864, allocations: 122.4 kB / 0.8808 GB, free: 3.18 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000636/0.009276, allocations: 257.4 kB / 0.881 GB, free: 2.898 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004091/0.009685, allocations: 129.7 kB / 0.8811 GB, free: 2.758 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002313/0.009916, allocations: 102.6 kB / 0.8812 GB, free: 2.648 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.009943, allocations: 3.938 kB / 0.8812 GB, free: 2.645 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004019/0.01034, allocations: 157 kB / 0.8814 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.303e-06/0.01035, allocations: 0 / 0.8814 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0009447/0.01129, allocations: 338.8 kB / 0.8817 GB, free: 2.117 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/0.01137, allocations: 93.09 kB / 0.8818 GB, free: 2.008 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.01153, allocations: 141.2 kB / 0.8819 GB, free: 1.859 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.494e-05/0.01157, allocations: 29.69 kB / 0.882 GB, free: 1.824 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.406e-05/0.01165, allocations: 96.09 kB / 0.882 GB, free: 1.727 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.825e-05/0.01168, allocations: 15.91 kB / 0.8821 GB, free: 1.711 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.738e-05/0.01176, allocations: 33.7 kB / 0.8821 GB, free: 1.672 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001824/0.01194, allocations: 318.8 kB / 0.8824 GB, free: 1.352 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/0.01223, allocations: 123.4 kB / 0.8825 GB, free: 1.219 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/0.0125, allocations: 131.3 kB / 0.8826 GB, free: 1.078 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004312/0.01293, allocations: 189.9 kB / 0.8828 GB, free: 0.8711 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.01294, allocations: 0 / 0.8828 GB, free: 0.8711 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006892/0.01363, allocations: 328.2 kB / 0.8831 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.93e-05/0.01369, allocations: 63.39 kB / 0.8832 GB, free: 456 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.0137, allocations: 0 / 0.8832 GB, free: 456 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.289e-05/0.01372, allocations: 4 kB / 0.8832 GB, free: 452 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.01388, allocations: 15.98 kB / 0.8832 GB, free: 436 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.01389, allocations: 0 / 0.8832 GB, free: 436 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/0.01406, allocations: 31.86 kB / 0.8832 GB, free: 404 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.01408, allocations: 4 kB / 0.8832 GB, free: 400 kB / 0.8386 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.0001805/0.01427, allocations: 163.4 kB / 0.8834 GB, free: 220 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.198e-05/0.01431, allocations: 15.89 kB / 0.8834 GB, free: 204 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.094e-05/0.01436, allocations: 12.78 kB / 0.8834 GB, free: 188 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.01436, allocations: 4 kB / 0.8834 GB, free: 184 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.01437, allocations: 0 / 0.8834 GB, free: 184 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.01437, allocations: 0 / 0.8834 GB, free: 184 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001676/0.01454, allocations: 133.3 kB / 0.8836 GB, free: 20 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.01454, allocations: 3.938 kB / 0.8836 GB, free: 16 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.817e-05/0.01464, allocations: 15.92 kB / 0.8836 GB, free: 0 / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.01464, allocations: 0 / 0.8836 GB, free: 0 / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.165e-05/0.01468, allocations: 4.047 kB / 0.8836 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.01468, allocations: 0 / 0.8836 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01469, allocations: 0 / 0.8836 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006378/0.01532, allocations: 284.3 kB / 0.8839 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.374e-05/0.01535, allocations: 11.89 kB / 0.8839 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.01538, allocations: 7.938 kB / 0.8839 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.01554, allocations: 23.97 kB / 0.8839 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.01567, allocations: 28.09 kB / 0.8839 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.01569, allocations: 11.98 kB / 0.8839 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 8.569e-05/0.01578, allocations: 99.27 kB / 0.884 GB, free: 15.51 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01578, allocations: 0 / 0.884 GB, free: 15.51 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002397/0.01602, allocations: 32 kB / 0.8841 GB, free: 15.48 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 0.0001321/0.01615, allocations: 95.25 kB / 0.8842 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006784/0.01683, allocations: 343.8 kB / 0.8845 GB, free: 15 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.01683, allocations: 0 / 0.8845 GB, free: 15 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003309/0.01716, allocations: 165 kB / 0.8846 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002753/0.01744, allocations: 20.81 kB / 0.8847 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006803/0.01812, allocations: 250.5 kB / 0.8849 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.01822, allocations: 79.19 kB / 0.885 GB, free: 14.42 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.77e-05/0.01828, allocations: 7.984 kB / 0.885 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.099e-05/0.01834, allocations: 24.48 kB / 0.885 GB, free: 14.39 MB / 0.8542 GB Notification: Performance of SimCode: time 3.91e-07/0.01834, allocations: 0 / 0.885 GB, free: 14.39 MB / 0.8542 GB Notification: Performance of Templates: time 0.006225/0.02456, allocations: 2.065 MB / 0.887 GB, free: 12.36 MB / 0.8542 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.370201486977749]