Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|numReq.u.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests") translateModel(Buildings.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|numReq.u.1.|numReq.u.2.|numReq.y",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 106.1 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.387/2.387, allocations: 437 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 59.91 kB / 1.019 GB, free: 9.465 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.826/0.8275, allocations: 151.6 MB / 1.167 GB, free: 3.891 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002965/0.8305, allocations: 1.48 MB / 1.169 GB, free: 2.398 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0008774/0.8314, allocations: 477.3 kB / 1.169 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.623e-05/0.8315, allocations: 0 / 1.169 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.8317, allocations: 3.938 kB / 1.169 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.921e-05/0.8317, allocations: 15.86 kB / 1.169 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002353/0.832, allocations: 35.89 kB / 1.169 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001839/0.8322, allocations: 103.8 kB / 1.169 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.8323, allocations: 12.19 kB / 1.169 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.8325, allocations: 59.81 kB / 1.169 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.434e-05/0.8326, allocations: 35.83 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.182e-05/0.8326, allocations: 8 kB / 1.169 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.741e-05/0.8327, allocations: 8 kB / 1.169 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.557e-05/0.8327, allocations: 12 kB / 1.169 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.11e-05/0.8328, allocations: 43.78 kB / 1.169 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.833, allocations: 75.77 kB / 1.17 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.833, allocations: 0 / 1.17 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.995e-06/0.833, allocations: 7.938 kB / 1.17 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.833, allocations: 3.938 kB / 1.17 GB, free: 1.512 MB / 0.8887 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.000728/0.8337, allocations: 448.3 kB / 1.17 GB, free: 1.02 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.8338, allocations: 12.62 kB / 1.17 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.483e-05/0.8338, allocations: 4.938 kB / 1.17 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001877/0.834, allocations: 197.7 kB / 1.17 GB, free: 0.7734 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.834, allocations: 12.36 kB / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.8341, allocations: 4.375 kB / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003105/0.8344, allocations: 117.8 kB / 1.17 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.8344, allocations: 0 / 1.17 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.8344, allocations: 0 / 1.17 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.8344, allocations: 4 kB / 1.17 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002849/0.8347, allocations: 91.86 kB / 1.17 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005566/0.8353, allocations: 332.7 kB / 1.171 GB, free: 172 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/0.8356, allocations: 106.5 kB / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002007/0.8358, allocations: 73.09 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.8358, allocations: 4 kB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003415/0.8362, allocations: 127.2 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=6): time 1.533e-06/0.8362, allocations: 0 / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6): time 0.0007105/0.8369, allocations: 275.2 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.837, allocations: 81.11 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.8371, allocations: 132.5 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.8371, allocations: 33.7 kB / 1.172 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.696e-05/0.8372, allocations: 92.05 kB / 1.172 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/0.8372, allocations: 19.8 kB / 1.172 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-05/0.8373, allocations: 29.72 kB / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.8374, allocations: 326.8 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001866/0.8376, allocations: 67.86 kB / 1.172 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.8378, allocations: 71.88 kB / 1.172 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003342/0.8381, allocations: 177.9 kB / 1.172 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.8381, allocations: 4 kB / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004921/0.8386, allocations: 264.8 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.25e-05/0.8387, allocations: 63.39 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.8387, allocations: 0 / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.8387, allocations: 0 / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.8388, allocations: 15.98 kB / 1.173 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.8389, allocations: 0 / 1.173 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.839, allocations: 31.91 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.839, allocations: 4 kB / 1.173 GB, free: 14.07 MB / 0.9044 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.0001213/0.8392, allocations: 159.5 kB / 1.173 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.301e-05/0.8392, allocations: 7.906 kB / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.325e-05/0.8392, allocations: 12.38 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.8393, allocations: 0 / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.8393, allocations: 256 / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.8393, allocations: 0 / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.8394, allocations: 197.5 kB / 1.173 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.8394, allocations: 4 kB / 1.173 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.022e-05/0.8395, allocations: 19.91 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.8395, allocations: 0 / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.8396, allocations: 4 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.8396, allocations: 3.984 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8396, allocations: 0 / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004804/0.8401, allocations: 254.6 kB / 1.173 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.835e-05/0.8401, allocations: 84.95 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.8401, allocations: 4 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.8403, allocations: 19.97 kB / 1.173 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.8404, allocations: 35.97 kB / 1.173 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.8404, allocations: 0 / 1.173 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.762e-05/0.8405, allocations: 99.27 kB / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.8405, allocations: 0 / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002277/0.8408, allocations: 35.92 kB / 1.174 GB, free: 13.04 MB / 0.9044 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.000116/0.8409, allocations: 108.2 kB / 1.174 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005059/0.8414, allocations: 258.7 kB / 1.174 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.8414, allocations: 0 / 1.174 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002473/0.8417, allocations: 139.3 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.8419, allocations: 25.94 kB / 1.174 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005488/0.8425, allocations: 248.8 kB / 1.174 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.8427, allocations: 0.6924 MB / 1.175 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.348e-05/0.8428, allocations: 11.44 kB / 1.175 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.8428, allocations: 0 / 1.175 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of Templates: time 0.003343/0.8461, allocations: 1.434 MB / 1.176 GB, free: 10.05 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches