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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009271/0.0009269, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001063/0.001062, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.525/2.525, allocations: 390.9 MB / 0.666 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.0003558, allocations: 8 kB / 0.8153 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.988/0.9884, allocations: 142.4 MB / 0.9544 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001832/0.9903, allocations: 1.184 MB / 0.9556 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007918/0.9911, allocations: 437.5 kB / 0.956 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.85e-05/0.9911, allocations: 1.156 kB / 0.956 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.9913, allocations: 7.922 kB / 0.956 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.59e-05/0.9913, allocations: 10 kB / 0.956 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002304/0.9916, allocations: 29.73 kB / 0.956 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.9917, allocations: 79.17 kB / 0.9561 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.9918, allocations: 22.88 kB / 0.9561 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.992, allocations: 33.19 kB / 0.9562 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.842e-05/0.9921, allocations: 43.06 kB / 0.9562 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.739e-05/0.9921, allocations: 3.594 kB / 0.9562 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.987e-05/0.9921, allocations: 4.719 kB / 0.9562 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.377e-05/0.9922, allocations: 10.45 kB / 0.9562 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.449e-05/0.9923, allocations: 38.77 kB / 0.9563 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001093/0.9924, allocations: 49.56 kB / 0.9563 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.9924, allocations: 4 kB / 0.9563 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.635e-06/0.9924, allocations: 0 / 0.9563 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.137e-06/0.9924, allocations: 0 / 0.9563 GB, free: 6.254 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.0006948/0.9931, allocations: 447.3 kB / 0.9567 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.9932, allocations: 9 kB / 0.9568 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.837e-05/0.9932, allocations: 13.27 kB / 0.9568 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.9934, allocations: 195.9 kB / 0.957 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.9934, allocations: 6.938 kB / 0.957 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.9935, allocations: 5.938 kB / 0.957 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003309/0.9938, allocations: 117.8 kB / 0.9571 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.9938, allocations: 0 / 0.9571 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.9938, allocations: 2.094 kB / 0.9571 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.9939, allocations: 5.109 kB / 0.9571 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002985/0.9942, allocations: 108.2 kB / 0.9572 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005044/0.9947, allocations: 339.8 kB / 0.9575 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.995, allocations: 126 kB / 0.9576 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.9952, allocations: 77.91 kB / 0.9577 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.9952, allocations: 0 / 0.9577 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003138/0.9955, allocations: 138.6 kB / 0.9578 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.353e-06/0.9955, allocations: 1.562 kB / 0.9578 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.000705/0.9962, allocations: 304.9 kB / 0.9581 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.9963, allocations: 85.23 kB / 0.9582 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.985e-05/0.9964, allocations: 130.3 kB / 0.9583 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.9964, allocations: 32.45 kB / 0.9584 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.349e-05/0.9965, allocations: 96.25 kB / 0.9585 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.159e-05/0.9965, allocations: 15.94 kB / 0.9585 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.078e-05/0.9965, allocations: 1.375 kB / 0.9585 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.917e-05/0.9966, allocations: 321.6 kB / 0.9588 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.9968, allocations: 71.95 kB / 0.9589 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.997, allocations: 73.33 kB / 0.9589 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001806/0.9972, allocations: 109.8 kB / 0.959 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.9972, allocations: 0 / 0.959 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005185/0.9977, allocations: 275.6 kB / 0.9593 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.895e-05/0.9978, allocations: 67.89 kB / 0.9594 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.9978, allocations: 5.266 kB / 0.9594 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.9978, allocations: 0 / 0.9594 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.9979, allocations: 25.92 kB / 0.9594 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.998, allocations: 0 / 0.9594 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001509/0.9981, allocations: 35.06 kB / 0.9594 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.9981, allocations: 4.719 kB / 0.9594 GB, free: 3.66 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 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001235/0.9983, allocations: 158 kB / 0.9596 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.293e-05/0.9983, allocations: 12.94 kB / 0.9596 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.978e-05/0.9983, allocations: 9.562 kB / 0.9596 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.9983, allocations: 5.016 kB / 0.9596 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.9984, allocations: 1.031 kB / 0.9596 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.9984, allocations: 0 / 0.9596 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001371/0.9985, allocations: 189 kB / 0.9598 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.9985, allocations: 4 kB / 0.9598 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.498e-05/0.9986, allocations: 16.05 kB / 0.9598 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.9986, allocations: 9.125 kB / 0.9598 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.9986, allocations: 6.109 kB / 0.9598 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.9986, allocations: 0 / 0.9598 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.9987, allocations: 5.141 kB / 0.9598 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005041/0.9992, allocations: 262.6 kB / 0.9601 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.412e-05/0.9992, allocations: 82.95 kB / 0.9601 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.9992, allocations: 7.062 kB / 0.9602 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.9994, allocations: 26.75 kB / 0.9602 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.9995, allocations: 42.78 kB / 0.9602 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.9996, allocations: 3.219 kB / 0.9602 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.924e-05/0.9996, allocations: 98.23 kB / 0.9603 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9996, allocations: 1.125 kB / 0.9603 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002092/0.9998, allocations: 26 kB / 0.9603 GB, free: 2.844 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001151/1, allocations: 106.4 kB / 0.9604 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000471/1, allocations: 280.6 kB / 0.9607 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/1, allocations: 5.312 kB / 0.9607 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002418/1.001, allocations: 143.8 kB / 0.9609 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002209/1.001, allocations: 19.92 kB / 0.9609 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000517/1.001, allocations: 234.1 kB / 0.9611 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001411/1.002, allocations: 0.6936 MB / 0.9618 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.26e-05/1.002, allocations: 4.844 kB / 0.9618 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.575e-05/1.002, allocations: 9.75 kB / 0.9618 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/1.002, allocations: 1.188 kB / 0.9618 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of Templates: time 0.004388/1.006, allocations: 1.542 MB / 0.9633 GB, free: 0.7461 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