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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.01072/0.01072, allocations: 102.2 kB / 15.73 MB, free: 6.488 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.002144/0.002144, allocations: 194.5 kB / 16.68 MB, free: 6.375 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.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.05/3.05, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.0016, allocations: 63.91 kB / 1.054 GB, free: 7.18 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3688, allocations: 157.4 MB / 1.208 GB, free: 9.684 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.003052/0.3719, allocations: 1.488 MB / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009795/0.3729, allocations: 458.8 kB / 1.21 GB, free: 7.73 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.913e-05/0.373, allocations: 0 / 1.21 GB, free: 7.73 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001129/0.3731, allocations: 7.938 kB / 1.21 GB, free: 7.723 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.863e-05/0.3732, allocations: 15.86 kB / 1.21 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.3735, allocations: 39.88 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001923/0.3737, allocations: 103.7 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.3738, allocations: 12.17 kB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001632/0.374, allocations: 43.91 kB / 1.21 GB, free: 7.512 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001159/0.3741, allocations: 47.81 kB / 1.21 GB, free: 7.465 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.3741, allocations: 8 kB / 1.21 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.917e-05/0.3742, allocations: 8 kB / 1.21 GB, free: 7.449 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.571e-05/0.3742, allocations: 15.92 kB / 1.21 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.619e-05/0.3743, allocations: 35.86 kB / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001663/0.3745, allocations: 87.69 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3745, allocations: 3.938 kB / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.235e-06/0.3745, allocations: 4 kB / 1.21 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.3745, allocations: 0 / 1.21 GB, free: 7.305 MB / 0.9669 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.0008117/0.3753, allocations: 450.5 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.3754, allocations: 8.031 kB / 1.21 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.936e-05/0.3755, allocations: 8.844 kB / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.3757, allocations: 192.2 kB / 1.211 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.3757, allocations: 4.375 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.634e-05/0.3757, allocations: 8.375 kB / 1.211 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003362/0.3761, allocations: 117.7 kB / 1.211 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.3761, allocations: 3.984 kB / 1.211 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.3762, allocations: 8 kB / 1.211 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.3762, allocations: 0 / 1.211 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002983/0.3765, allocations: 95.8 kB / 1.211 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006112/0.3771, allocations: 328.7 kB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003109/0.3774, allocations: 102.5 kB / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.3776, allocations: 72.94 kB / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.3776, allocations: 0 / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003495/0.378, allocations: 127.3 kB / 1.211 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.493e-06/0.378, allocations: 0 / 1.211 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0007312/0.3787, allocations: 279.3 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.55e-05/0.3788, allocations: 81.11 kB / 1.212 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.3789, allocations: 135.2 kB / 1.212 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.379, allocations: 25.7 kB / 1.212 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.326e-05/0.379, allocations: 100 kB / 1.212 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.495e-05/0.3791, allocations: 23.69 kB / 1.212 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.205e-05/0.3792, allocations: 29.7 kB / 1.212 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.3793, allocations: 322.8 kB / 1.212 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001807/0.3795, allocations: 67.94 kB / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.3797, allocations: 72.52 kB / 1.213 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000323/0.38, allocations: 185.9 kB / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.38, allocations: 0 / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004931/0.3805, allocations: 256.8 kB / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.594e-05/0.3806, allocations: 67.41 kB / 1.213 GB, free: 3.906 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3806, allocations: 4 kB / 1.213 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.3806, allocations: 0 / 1.213 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.3807, allocations: 11.98 kB / 1.213 GB, free: 3.891 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.3807, allocations: 3.984 kB / 1.213 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.3809, allocations: 23.98 kB / 1.213 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.3809, allocations: 4 kB / 1.213 GB, free: 3.859 MB / 0.9669 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.0001398/0.3811, allocations: 159.5 kB / 1.213 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.239e-05/0.3811, allocations: 11.91 kB / 1.213 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.069e-05/0.3811, allocations: 8.375 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3811, allocations: 0 / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.3811, allocations: 3.938 kB / 1.213 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.3811, allocations: 3.984 kB / 1.213 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.3813, allocations: 193.6 kB / 1.213 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3813, allocations: 0 / 1.213 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.04e-05/0.3814, allocations: 15.97 kB / 1.213 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3814, allocations: 3.938 kB / 1.213 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.3814, allocations: 8 kB / 1.213 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3814, allocations: 0 / 1.213 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3814, allocations: 0 / 1.213 GB, free: 3.391 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004645/0.3819, allocations: 246.6 kB / 1.214 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.223e-05/0.382, allocations: 88.95 kB / 1.214 GB, free: 3.02 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/0.382, allocations: 4 kB / 1.214 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.3822, allocations: 23.97 kB / 1.214 GB, free: 2.992 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.3823, allocations: 39.95 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.3823, allocations: 4 kB / 1.214 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.96e-05/0.3824, allocations: 97.8 kB / 1.214 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3824, allocations: 3.938 kB / 1.214 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002139/0.3826, allocations: 27.94 kB / 1.214 GB, free: 2.824 MB / 0.9669 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.000123/0.3827, allocations: 103.2 kB / 1.214 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004883/0.3832, allocations: 266.8 kB / 1.214 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3833, allocations: 0 / 1.214 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002513/0.3835, allocations: 143.3 kB / 1.214 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002122/0.3837, allocations: 16.97 kB / 1.214 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005359/0.3843, allocations: 227.2 kB / 1.215 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.3846, allocations: 0.6924 MB / 1.215 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.073e-05/0.3846, allocations: 7.984 kB / 1.215 GB, free: 1.281 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.287e-05/0.3847, allocations: 11.44 kB / 1.215 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of SimCode: time 3.1e-07/0.3847, allocations: 0 / 1.215 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of Templates: time 0.004884/0.3896, allocations: 1.866 MB / 1.217 GB, free: 15.42 MB / 0.9825 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 -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/jenkins/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