Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001653/0.001653, allocations: 114.6 kB / 16.42 MB, free: 6.465 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.001899/0.001899, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.635/2.635, allocations: 472.7 MB / 0.746 GB, free: 436 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 68.05 kB / 1.07 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7857/0.7871, allocations: 159.9 MB / 1.226 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.00283/0.79, allocations: 1.482 MB / 1.228 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0008755/0.7909, allocations: 470.9 kB / 1.228 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.912e-05/0.791, allocations: 0 / 1.228 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.7911, allocations: 3.938 kB / 1.228 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.615e-05/0.7912, allocations: 11.88 kB / 1.228 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002375/0.7914, allocations: 43.88 kB / 1.228 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001873/0.7916, allocations: 107.7 kB / 1.228 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.7918, allocations: 12.19 kB / 1.228 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.7919, allocations: 47.89 kB / 1.228 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 9.689e-05/0.792, allocations: 39.81 kB / 1.228 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.982e-05/0.7921, allocations: 8 kB / 1.228 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 2.114e-05/0.7921, allocations: 8 kB / 1.228 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.678e-05/0.7921, allocations: 15.92 kB / 1.228 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.644e-05/0.7922, allocations: 39.86 kB / 1.229 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002298/0.7925, allocations: 88.19 kB / 1.229 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.7925, allocations: 0 / 1.229 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.152e-06/0.7925, allocations: 4 kB / 1.229 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.7925, allocations: 0 / 1.229 GB, free: 11.14 MB / 0.9512 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.0006856/0.7932, allocations: 446.5 kB / 1.229 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.7932, allocations: 8.031 kB / 1.229 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.777e-05/0.7933, allocations: 12.89 kB / 1.229 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000224/0.7935, allocations: 195.8 kB / 1.229 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.7935, allocations: 12.31 kB / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.433e-05/0.7936, allocations: 4.375 kB / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003484/0.7939, allocations: 117.8 kB / 1.229 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.525e-06/0.7939, allocations: 0 / 1.229 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.794, allocations: 3.984 kB / 1.229 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.794, allocations: 3.938 kB / 1.229 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003015/0.7943, allocations: 91.92 kB / 1.229 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005455/0.7948, allocations: 332.7 kB / 1.23 GB, free: 9.793 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003183/0.7952, allocations: 106.5 kB / 1.23 GB, free: 9.68 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000185/0.7954, allocations: 76.88 kB / 1.23 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.7954, allocations: 0 / 1.23 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003494/0.7957, allocations: 131.3 kB / 1.23 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=6): time 1.683e-06/0.7958, allocations: 0 / 1.23 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.0007389/0.7965, allocations: 275.2 kB / 1.23 GB, free: 9.18 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.7966, allocations: 85.11 kB / 1.23 GB, free: 9.078 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.7967, allocations: 129.8 kB / 1.231 GB, free: 8.941 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.7968, allocations: 33.7 kB / 1.231 GB, free: 8.902 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.387e-05/0.7968, allocations: 96.08 kB / 1.231 GB, free: 8.805 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.7969, allocations: 23.78 kB / 1.231 GB, free: 8.781 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.481e-05/0.7969, allocations: 29.7 kB / 1.231 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001611/0.7971, allocations: 326.8 kB / 1.231 GB, free: 8.418 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.7973, allocations: 59.95 kB / 1.231 GB, free: 8.359 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.7975, allocations: 71.94 kB / 1.231 GB, free: 8.289 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003408/0.7979, allocations: 173.9 kB / 1.231 GB, free: 8.098 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.7979, allocations: 0 / 1.231 GB, free: 8.098 MB / 0.9512 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004999/0.7984, allocations: 268.9 kB / 1.232 GB, free: 7.816 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.176e-05/0.7984, allocations: 63.39 kB / 1.232 GB, free: 7.742 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.7984, allocations: 0 / 1.232 GB, free: 7.742 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.7985, allocations: 0 / 1.232 GB, free: 7.742 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.7986, allocations: 11.98 kB / 1.232 GB, free: 7.73 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.7986, allocations: 4 kB / 1.232 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.7988, allocations: 23.97 kB / 1.232 GB, free: 7.703 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.7988, allocations: 8.094 kB / 1.232 GB, free: 7.695 MB / 0.9512 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.0001217/0.7989, allocations: 163.9 kB / 1.232 GB, free: 7.52 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.128e-05/0.799, allocations: 7.953 kB / 1.232 GB, free: 7.512 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.158e-05/0.799, allocations: 8.375 kB / 1.232 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.799, allocations: 3.938 kB / 1.232 GB, free: 7.496 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.799, allocations: 7.938 kB / 1.232 GB, free: 7.488 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.7991, allocations: 85.05 kB / 1.232 GB, free: 7.387 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.928e-05/0.7992, allocations: 7.938 kB / 1.232 GB, free: 7.379 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.7993, allocations: 23.98 kB / 1.232 GB, free: 7.355 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.7994, allocations: 35.95 kB / 1.232 GB, free: 7.32 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006266/0.8001, allocations: 354 kB / 1.232 GB, free: 6.949 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006486/0.8007, allocations: 396.6 kB / 1.233 GB, free: 6.539 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002241/0.801, allocations: 84 kB / 1.233 GB, free: 6.457 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.988e-05/0.8011, allocations: 105.7 kB / 1.233 GB, free: 6.355 MB / 0.9512 GB Notification: Performance of Backend: time 5.21e-07/0.8011, allocations: 4 kB / 1.233 GB, free: 6.352 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0007274/0.8018, allocations: 283 kB / 1.233 GB, free: 6.047 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0009183/0.8027, allocations: 0.6745 MB / 1.234 GB, free: 5.312 MB / 0.9512 GB Notification: Performance of Templates: time 0.006356/0.8091, allocations: 2.045 MB / 1.236 GB, free: 3.277 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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