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.008866/0.008866, allocations: 100.8 kB / 15.73 MB, free: 6.043 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.001643/0.001643, allocations: 190 kB / 16.67 MB, free: 5.977 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.465/1.465, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.447/2.447, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 74.42 kB / 0.9508 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3148, allocations: 140.4 MB / 1.088 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002572/0.3174, allocations: 1.477 MB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007821/0.3182, allocations: 460.3 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.727e-05/0.3183, allocations: 0 / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.3184, allocations: 11.88 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.347e-05/0.3185, allocations: 19.84 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/0.3187, allocations: 31.95 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001626/0.3189, allocations: 107.7 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.319, allocations: 20.16 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.3191, allocations: 43.89 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.197e-05/0.3192, allocations: 43.77 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.986e-05/0.3193, allocations: 8 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.944e-05/0.3193, allocations: 8 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.227e-05/0.3193, allocations: 15.92 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.194e-05/0.3194, allocations: 39.86 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.3196, allocations: 87.69 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3196, allocations: 0 / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.562e-06/0.3196, allocations: 0 / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.3196, allocations: 0 / 1.09 GB, free: 15.14 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.0007165/0.3203, allocations: 442.7 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.3204, allocations: 8.031 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.723e-05/0.3204, allocations: 12.84 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.3206, allocations: 208.1 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.3206, allocations: 4.375 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.24e-05/0.3207, allocations: 4.375 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003229/0.321, allocations: 125.7 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.321, allocations: 4 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.321, allocations: 0 / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.321, allocations: 0 / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003073/0.3213, allocations: 91.92 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005499/0.3219, allocations: 332.7 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003237/0.3222, allocations: 106.5 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001934/0.3224, allocations: 72.94 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.3225, allocations: 0 / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003475/0.3228, allocations: 119.3 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.392e-06/0.3228, allocations: 4 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0007233/0.3236, allocations: 275.2 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.3236, allocations: 89.05 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.3237, allocations: 125.8 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.3238, allocations: 33.7 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.237e-05/0.3239, allocations: 95.97 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.478e-05/0.3239, allocations: 19.88 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.082e-05/0.324, allocations: 33.7 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.3241, allocations: 326.8 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.3243, allocations: 63.94 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.3245, allocations: 67.95 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003474/0.3248, allocations: 177.9 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3248, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005016/0.3254, allocations: 272.9 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.907e-05/0.3254, allocations: 59.41 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3254, allocations: 0 / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.3255, allocations: 0 / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.3256, allocations: 15.97 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.3256, allocations: 4 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001544/0.3258, allocations: 19.98 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.3258, allocations: 8 kB / 1.093 GB, free: 11.69 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.0001308/0.3259, allocations: 159.4 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/0.326, allocations: 11.91 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.938e-05/0.326, allocations: 12.31 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.326, allocations: 256 / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.326, allocations: 4 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.326, allocations: 7.984 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.3262, allocations: 185.6 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3262, allocations: 8 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.989e-05/0.3263, allocations: 19.95 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3263, allocations: 0 / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.3263, allocations: 4 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.3263, allocations: 4 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3263, allocations: 0 / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004968/0.3268, allocations: 246.6 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.945e-05/0.3269, allocations: 88.95 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.745e-05/0.3269, allocations: 7.938 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.3271, allocations: 19.97 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.3272, allocations: 35.95 kB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.3272, allocations: 4 kB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.137e-05/0.3273, allocations: 101.7 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3273, allocations: 0 / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002091/0.3275, allocations: 31.94 kB / 1.094 GB, free: 10.65 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.0001099/0.3276, allocations: 99.78 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005127/0.3282, allocations: 262.7 kB / 1.095 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.3282, allocations: 0 / 1.095 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.3284, allocations: 143.3 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.3287, allocations: 17.89 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005255/0.3292, allocations: 211.4 kB / 1.095 GB, free: 9.855 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.3295, allocations: 0.6885 MB / 1.096 GB, free: 9.141 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.444e-05/0.3295, allocations: 23.67 kB / 1.096 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.931e-05/0.3296, allocations: 15.44 kB / 1.096 GB, free: 9.102 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.3296, allocations: 0 / 1.096 GB, free: 9.102 MB / 0.8575 GB Notification: Performance of Templates: time 0.004323/0.3339, allocations: 1.856 MB / 1.097 GB, free: 7.262 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