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.001231/0.001231, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.462/1.462, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.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.782/2.782, allocations: 437 MB / 0.7104 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 67.89 kB / 0.8692 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6377/0.6392, allocations: 151.6 MB / 1.017 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002825/0.642, allocations: 1.473 MB / 1.019 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007982/0.6428, allocations: 462.9 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.942e-05/0.6429, allocations: 0 / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.244e-05/0.643, allocations: 7.938 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.114e-05/0.6431, allocations: 19.8 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002176/0.6433, allocations: 31.95 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001573/0.6435, allocations: 103.7 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.6436, allocations: 24.17 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.6438, allocations: 39.91 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.127e-05/0.6439, allocations: 39.83 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/0.6439, allocations: 11.98 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 2.3e-05/0.6439, allocations: 8 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.773e-05/0.644, allocations: 19.92 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.58e-05/0.6441, allocations: 39.8 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.6442, allocations: 79.75 kB / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.6442, allocations: 0 / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.322e-06/0.6442, allocations: 0 / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.6442, allocations: 4 kB / 1.02 GB, free: 164 kB / 0.7637 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.0006976/0.6449, allocations: 452.6 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.645, allocations: 8.031 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.709e-05/0.645, allocations: 12.84 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.6452, allocations: 188.2 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.6452, allocations: 4.375 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.511e-05/0.6453, allocations: 12.31 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003105/0.6456, allocations: 113.8 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.6456, allocations: 4 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.6456, allocations: 0 / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.6456, allocations: 3.984 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003155/0.646, allocations: 91.86 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005583/0.6465, allocations: 340.6 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003264/0.6469, allocations: 106.5 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/0.6471, allocations: 68.94 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.6471, allocations: 0 / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003333/0.6474, allocations: 127.3 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 3.287e-06/0.6475, allocations: 4 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0007201/0.6482, allocations: 275.1 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.6482, allocations: 89.11 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.6484, allocations: 131 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.6484, allocations: 29.7 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.505e-05/0.6484, allocations: 92.12 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.161e-05/0.6485, allocations: 11.81 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.785e-05/0.6486, allocations: 33.66 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.6487, allocations: 326.8 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.6489, allocations: 63.95 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.6491, allocations: 71.94 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003372/0.6494, allocations: 173.9 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.6494, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005136/0.6499, allocations: 268.9 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.209e-05/0.65, allocations: 71.39 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.65, allocations: 256 / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.65, allocations: 0 / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.6502, allocations: 15.98 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.6502, allocations: 4 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.6503, allocations: 27.81 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.6504, allocations: 11.98 kB / 1.023 GB, free: 12.7 MB / 0.7794 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.0001304/0.6505, allocations: 155.5 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.019e-05/0.6505, allocations: 8 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.049e-05/0.6506, allocations: 8.375 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.6506, allocations: 0 / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.6506, allocations: 4 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.6506, allocations: 3.938 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.6508, allocations: 201.5 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.6508, allocations: 4 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.875e-05/0.6509, allocations: 11.98 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.6509, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.6509, allocations: 7.984 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.6509, allocations: 4 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.6509, allocations: 0 / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004799/0.6514, allocations: 238.7 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.147e-05/0.6515, allocations: 85.02 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.6515, allocations: 4 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.6516, allocations: 31.91 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.6518, allocations: 27.97 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.6518, allocations: 4 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.124e-05/0.6519, allocations: 104.8 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.894e-06/0.6519, allocations: 0 / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002207/0.6521, allocations: 35.88 kB / 1.024 GB, free: 11.67 MB / 0.7794 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 9.675e-05/0.6522, allocations: 99.41 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005231/0.6527, allocations: 270.7 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.6528, allocations: 0 / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002577/0.653, allocations: 143.3 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.6532, allocations: 14.19 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005125/0.6538, allocations: 227.4 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.654, allocations: 0.6924 MB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.035e-05/0.6541, allocations: 8 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.643e-05/0.6541, allocations: 15.42 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.6541, allocations: 3.938 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of Templates: time 0.00439/0.6585, allocations: 1.854 MB / 1.027 GB, free: 8.273 MB / 0.7794 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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.f,sine.offset,sine.phase,sine.startTime,time