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.007386/0.007386, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001281/0.001281, allocations: 190.4 kB / 16.67 MB, free: 5.98 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.176 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.613/2.613, allocations: 390.2 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 62.84 kB / 0.9508 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3311, allocations: 140.4 MB / 1.088 GB, free: 1.539 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.003009/0.3341, allocations: 1.48 MB / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009513/0.3351, allocations: 460.3 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.156e-05/0.3352, allocations: 0 / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.3353, allocations: 7.875 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.763e-05/0.3354, allocations: 15.88 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.3356, allocations: 35.94 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.3358, allocations: 107.7 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.336, allocations: 12.17 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001695/0.3361, allocations: 55.88 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.3363, allocations: 39.83 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.125e-05/0.3363, allocations: 8 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.037e-05/0.3363, allocations: 11.94 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.751e-05/0.3364, allocations: 15.94 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.693e-05/0.3365, allocations: 39.84 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.3366, allocations: 83.64 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3366, allocations: 0 / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.315e-06/0.3367, allocations: 0 / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.3367, allocations: 0 / 1.09 GB, free: 15.17 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.000809/0.3375, allocations: 450.7 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.3375, allocations: 8.031 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.885e-05/0.3376, allocations: 12.84 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/0.3379, allocations: 188.2 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.3379, allocations: 4.375 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/0.3379, allocations: 12.31 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003391/0.3383, allocations: 121.7 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.537e-06/0.3383, allocations: 4 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.3383, allocations: 7.984 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.3383, allocations: 0 / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000328/0.3386, allocations: 87.92 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006407/0.3393, allocations: 328.7 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003798/0.3397, allocations: 110.5 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000193/0.3399, allocations: 76.88 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.69e-05/0.3399, allocations: 0 / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003766/0.3403, allocations: 123.3 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.703e-06/0.3403, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0007551/0.3411, allocations: 275.2 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.019e-05/0.3412, allocations: 89.05 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.3413, allocations: 124.9 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.3413, allocations: 37.7 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.534e-05/0.3414, allocations: 99.98 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.3414, allocations: 15.8 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.929e-05/0.3415, allocations: 29.72 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.3416, allocations: 322.8 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002466/0.3419, allocations: 63.95 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.3421, allocations: 63.95 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003628/0.3424, allocations: 194 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3424, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005148/0.343, allocations: 260.8 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.848e-05/0.343, allocations: 67.39 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.343, allocations: 0 / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.3431, allocations: 8 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.3432, allocations: 11.98 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.3432, allocations: 0 / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.3434, allocations: 19.97 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.3434, allocations: 4 kB / 1.093 GB, free: 11.72 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.0001558/0.3436, allocations: 163.4 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.259e-05/0.3436, allocations: 7.906 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.068e-05/0.3436, allocations: 16.38 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.3436, allocations: 0 / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3437, allocations: 4.188 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.3437, allocations: 0 / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001794/0.3438, allocations: 197.5 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3439, allocations: 0 / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.47e-05/0.3439, allocations: 11.98 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.344, allocations: 0 / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/0.344, allocations: 8 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.344, allocations: 0 / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.344, allocations: 3.984 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005342/0.3445, allocations: 246.6 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.157e-05/0.3446, allocations: 88.94 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.3446, allocations: 4 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.3448, allocations: 23.97 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.3449, allocations: 39.91 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.3449, allocations: 4 kB / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.952e-05/0.345, allocations: 99.27 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.345, allocations: 0 / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002154/0.3452, allocations: 27.94 kB / 1.094 GB, free: 10.69 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.0001311/0.3454, allocations: 103.8 kB / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005269/0.3459, allocations: 262.7 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3459, allocations: 0 / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002474/0.3462, allocations: 147.2 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002155/0.3464, allocations: 15.98 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000535/0.347, allocations: 211.4 kB / 1.095 GB, free: 9.887 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.3473, allocations: 0.6885 MB / 1.096 GB, free: 9.172 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.187e-05/0.3474, allocations: 11.73 kB / 1.096 GB, free: 9.16 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.892e-05/0.3474, allocations: 15.44 kB / 1.096 GB, free: 9.145 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/0.3474, allocations: 0 / 1.096 GB, free: 9.145 MB / 0.8575 GB Notification: Performance of Templates: time 0.004614/0.352, allocations: 1.86 MB / 1.097 GB, free: 7.301 MB / 0.8575 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