Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001204/0.001204, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001434/0.001434, allocations: 194.7 kB / 16.14 MB, free: 6.637 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.373/1.373, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.561/2.561, allocations: 390.2 MB / 0.6642 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 59.91 kB / 0.8118 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6378/0.6392, allocations: 140.4 MB / 0.9489 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002386/0.6416, allocations: 1.54 MB / 0.9504 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006831/0.6423, allocations: 471.8 kB / 0.9509 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.011e-05/0.6424, allocations: 1.062 kB / 0.9509 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.027e-05/0.6425, allocations: 0 / 0.9509 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.904e-05/0.6426, allocations: 13.42 kB / 0.9509 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001903/0.6427, allocations: 33.56 kB / 0.9509 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.6429, allocations: 94.38 kB / 0.951 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.786e-05/0.643, allocations: 18.14 kB / 0.951 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.6431, allocations: 38.81 kB / 0.9511 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.091e-05/0.6432, allocations: 38.64 kB / 0.9511 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.585e-05/0.6432, allocations: 5.594 kB / 0.9511 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.875e-05/0.6432, allocations: 4.219 kB / 0.9511 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.6433, allocations: 10.75 kB / 0.9511 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.905e-05/0.6433, allocations: 44.19 kB / 0.9512 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001116/0.6434, allocations: 75.3 kB / 0.9512 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.6435, allocations: 7.938 kB / 0.9512 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.012e-06/0.6435, allocations: 0 / 0.9512 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.6435, allocations: 1.219 kB / 0.9512 GB, free: 7.297 MB / 0.7169 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.0006063/0.6441, allocations: 450.7 kB / 0.9517 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.6441, allocations: 9.031 kB / 0.9517 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.517e-05/0.6442, allocations: 10.28 kB / 0.9517 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.6443, allocations: 185.3 kB / 0.9519 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.6443, allocations: 6.766 kB / 0.9519 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/0.6444, allocations: 14.28 kB / 0.9519 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/0.6447, allocations: 115.6 kB / 0.952 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.6447, allocations: 0 / 0.952 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.6447, allocations: 10.69 kB / 0.952 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.6447, allocations: 0 / 0.952 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002907/0.645, allocations: 94.72 kB / 0.9521 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004696/0.6455, allocations: 340.3 kB / 0.9524 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002966/0.6458, allocations: 105.8 kB / 0.9525 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/0.646, allocations: 71.41 kB / 0.9526 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.646, allocations: 4 kB / 0.9526 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003092/0.6463, allocations: 124.8 kB / 0.9527 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/0.6463, allocations: 3.938 kB / 0.9527 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0006741/0.647, allocations: 273.7 kB / 0.953 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.647, allocations: 83.89 kB / 0.953 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.76e-05/0.6471, allocations: 133.8 kB / 0.9532 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.6472, allocations: 28.61 kB / 0.9532 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.65e-05/0.6472, allocations: 90.7 kB / 0.9533 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.002e-05/0.6472, allocations: 20.61 kB / 0.9533 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-05/0.6473, allocations: 24.88 kB / 0.9533 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.205e-05/0.6473, allocations: 325.6 kB / 0.9536 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.6475, allocations: 72.39 kB / 0.9537 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001823/0.6477, allocations: 63.8 kB / 0.9538 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/0.648, allocations: 182.4 kB / 0.9539 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.648, allocations: 0 / 0.9539 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004579/0.6485, allocations: 262.5 kB / 0.9542 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.904e-05/0.6485, allocations: 68.77 kB / 0.9543 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.6486, allocations: 1.531 kB / 0.9543 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.6486, allocations: 3.938 kB / 0.9543 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.6487, allocations: 14.05 kB / 0.9543 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.6487, allocations: 0 / 0.9543 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001515/0.6489, allocations: 30 kB / 0.9543 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.937e-05/0.6489, allocations: 7.625 kB / 0.9543 GB, free: 4.625 MB / 0.7169 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 7.95e-05/0.649, allocations: 154.5 kB / 0.9545 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.185e-05/0.649, allocations: 17.17 kB / 0.9545 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.615e-05/0.649, allocations: 9.5 kB / 0.9545 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.649, allocations: 1.344 kB / 0.9545 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.6491, allocations: 0 / 0.9545 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.6491, allocations: 1.406 kB / 0.9545 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001027/0.6492, allocations: 199.4 kB / 0.9547 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.6492, allocations: 1.219 kB / 0.9547 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.38e-05/0.6493, allocations: 19.7 kB / 0.9547 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.6493, allocations: 0 / 0.9547 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.6493, allocations: 2.75 kB / 0.9547 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.6493, allocations: 1.375 kB / 0.9547 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.6493, allocations: 0 / 0.9547 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004406/0.6498, allocations: 241.5 kB / 0.9549 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.362e-05/0.6498, allocations: 91.03 kB / 0.955 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.872e-05/0.6498, allocations: 10.91 kB / 0.955 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.65, allocations: 17.55 kB / 0.9551 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.6501, allocations: 33.05 kB / 0.9551 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.6501, allocations: 3.5 kB / 0.9551 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.367e-05/0.6502, allocations: 106.5 kB / 0.9552 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6502, allocations: 0 / 0.9552 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002173/0.6504, allocations: 29.47 kB / 0.9552 GB, free: 3.812 MB / 0.7169 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 8.287e-05/0.6505, allocations: 106.2 kB / 0.9553 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004597/0.6509, allocations: 260 kB / 0.9556 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.651, allocations: 0 / 0.9556 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002288/0.6512, allocations: 142.3 kB / 0.9557 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002113/0.6514, allocations: 20.09 kB / 0.9557 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004875/0.6519, allocations: 230 kB / 0.9559 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001083/0.652, allocations: 0.69 MB / 0.9566 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.531e-05/0.6521, allocations: 8 kB / 0.9566 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.826e-05/0.6521, allocations: 14.11 kB / 0.9566 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/0.6521, allocations: 1.469 kB / 0.9566 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of Templates: time 0.003884/0.656, allocations: 1.599 MB / 0.9582 GB, free: 1.691 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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