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.007563/0.007563, allocations: 99.97 kB / 15.73 MB, free: 6.004 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.001244/0.001244, allocations: 190.4 kB / 16.67 MB, free: 5.922 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.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.34/2.34, allocations: 390.2 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002526/0.002526, allocations: 67.91 kB / 0.9508 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9556/0.9581, allocations: 140.4 MB / 1.088 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.00285/0.961, allocations: 1.476 MB / 1.089 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008228/0.9619, allocations: 456.2 kB / 1.09 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.078e-05/0.962, allocations: 4.906 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.9621, allocations: 6.125 kB / 1.09 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.497e-05/0.9621, allocations: 18.88 kB / 1.09 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002703/0.9624, allocations: 42.02 kB / 1.09 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002251/0.9627, allocations: 96.08 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.9628, allocations: 16.36 kB / 1.09 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.9629, allocations: 51.16 kB / 1.09 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000112/0.9631, allocations: 39.22 kB / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.242e-05/0.9631, allocations: 8.5 kB / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.419e-05/0.9631, allocations: 8.188 kB / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.9e-05/0.9632, allocations: 14.25 kB / 1.09 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.226e-05/0.9633, allocations: 37.56 kB / 1.09 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002156/0.9635, allocations: 85.77 kB / 1.09 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.9635, allocations: 4.594 kB / 1.09 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.406e-06/0.9635, allocations: 1.281 kB / 1.09 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.9635, allocations: 7.938 kB / 1.09 GB, free: 3.973 MB / 0.8575 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.0007065/0.9642, allocations: 451.5 kB / 1.091 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.9643, allocations: 8.969 kB / 1.091 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.318e-05/0.9644, allocations: 10.36 kB / 1.091 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.9645, allocations: 190 kB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.9645, allocations: 4 kB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.569e-05/0.9646, allocations: 7.531 kB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003508/0.9649, allocations: 124.5 kB / 1.091 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.965, allocations: 4 kB / 1.091 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.965, allocations: 2.766 kB / 1.091 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.965, allocations: 1.062 kB / 1.091 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003322/0.9653, allocations: 94.14 kB / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005812/0.9659, allocations: 335.5 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000354/0.9663, allocations: 103.6 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.9665, allocations: 71.69 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.9665, allocations: 1.328 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003886/0.9669, allocations: 131.6 kB / 1.092 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.843e-06/0.9669, allocations: 0 / 1.092 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0007952/0.9677, allocations: 268.5 kB / 1.092 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.9678, allocations: 86.56 kB / 1.092 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.695e-05/0.9679, allocations: 138.9 kB / 1.092 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.9679, allocations: 33.06 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.343e-05/0.968, allocations: 89.36 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.342e-05/0.968, allocations: 21.7 kB / 1.092 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.339e-05/0.9681, allocations: 30.91 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.857e-05/0.9681, allocations: 323 kB / 1.093 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.9683, allocations: 66.91 kB / 1.093 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001967/0.9685, allocations: 71.88 kB / 1.093 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003402/0.9689, allocations: 182 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.9689, allocations: 0.75 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005198/0.9694, allocations: 262 kB / 1.093 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.405e-05/0.9695, allocations: 66.31 kB / 1.093 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.9695, allocations: 4.547 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.9695, allocations: 0.8438 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.9696, allocations: 14.34 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.9697, allocations: 0 / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001672/0.9698, allocations: 29.5 kB / 1.093 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.977e-05/0.9699, allocations: 2.656 kB / 1.093 GB, free: 1.602 MB / 0.8575 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.0001115/0.97, allocations: 164.5 kB / 1.093 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.97, allocations: 9.922 kB / 1.093 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.477e-05/0.97, allocations: 11.39 kB / 1.093 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.9701, allocations: 1.844 kB / 1.093 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.9701, allocations: 0.5156 kB / 1.093 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.9701, allocations: 0 / 1.093 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001521/0.9702, allocations: 196.9 kB / 1.094 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.9702, allocations: 0.6562 kB / 1.094 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.314e-05/0.9703, allocations: 16.36 kB / 1.094 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.9703, allocations: 1.031 kB / 1.094 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.9704, allocations: 14.69 kB / 1.094 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.9704, allocations: 0.6875 kB / 1.094 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.9704, allocations: 1.562 kB / 1.094 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005476/0.9709, allocations: 245 kB / 1.094 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.896e-05/0.971, allocations: 83.92 kB / 1.094 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.022e-05/0.971, allocations: 3.469 kB / 1.094 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.9712, allocations: 22.86 kB / 1.094 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.9713, allocations: 37.8 kB / 1.094 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.9714, allocations: 4.078 kB / 1.094 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.066e-05/0.9714, allocations: 98.81 kB / 1.094 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9714, allocations: 0.875 kB / 1.094 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002217/0.9717, allocations: 24.84 kB / 1.094 GB, free: 0.8633 MB / 0.8575 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.0001015/0.9718, allocations: 112.3 kB / 1.094 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005246/0.9723, allocations: 264.6 kB / 1.095 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.9723, allocations: 0 / 1.095 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002656/0.9726, allocations: 144.7 kB / 1.095 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.9728, allocations: 17.77 kB / 1.095 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005059/0.9733, allocations: 215.4 kB / 1.095 GB, free: 360 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/0.9736, allocations: 0.6891 MB / 1.096 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.827e-05/0.9736, allocations: 11.12 kB / 1.096 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.104e-05/0.9737, allocations: 20.67 kB / 1.096 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of SimCode: time 1.9e-07/0.9737, allocations: 0 / 1.096 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of Templates: time 0.005451/0.9791, allocations: 1.87 MB / 1.097 GB, free: 15.46 MB / 0.8731 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