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.001626/0.001626, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002062/0.002062, allocations: 198.1 kB / 16.26 MB, free: 6.625 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.444/1.444, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.551/2.551, allocations: 390.2 MB / 0.6643 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 63.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6668/0.6682, allocations: 140.4 MB / 0.9491 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002311/0.6706, allocations: 1.546 MB / 0.9506 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006009/0.6712, allocations: 456.7 kB / 0.951 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.379e-05/0.6712, allocations: 1.531 kB / 0.951 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.466e-05/0.6713, allocations: 3.938 kB / 0.951 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.509e-05/0.6714, allocations: 13.34 kB / 0.951 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002083/0.6716, allocations: 41.81 kB / 0.9511 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001656/0.6718, allocations: 99.17 kB / 0.9512 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.6719, allocations: 14.05 kB / 0.9512 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.6721, allocations: 50.44 kB / 0.9512 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.359e-05/0.6722, allocations: 43.25 kB / 0.9513 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.129e-05/0.6722, allocations: 8.5 kB / 0.9513 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.524e-05/0.6722, allocations: 7.75 kB / 0.9513 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.067e-05/0.6723, allocations: 10.89 kB / 0.9513 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.195e-05/0.6724, allocations: 44.22 kB / 0.9513 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001551/0.6725, allocations: 80.17 kB / 0.9514 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.6725, allocations: 0 / 0.9514 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6725, allocations: 0 / 0.9514 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.6725, allocations: 0 / 0.9514 GB, free: 7.359 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.0007028/0.6733, allocations: 456.1 kB / 0.9519 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.6733, allocations: 8.781 kB / 0.9519 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.556e-05/0.6734, allocations: 10.34 kB / 0.9519 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.6735, allocations: 185.5 kB / 0.9521 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.6736, allocations: 6.969 kB / 0.9521 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.447e-05/0.6736, allocations: 14.77 kB / 0.9521 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003295/0.6739, allocations: 118.9 kB / 0.9522 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.674, allocations: 0 / 0.9522 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/0.674, allocations: 2.469 kB / 0.9522 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.674, allocations: 1.344 kB / 0.9522 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002958/0.6743, allocations: 85.98 kB / 0.9523 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005031/0.6748, allocations: 344 kB / 0.9526 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.6751, allocations: 105.8 kB / 0.9527 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.6753, allocations: 75.19 kB / 0.9528 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.6753, allocations: 1.062 kB / 0.9528 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003471/0.6757, allocations: 123.5 kB / 0.9529 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.974e-06/0.6757, allocations: 0 / 0.9529 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0007129/0.6764, allocations: 281.6 kB / 0.9532 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.6765, allocations: 80.23 kB / 0.9532 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.774e-05/0.6766, allocations: 140.3 kB / 0.9534 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.6766, allocations: 32.48 kB / 0.9534 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.92e-05/0.6766, allocations: 86.83 kB / 0.9535 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.6766, allocations: 20.2 kB / 0.9535 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.687e-05/0.6767, allocations: 33.91 kB / 0.9535 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.481e-05/0.6768, allocations: 319.9 kB / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.6769, allocations: 65.67 kB / 0.9539 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.6771, allocations: 70.42 kB / 0.954 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/0.6774, allocations: 179.5 kB / 0.9541 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.6774, allocations: 3.938 kB / 0.9541 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004743/0.6779, allocations: 258.9 kB / 0.9544 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.166e-05/0.678, allocations: 63.86 kB / 0.9545 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.678, allocations: 4 kB / 0.9545 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.678, allocations: 1.5 kB / 0.9545 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.6781, allocations: 12.42 kB / 0.9545 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.6782, allocations: 1.312 kB / 0.9545 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.6783, allocations: 32.66 kB / 0.9545 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.6783, allocations: 3.625 kB / 0.9545 GB, free: 4.691 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 8.442e-05/0.6784, allocations: 155 kB / 0.9547 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.089e-05/0.6785, allocations: 16.08 kB / 0.9547 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.138e-05/0.6785, allocations: 10.72 kB / 0.9547 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.6785, allocations: 5.141 kB / 0.9547 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.6785, allocations: 96 / 0.9547 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.6785, allocations: 5.219 kB / 0.9547 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.6786, allocations: 199.6 kB / 0.9549 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.6787, allocations: 1.25 kB / 0.9549 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.24e-05/0.6787, allocations: 11.89 kB / 0.9549 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.6788, allocations: 0 / 0.9549 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.6788, allocations: 2.406 kB / 0.9549 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.6788, allocations: 5.062 kB / 0.9549 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.6788, allocations: 0 / 0.9549 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004528/0.6792, allocations: 245.8 kB / 0.9551 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.252e-05/0.6793, allocations: 90.62 kB / 0.9552 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.846e-05/0.6793, allocations: 4.188 kB / 0.9552 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.6795, allocations: 19.98 kB / 0.9552 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.6796, allocations: 38.27 kB / 0.9553 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.6796, allocations: 7.156 kB / 0.9553 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.649e-05/0.6797, allocations: 99.7 kB / 0.9554 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6797, allocations: 0 / 0.9554 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002197/0.6799, allocations: 25.66 kB / 0.9554 GB, free: 3.875 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 0.0001078/0.68, allocations: 109.9 kB / 0.9555 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004901/0.6805, allocations: 269.5 kB / 0.9558 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.6805, allocations: 0 / 0.9558 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002191/0.6808, allocations: 137.8 kB / 0.9559 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002224/0.681, allocations: 18.69 kB / 0.9559 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004579/0.6815, allocations: 228.2 kB / 0.9561 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000113/0.6816, allocations: 0.6968 MB / 0.9568 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.361e-05/0.6816, allocations: 12.83 kB / 0.9568 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.716e-05/0.6817, allocations: 16.31 kB / 0.9568 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of SimCode: time 2.8e-07/0.6817, allocations: 0 / 0.9568 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of Templates: time 0.003819/0.6855, allocations: 1.682 MB / 0.9585 GB, free: 1.703 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