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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001761/0.001761, allocations: 112.6 kB / 16.37 MB, free: 6 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.001975/0.001975, allocations: 196 kB / 17.31 MB, free: 5.613 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.461/2.461, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 61.16 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3281, allocations: 153 MB / 1.027 GB, free: 2.09 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002895/0.331, allocations: 1.482 MB / 1.028 GB, free: 0.6016 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007943/0.3319, allocations: 462.8 kB / 1.029 GB, free: 148 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.276e-05/0.3319, allocations: 0 / 1.029 GB, free: 148 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 9.424e-05/0.332, allocations: 11.86 kB / 1.029 GB, free: 136 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.153e-05/0.3321, allocations: 15.86 kB / 1.029 GB, free: 120 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002074/0.3323, allocations: 35.95 kB / 1.029 GB, free: 84 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001666/0.3325, allocations: 103.8 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.66e-05/0.3326, allocations: 8.125 kB / 1.029 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.3327, allocations: 51.83 kB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.329e-05/0.3328, allocations: 43.83 kB / 1.029 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.3329, allocations: 12 kB / 1.029 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.748e-05/0.3329, allocations: 8 kB / 1.029 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.449e-05/0.3329, allocations: 15.92 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.47e-05/0.333, allocations: 43.78 kB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.3332, allocations: 79.77 kB / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3332, allocations: 0 / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3332, allocations: 0 / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.565e-06/0.3332, allocations: 0 / 1.029 GB, free: 15.72 MB / 0.8106 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.0006846/0.3339, allocations: 450.6 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.3339, allocations: 12.03 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.705e-05/0.334, allocations: 8.844 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.3342, allocations: 184.2 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.3342, allocations: 4.375 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.3342, allocations: 12.38 kB / 1.03 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.3345, allocations: 121.7 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.3345, allocations: 4 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.3346, allocations: 11.94 kB / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.3346, allocations: 4 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000292/0.3349, allocations: 83.92 kB / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000554/0.3354, allocations: 328.7 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.3358, allocations: 110.5 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.3359, allocations: 72.94 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.336, allocations: 3.984 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003403/0.3363, allocations: 119.3 kB / 1.03 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.533e-06/0.3363, allocations: 4 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006801/0.337, allocations: 271.2 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.3371, allocations: 93.03 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.3372, allocations: 125.8 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.3372, allocations: 29.7 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.891e-05/0.3373, allocations: 96.05 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.3373, allocations: 23.75 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.998e-05/0.3374, allocations: 29.7 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.3375, allocations: 322.8 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.3377, allocations: 67.95 kB / 1.031 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.3379, allocations: 64.02 kB / 1.032 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003705/0.3382, allocations: 193.8 kB / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3383, allocations: 0 / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000482/0.3387, allocations: 257 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.933e-05/0.3388, allocations: 70.52 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.3388, allocations: 176 / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.3388, allocations: 3.938 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.339, allocations: 15.98 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.475e-06/0.339, allocations: 7.984 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.3391, allocations: 19.89 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.3392, allocations: 11.98 kB / 1.032 GB, free: 12.26 MB / 0.8106 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.00013/0.3393, allocations: 163.4 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.071e-05/0.3393, allocations: 7.906 kB / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.862e-05/0.3394, allocations: 16.36 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.3394, allocations: 0 / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3394, allocations: 4 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3394, allocations: 0 / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001919/0.3396, allocations: 193.5 kB / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3396, allocations: 0 / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.399e-05/0.3397, allocations: 12.23 kB / 1.032 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3397, allocations: 0 / 1.032 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.3397, allocations: 8 kB / 1.032 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3397, allocations: 0 / 1.032 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3397, allocations: 0 / 1.032 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004465/0.3402, allocations: 250.6 kB / 1.033 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.339e-05/0.3402, allocations: 84.95 kB / 1.033 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.891e-05/0.3403, allocations: 15.92 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00013/0.3404, allocations: 15.98 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.3405, allocations: 35.95 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.3405, allocations: 8 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.872e-05/0.3406, allocations: 102.6 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3406, allocations: 0 / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002066/0.3408, allocations: 27.94 kB / 1.033 GB, free: 11.23 MB / 0.8106 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 9.7e-05/0.3409, allocations: 103.2 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004621/0.3414, allocations: 262.7 kB / 1.033 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3414, allocations: 4 kB / 1.033 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002553/0.3417, allocations: 139.3 kB / 1.034 GB, free: 10.69 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002123/0.3419, allocations: 19.92 kB / 1.034 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005453/0.3424, allocations: 211.2 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.3427, allocations: 0.6885 MB / 1.034 GB, free: 9.715 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.982e-05/0.3428, allocations: 11.98 kB / 1.034 GB, free: 9.703 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.3428, allocations: 11.44 kB / 1.034 GB, free: 9.695 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.3429, allocations: 0 / 1.034 GB, free: 9.695 MB / 0.8106 GB Notification: Performance of Templates: time 0.004459/0.3473, allocations: 1.864 MB / 1.036 GB, free: 7.844 MB / 0.8106 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 -s gbode -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