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.01032/0.01032, allocations: 105 kB / 15.74 MB, free: 5.992 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.00223/0.00223, allocations: 198.2 kB / 16.68 MB, free: 5.918 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.518/1.518, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.697/2.697, allocations: 461.9 MB / 0.7348 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 64.12 kB / 1.054 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9975/0.9988, allocations: 157.4 MB / 1.208 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.004068/1.003, allocations: 1.489 MB / 1.209 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001132/1.004, allocations: 462.9 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.512e-05/1.004, allocations: 4 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001324/1.004, allocations: 3.938 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.967e-05/1.004, allocations: 19.84 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/1.005, allocations: 31.89 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002296/1.005, allocations: 103.8 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/1.005, allocations: 20.17 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/1.005, allocations: 47.83 kB / 1.21 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.749e-05/1.005, allocations: 39.83 kB / 1.21 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.795e-05/1.006, allocations: 8 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.718e-05/1.006, allocations: 8 kB / 1.21 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.992e-05/1.006, allocations: 11.98 kB / 1.21 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.049e-05/1.006, allocations: 39.8 kB / 1.21 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002069/1.006, allocations: 79.75 kB / 1.21 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/1.006, allocations: 0 / 1.21 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.104e-06/1.006, allocations: 0 / 1.21 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.995e-06/1.006, allocations: 4 kB / 1.21 GB, free: 11.32 MB / 0.9356 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.001097/1.007, allocations: 452.3 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/1.007, allocations: 8.031 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.418e-05/1.007, allocations: 8.938 kB / 1.21 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002725/1.007, allocations: 206.9 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/1.008, allocations: 4.375 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.967e-05/1.008, allocations: 4.375 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004433/1.008, allocations: 125.7 kB / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/1.008, allocations: 0 / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/1.008, allocations: 0 / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/1.008, allocations: 0 / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/1.009, allocations: 87.92 kB / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007976/1.009, allocations: 336.6 kB / 1.211 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000517/1.01, allocations: 106.5 kB / 1.211 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002583/1.01, allocations: 72.88 kB / 1.211 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.009e-05/1.01, allocations: 0 / 1.211 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005056/1.011, allocations: 135.2 kB / 1.211 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 2.225e-06/1.011, allocations: 0 / 1.211 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.001024/1.012, allocations: 271.2 kB / 1.212 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.821e-05/1.012, allocations: 85.11 kB / 1.212 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/1.012, allocations: 129.8 kB / 1.212 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.419e-05/1.012, allocations: 33.7 kB / 1.212 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.044e-05/1.012, allocations: 92.03 kB / 1.212 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.094e-05/1.012, allocations: 19.88 kB / 1.212 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/1.012, allocations: 33.7 kB / 1.212 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001739/1.012, allocations: 322.8 kB / 1.212 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/1.013, allocations: 63.94 kB / 1.212 GB, free: 8.543 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002736/1.013, allocations: 71.95 kB / 1.213 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004939/1.014, allocations: 181.8 kB / 1.213 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/1.014, allocations: 0 / 1.213 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0008024/1.014, allocations: 268.8 kB / 1.213 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.391e-05/1.014, allocations: 59.41 kB / 1.213 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/1.014, allocations: 4 kB / 1.213 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/1.015, allocations: 0 / 1.213 GB, free: 7.918 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/1.015, allocations: 15.98 kB / 1.213 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/1.015, allocations: 4 kB / 1.213 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002145/1.015, allocations: 23.91 kB / 1.213 GB, free: 7.875 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.856e-05/1.015, allocations: 4.344 kB / 1.213 GB, free: 7.871 MB / 0.9356 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.0001736/1.015, allocations: 163.4 kB / 1.213 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.853e-05/1.015, allocations: 11.91 kB / 1.213 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.958e-05/1.015, allocations: 8.375 kB / 1.213 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/1.015, allocations: 8 kB / 1.213 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/1.015, allocations: 0 / 1.213 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/1.015, allocations: 0 / 1.213 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002381/1.016, allocations: 193.5 kB / 1.213 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/1.016, allocations: 0 / 1.213 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/1.016, allocations: 11.98 kB / 1.213 GB, free: 7.414 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/1.016, allocations: 3.984 kB / 1.213 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/1.016, allocations: 4 kB / 1.213 GB, free: 7.406 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/1.016, allocations: 8 kB / 1.213 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/1.016, allocations: 3.938 kB / 1.213 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007986/1.017, allocations: 242.6 kB / 1.214 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.939e-05/1.017, allocations: 88.95 kB / 1.214 GB, free: 7.027 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/1.017, allocations: 4 kB / 1.214 GB, free: 7.023 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002129/1.017, allocations: 23.97 kB / 1.214 GB, free: 7 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/1.017, allocations: 31.97 kB / 1.214 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/1.017, allocations: 7.984 kB / 1.214 GB, free: 6.961 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.862e-05/1.017, allocations: 101.9 kB / 1.214 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.9e-07/1.017, allocations: 0 / 1.214 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004073/1.018, allocations: 27.94 kB / 1.214 GB, free: 6.836 MB / 0.9356 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.0001439/1.018, allocations: 99.25 kB / 1.214 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007449/1.019, allocations: 270.6 kB / 1.214 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/1.019, allocations: 0 / 1.214 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003641/1.019, allocations: 139.3 kB / 1.214 GB, free: 6.293 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/1.019, allocations: 12 kB / 1.214 GB, free: 6.281 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007393/1.02, allocations: 231.1 kB / 1.215 GB, free: 6.023 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/1.02, allocations: 0.6885 MB / 1.215 GB, free: 5.309 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.591e-05/1.02, allocations: 8 kB / 1.215 GB, free: 5.301 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.884e-05/1.021, allocations: 19.42 kB / 1.215 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of SimCode: time 2.7e-07/1.021, allocations: 0 / 1.215 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of Templates: time 0.006576/1.027, allocations: 1.929 MB / 1.217 GB, free: 3.367 MB / 0.9356 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