Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001095/0.001095, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.00972/0.00972, allocations: 170 kB / 16.26 MB, free: 6.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.517/1.517, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.666/2.666, allocations: 437.8 MB / 0.7121 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003852/0.0003853, allocations: 8 kB / 0.8728 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6803/0.6807, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002068/0.6828, allocations: 1.207 MB / 1.024 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008859/0.6837, allocations: 467 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.804e-05/0.6838, allocations: 0 / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.6839, allocations: 3.938 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.606e-05/0.684, allocations: 11.88 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002329/0.6842, allocations: 31.97 kB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001492/0.6844, allocations: 95.73 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.6845, allocations: 8.188 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002666/0.6848, allocations: 43.84 kB / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.6849, allocations: 35.83 kB / 1.025 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.827e-05/0.685, allocations: 4 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.787e-05/0.685, allocations: 4 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.451e-05/0.685, allocations: 23.91 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.115e-05/0.6851, allocations: 57.56 kB / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.6853, allocations: 75.73 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.6853, allocations: 0 / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.364e-06/0.6853, allocations: 0 / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.8e-06/0.6853, allocations: 0 / 1.025 GB, free: 13.77 MB / 0.7794 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.0007823/0.6861, allocations: 448.6 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.6862, allocations: 8.031 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.582e-05/0.6862, allocations: 8.938 kB / 1.025 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.6864, allocations: 192.1 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.6865, allocations: 4.375 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.282e-05/0.6865, allocations: 12.31 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000353/0.6868, allocations: 125.7 kB / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.6869, allocations: 0 / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.6869, allocations: 8 kB / 1.026 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.6869, allocations: 0 / 1.026 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003369/0.6872, allocations: 103.9 kB / 1.026 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005954/0.6879, allocations: 340.6 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003588/0.6882, allocations: 126.5 kB / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/0.6884, allocations: 80.88 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.6885, allocations: 4.078 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003646/0.6888, allocations: 131.3 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.643e-06/0.6888, allocations: 0 / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0008415/0.6897, allocations: 299.1 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/0.6899, allocations: 93.09 kB / 1.027 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.69, allocations: 128.2 kB / 1.027 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.69, allocations: 29.7 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.6902, allocations: 96.05 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.689e-05/0.6902, allocations: 19.8 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.412e-05/0.6902, allocations: 13.72 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.6904, allocations: 326.8 kB / 1.027 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.6906, allocations: 75.95 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.6908, allocations: 67.95 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003845/0.6912, allocations: 205.8 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.6912, allocations: 0 / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005399/0.6917, allocations: 276.9 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.039e-05/0.6918, allocations: 63.41 kB / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.6918, allocations: 0 / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.6918, allocations: 0 / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.692, allocations: 23.91 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.692, allocations: 4 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.6922, allocations: 31.92 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.6922, allocations: 8 kB / 1.028 GB, free: 10.2 MB / 0.7794 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.0001382/0.6923, allocations: 155.5 kB / 1.028 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/0.6924, allocations: 11.91 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.232e-05/0.6924, allocations: 8.375 kB / 1.028 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.644e-06/0.6924, allocations: 0 / 1.028 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.6924, allocations: 8.234 kB / 1.028 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.6924, allocations: 0 / 1.028 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.6926, allocations: 193.6 kB / 1.029 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.6926, allocations: 3.984 kB / 1.029 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.918e-05/0.6927, allocations: 15.98 kB / 1.029 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.6927, allocations: 0 / 1.029 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.6927, allocations: 4 kB / 1.029 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.6928, allocations: 0 / 1.029 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.6928, allocations: 3.938 kB / 1.029 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005166/0.6933, allocations: 266.5 kB / 1.029 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.06e-05/0.6933, allocations: 89.02 kB / 1.029 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.377e-05/0.6934, allocations: 8 kB / 1.029 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.6935, allocations: 23.97 kB / 1.029 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.6937, allocations: 35.95 kB / 1.029 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.6937, allocations: 4 kB / 1.029 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.399e-05/0.6938, allocations: 99.27 kB / 1.029 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6938, allocations: 4 kB / 1.029 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000216/0.694, allocations: 27.94 kB / 1.029 GB, free: 9.141 MB / 0.7794 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.00014/0.6941, allocations: 107.2 kB / 1.029 GB, free: 9.027 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005543/0.6947, allocations: 282.6 kB / 1.029 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.6947, allocations: 0 / 1.029 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000317/0.695, allocations: 147.3 kB / 1.03 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.6953, allocations: 15.98 kB / 1.03 GB, free: 8.555 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005259/0.6958, allocations: 241.2 kB / 1.03 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.6961, allocations: 0.6887 MB / 1.031 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.615e-05/0.6962, allocations: 11.98 kB / 1.031 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.588e-05/0.6962, allocations: 11.44 kB / 1.031 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of SimCode: time 4.11e-07/0.6962, allocations: 0 / 1.031 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of Templates: time 0.004554/0.7008, allocations: 1.587 MB / 1.032 GB, free: 5.977 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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