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.008873/0.008874, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001541/0.001541, allocations: 194.9 kB / 16.67 MB, free: 5.973 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.547/2.547, allocations: 437 MB / 0.7105 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002649/0.002649, allocations: 63.91 kB / 1.018 GB, free: 9.461 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.039/1.042, allocations: 151.6 MB / 1.167 GB, free: 4.016 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.003304/1.045, allocations: 1.479 MB / 1.168 GB, free: 2.523 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009993/1.046, allocations: 469.4 kB / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.603e-05/1.046, allocations: 3.938 kB / 1.168 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001263/1.046, allocations: 3.938 kB / 1.168 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.356e-05/1.046, allocations: 15.86 kB / 1.168 GB, free: 2.039 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002451/1.046, allocations: 31.95 kB / 1.169 GB, free: 2.008 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001731/1.047, allocations: 103.7 kB / 1.169 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/1.047, allocations: 16.19 kB / 1.169 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/1.047, allocations: 55.81 kB / 1.169 GB, free: 1.836 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.786e-05/1.047, allocations: 39.83 kB / 1.169 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/1.047, allocations: 8 kB / 1.169 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.08e-05/1.047, allocations: 8 kB / 1.169 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.564e-05/1.047, allocations: 12 kB / 1.169 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.292e-05/1.047, allocations: 47.77 kB / 1.169 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000156/1.047, allocations: 76.7 kB / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/1.047, allocations: 0 / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.693e-06/1.047, allocations: 0 / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.201e-06/1.047, allocations: 0 / 1.169 GB, free: 1.648 MB / 0.8887 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.0007714/1.048, allocations: 458.5 kB / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/1.048, allocations: 8.922 kB / 1.169 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.048e-05/1.048, allocations: 8.891 kB / 1.169 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/1.049, allocations: 194 kB / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/1.049, allocations: 8.312 kB / 1.17 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/1.049, allocations: 12.38 kB / 1.17 GB, free: 0.8789 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003148/1.049, allocations: 109.8 kB / 1.17 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/1.049, allocations: 0 / 1.17 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/1.049, allocations: 4 kB / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/1.049, allocations: 0 / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003127/1.049, allocations: 87.92 kB / 1.17 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005991/1.05, allocations: 340.6 kB / 1.17 GB, free: 300 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000326/1.05, allocations: 110.4 kB / 1.17 GB, free: 180 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/1.05, allocations: 76.94 kB / 1.17 GB, free: 100 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/1.05, allocations: 4 kB / 1.17 GB, free: 96 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003886/1.051, allocations: 119.3 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=6): time 1.362e-06/1.051, allocations: 0 / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6): time 0.0007916/1.052, allocations: 283.1 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.698e-05/1.052, allocations: 85.11 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/1.052, allocations: 132.4 kB / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/1.052, allocations: 25.7 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.8e-05/1.052, allocations: 100 kB / 1.171 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/1.052, allocations: 19.95 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.391e-05/1.052, allocations: 29.72 kB / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001369/1.052, allocations: 326.8 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/1.052, allocations: 63.95 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/1.053, allocations: 67.95 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003299/1.053, allocations: 185.8 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.053, allocations: 0 / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005017/1.053, allocations: 257 kB / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.453e-05/1.054, allocations: 67.39 kB / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/1.054, allocations: 4 kB / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/1.054, allocations: 0 / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/1.054, allocations: 15.92 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/1.054, allocations: 0 / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/1.054, allocations: 31.89 kB / 1.172 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/1.054, allocations: 8 kB / 1.172 GB, free: 14.18 MB / 0.9044 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.000182/1.054, allocations: 155.5 kB / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.069e-05/1.054, allocations: 11.95 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.843e-05/1.054, allocations: 8.375 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/1.054, allocations: 0 / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/1.054, allocations: 0 / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/1.054, allocations: 0 / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/1.054, allocations: 197.5 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/1.054, allocations: 0 / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.253e-05/1.054, allocations: 16.08 kB / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/1.054, allocations: 7.938 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/1.054, allocations: 3.938 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/1.054, allocations: 0 / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/1.054, allocations: 256 / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004738/1.055, allocations: 254.6 kB / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.876e-05/1.055, allocations: 93.05 kB / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/1.055, allocations: 0 / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/1.055, allocations: 23.97 kB / 1.173 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/1.055, allocations: 31.97 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/1.055, allocations: 4 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.253e-05/1.055, allocations: 99.27 kB / 1.173 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/1.055, allocations: 0 / 1.173 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002106/1.056, allocations: 27.94 kB / 1.173 GB, free: 13.16 MB / 0.9044 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.0001245/1.056, allocations: 108.2 kB / 1.173 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005186/1.056, allocations: 270.6 kB / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/1.056, allocations: 0 / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002573/1.057, allocations: 131.4 kB / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/1.057, allocations: 15.98 kB / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006028/1.057, allocations: 227 kB / 1.174 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/1.058, allocations: 0.6885 MB / 1.174 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.51e-05/1.058, allocations: 7.984 kB / 1.174 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.806e-05/1.058, allocations: 15.38 kB / 1.174 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of SimCode: time 3.1e-07/1.058, allocations: 4 kB / 1.174 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of Templates: time 0.004903/1.063, allocations: 1.86 MB / 1.176 GB, free: 9.77 MB / 0.9044 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