Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.38/1.38, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001325/0.001325, allocations: 175.1 kB / 326.5 MB, free: 2.273 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.01/2.01, allocations: 205.4 MB / 0.5775 GB, free: 20.29 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008755/0.0008757, allocations: 88.33 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000347/0.000347, allocations: 8.75 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2625, allocations: 106.3 MB / 0.9001 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1864/0.4489, allocations: 132.7 MB / 1.03 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.4492, allocations: 75.95 kB / 1.03 GB, free: 11.03 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004841/0.4541, allocations: 1.524 MB / 1.031 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.473e-06/0.4541, allocations: 0 / 1.031 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.438e-06/0.4541, allocations: 0 / 1.031 GB, free: 9.504 MB / 0.6823 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.0006389/0.4548, allocations: 446.4 kB / 1.032 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.4548, allocations: 12.03 kB / 1.032 GB, free: 8.996 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.278e-05/0.4549, allocations: 11.91 kB / 1.032 GB, free: 8.984 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002616/0.4552, allocations: 190.9 kB / 1.032 GB, free: 8.758 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.4552, allocations: 8 kB / 1.032 GB, free: 8.75 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.501e-05/0.4552, allocations: 8 kB / 1.032 GB, free: 8.742 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003269/0.4555, allocations: 121.8 kB / 1.032 GB, free: 8.617 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.4556, allocations: 0 / 1.032 GB, free: 8.617 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.4556, allocations: 7.984 kB / 1.032 GB, free: 8.609 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.4556, allocations: 7.984 kB / 1.032 GB, free: 8.602 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003097/0.4559, allocations: 99.92 kB / 1.032 GB, free: 8.504 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005802/0.4565, allocations: 340.7 kB / 1.032 GB, free: 8.121 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003351/0.4569, allocations: 126.4 kB / 1.033 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.4569, allocations: 3.938 kB / 1.033 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002923/0.4572, allocations: 131.5 kB / 1.033 GB, free: 7.844 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 1.513e-06/0.4572, allocations: 0 / 1.033 GB, free: 7.844 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.000739/0.4579, allocations: 295.2 kB / 1.033 GB, free: 7.543 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.458, allocations: 89 kB / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.4581, allocations: 126.2 kB / 1.033 GB, free: 7.309 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.4582, allocations: 29.7 kB / 1.033 GB, free: 7.273 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.991e-05/0.4582, allocations: 88.14 kB / 1.033 GB, free: 7.184 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.408e-05/0.4583, allocations: 15.81 kB / 1.033 GB, free: 7.168 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.134e-05/0.4583, allocations: 4 kB / 1.033 GB, free: 7.164 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4584, allocations: 326.8 kB / 1.034 GB, free: 6.836 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.4586, allocations: 71.95 kB / 1.034 GB, free: 6.766 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.4588, allocations: 79.94 kB / 1.034 GB, free: 6.688 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/0.459, allocations: 107.4 kB / 1.034 GB, free: 6.57 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.459, allocations: 0 / 1.034 GB, free: 6.57 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000512/0.4596, allocations: 276.8 kB / 1.034 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.457e-05/0.4596, allocations: 63.41 kB / 1.034 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.4596, allocations: 0 / 1.034 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.4597, allocations: 3.984 kB / 1.034 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.4598, allocations: 19.98 kB / 1.034 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.4598, allocations: 0 / 1.034 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.46, allocations: 31.94 kB / 1.034 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.46, allocations: 11.98 kB / 1.034 GB, free: 6.141 MB / 0.6823 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 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001248/0.4601, allocations: 143.5 kB / 1.034 GB, free: 5.984 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.027e-05/0.4602, allocations: 11.91 kB / 1.034 GB, free: 5.973 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.636e-05/0.4602, allocations: 8.375 kB / 1.034 GB, free: 5.965 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.4602, allocations: 7.922 kB / 1.034 GB, free: 5.957 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.4602, allocations: 4 kB / 1.034 GB, free: 5.953 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/0.4602, allocations: 4 kB / 1.034 GB, free: 5.949 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.4604, allocations: 201.4 kB / 1.035 GB, free: 5.703 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.4604, allocations: 0 / 1.035 GB, free: 5.703 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.987e-05/0.4605, allocations: 15.98 kB / 1.035 GB, free: 5.688 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.4605, allocations: 0 / 1.035 GB, free: 5.688 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.4606, allocations: 4.25 kB / 1.035 GB, free: 5.684 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.4606, allocations: 4 kB / 1.035 GB, free: 5.68 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.4606, allocations: 0 / 1.035 GB, free: 5.68 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004916/0.4611, allocations: 263.2 kB / 1.035 GB, free: 5.398 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.256e-05/0.4611, allocations: 89.02 kB / 1.035 GB, free: 5.293 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.638e-05/0.4612, allocations: 4.094 kB / 1.035 GB, free: 5.289 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.4613, allocations: 31.91 kB / 1.035 GB, free: 5.258 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.4615, allocations: 36.03 kB / 1.035 GB, free: 5.223 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.4615, allocations: 7.984 kB / 1.035 GB, free: 5.215 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 7.264e-05/0.4616, allocations: 109.3 kB / 1.035 GB, free: 5.109 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4616, allocations: 4 kB / 1.035 GB, free: 5.105 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002019/0.4618, allocations: 20 kB / 1.035 GB, free: 5.086 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001561/0.4619, allocations: 103.2 kB / 1.035 GB, free: 4.973 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005264/0.4625, allocations: 278.7 kB / 1.036 GB, free: 4.676 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4625, allocations: 0 / 1.036 GB, free: 4.676 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002562/0.4627, allocations: 143.3 kB / 1.036 GB, free: 4.523 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000171/0.4629, allocations: 22.28 kB / 1.036 GB, free: 4.504 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005367/0.4635, allocations: 241.2 kB / 1.036 GB, free: 4.234 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.4638, allocations: 0.6901 MB / 1.037 GB, free: 3.52 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 5.69e-05/0.4639, allocations: 16.17 kB / 1.037 GB, free: 3.5 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.96e-05/0.4639, allocations: 7.438 kB / 1.037 GB, free: 3.496 MB / 0.6823 GB Notification: Performance of SimCode: time 2.21e-07/0.4639, allocations: 0 / 1.037 GB, free: 3.496 MB / 0.6823 GB Notification: Performance of Templates: time 0.003964/0.4679, allocations: 1.538 MB / 1.038 GB, free: 1.977 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,numReq.u[1],numReq.u[2],numReq.y Variables in the result:numReq.kind,numReq.nin,numReq.threShold,numReq.u[1],numReq.u[2],numReq.y,pulse.amplitude,pulse.nperiod,pulse.offset,pulse.period,pulse.startTime,pulse.width,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time