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.492/1.492, allocations: 249.3 MB / 261.8 MB, free: 5.859 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001083/0.001084, allocations: 176.9 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 205.2 MB / 0.572 GB, free: 10.65 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.000831/0.0008309, allocations: 83.11 kB / 0.6764 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 5.239e-05/5.24e-05, allocations: 4 kB / 0.7879 GB, free: 97.13 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2524, allocations: 106.3 MB / 0.8918 GB, free: 6.695 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8068/1.059, allocations: 132.6 MB / 1.021 GB, free: 2.156 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/1.06, allocations: 72.64 kB / 1.021 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004824/1.065, allocations: 1.516 MB / 1.023 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.683e-06/1.065, allocations: 0 / 1.023 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.182e-05/1.065, allocations: 4 kB / 1.023 GB, free: 0.7891 MB / 0.6355 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.0006086/1.065, allocations: 432.8 kB / 1.023 GB, free: 324 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/1.065, allocations: 8.031 kB / 1.023 GB, free: 316 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.183e-05/1.065, allocations: 8 kB / 1.023 GB, free: 308 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/1.066, allocations: 195 kB / 1.023 GB, free: 80 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/1.066, allocations: 4 kB / 1.023 GB, free: 76 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.07e-05/1.066, allocations: 15.3 kB / 1.023 GB, free: 64 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002283/1.066, allocations: 90.09 kB / 1.024 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/1.066, allocations: 0 / 1.024 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.88e-05/1.066, allocations: 2.938 kB / 1.024 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/1.066, allocations: 7.984 kB / 1.024 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/1.066, allocations: 56.05 kB / 1.024 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000587/1.067, allocations: 339 kB / 1.024 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/1.067, allocations: 74.94 kB / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.723e-05/1.067, allocations: 58.66 kB / 1.024 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/1.067, allocations: 0 / 1.024 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002007/1.067, allocations: 113.5 kB / 1.024 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/1.067, allocations: 0 / 1.024 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of matching and sorting (n=6): time 0.0003753/1.067, allocations: 178 kB / 1.024 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.264e-05/1.068, allocations: 81.11 kB / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/1.068, allocations: 120.2 kB / 1.025 GB, free: 15 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/1.068, allocations: 29.7 kB / 1.025 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.365e-05/1.068, allocations: 98.88 kB / 1.025 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/1.068, allocations: 27.19 kB / 1.025 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.068e-06/1.068, allocations: 0 / 1.025 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001175/1.068, allocations: 322.3 kB / 1.025 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.604e-05/1.068, allocations: 45.73 kB / 1.025 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.731e-05/1.068, allocations: 49.69 kB / 1.025 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001001/1.068, allocations: 86.06 kB / 1.025 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/1.068, allocations: 0 / 1.025 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003181/1.069, allocations: 219.2 kB / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 5.685e-05/1.069, allocations: 68.83 kB / 1.025 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/1.069, allocations: 0 / 1.025 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/1.069, allocations: 7.938 kB / 1.025 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/1.069, allocations: 15.98 kB / 1.025 GB, free: 14.08 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/1.069, allocations: 3.953 kB / 1.025 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/1.069, allocations: 27.97 kB / 1.026 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/1.069, allocations: 4 kB / 1.026 GB, free: 14.04 MB / 0.6511 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 () * 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.0001126/1.069, allocations: 149.1 kB / 1.026 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.081e-05/1.069, allocations: 11.91 kB / 1.026 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.699e-05/1.069, allocations: 12.11 kB / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/1.069, allocations: 0 / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.069, allocations: 4 kB / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/1.069, allocations: 3.953 kB / 1.026 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001706/1.069, allocations: 195.5 kB / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/1.069, allocations: 0 / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.794e-05/1.07, allocations: 19.98 kB / 1.026 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/1.07, allocations: 4 kB / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/1.07, allocations: 96 / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/1.07, allocations: 3.938 kB / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/1.07, allocations: 0 / 1.026 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002925/1.07, allocations: 210.8 kB / 1.026 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.286e-05/1.07, allocations: 88.95 kB / 1.026 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.603e-05/1.07, allocations: 7.25 kB / 1.026 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/1.07, allocations: 28.09 kB / 1.026 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/1.07, allocations: 41.64 kB / 1.026 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/1.07, allocations: 4 kB / 1.026 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.049e-05/1.07, allocations: 100.3 kB / 1.026 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/1.07, allocations: 0 / 1.026 GB, free: 13.15 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002088/1.071, allocations: 27.75 kB / 1.026 GB, free: 13.12 MB / 0.6511 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) * 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.0001896/1.071, allocations: 111.2 kB / 1.026 GB, free: 13.01 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003236/1.071, allocations: 229.1 kB / 1.027 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/1.071, allocations: 0 / 1.027 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001524/1.071, allocations: 116.5 kB / 1.027 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001899/1.071, allocations: 19.12 kB / 1.027 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004086/1.072, allocations: 136.5 kB / 1.027 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/1.072, allocations: 0.7043 MB / 1.028 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.844e-05/1.072, allocations: 4.188 kB / 1.028 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.826e-05/1.072, allocations: 15.42 kB / 1.028 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of SimCode: time 5.01e-07/1.072, allocations: 0 / 1.028 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of Templates: time 0.004536/1.077, allocations: 1.532 MB / 1.029 GB, free: 10.28 MB / 0.6511 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