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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001057/0.001057, allocations: 117 kB / 16.37 MB, free: 6.012 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.001065/0.001065, allocations: 192 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.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.443/2.443, allocations: 437.1 MB / 0.7112 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 63.52 kB / 0.8707 GB, free: 1.508 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2847, allocations: 151.6 MB / 1.019 GB, free: 9.914 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002723/0.2874, allocations: 1.478 MB / 1.02 GB, free: 8.422 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.000723/0.2882, allocations: 476.2 kB / 1.021 GB, free: 7.953 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.557e-05/0.2882, allocations: 4 kB / 1.021 GB, free: 7.949 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 8.658e-05/0.2883, allocations: 3.938 kB / 1.021 GB, free: 7.945 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.134e-05/0.2884, allocations: 11.86 kB / 1.021 GB, free: 7.934 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001876/0.2886, allocations: 43.89 kB / 1.021 GB, free: 7.891 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001733/0.2887, allocations: 103.8 kB / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.995e-05/0.2888, allocations: 12.17 kB / 1.021 GB, free: 7.777 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.289, allocations: 39.91 kB / 1.021 GB, free: 7.738 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.994e-05/0.2891, allocations: 47.83 kB / 1.021 GB, free: 7.691 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.404e-05/0.2891, allocations: 8 kB / 1.021 GB, free: 7.684 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.608e-05/0.2891, allocations: 8 kB / 1.021 GB, free: 7.676 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 4.888e-05/0.2892, allocations: 19.91 kB / 1.021 GB, free: 7.656 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 6.797e-05/0.2893, allocations: 35.86 kB / 1.021 GB, free: 7.621 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.2894, allocations: 87.69 kB / 1.021 GB, free: 7.535 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2894, allocations: 0 / 1.021 GB, free: 7.535 MB / 0.795 GB Notification: Performance of FrontEnd: time 7.32e-07/0.2894, allocations: 3.938 kB / 1.021 GB, free: 7.531 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.2894, allocations: 0 / 1.021 GB, free: 7.531 MB / 0.795 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.0006438/0.2901, allocations: 450.6 kB / 1.022 GB, free: 7.031 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.2901, allocations: 8.922 kB / 1.022 GB, free: 7.023 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.469e-05/0.2901, allocations: 12.84 kB / 1.022 GB, free: 7.012 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.2903, allocations: 188.2 kB / 1.022 GB, free: 6.789 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.2904, allocations: 8.375 kB / 1.022 GB, free: 6.781 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.2904, allocations: 12.36 kB / 1.022 GB, free: 6.77 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002936/0.2907, allocations: 113.7 kB / 1.022 GB, free: 6.652 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.2907, allocations: 4 kB / 1.022 GB, free: 6.648 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.2907, allocations: 8 kB / 1.022 GB, free: 6.641 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.2907, allocations: 0 / 1.022 GB, free: 6.641 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002765/0.291, allocations: 91.86 kB / 1.022 GB, free: 6.551 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005385/0.2916, allocations: 328.7 kB / 1.022 GB, free: 6.18 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002988/0.2919, allocations: 110.5 kB / 1.022 GB, free: 6.062 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.2921, allocations: 68.94 kB / 1.022 GB, free: 5.992 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.608e-05/0.2921, allocations: 0 / 1.022 GB, free: 5.992 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003074/0.2924, allocations: 127.2 kB / 1.023 GB, free: 5.855 MB / 0.795 GB Notification: Performance of pre-optimization done (n=6): time 1.673e-06/0.2924, allocations: 8 kB / 1.023 GB, free: 5.848 MB / 0.795 GB Notification: Performance of matching and sorting (n=6): time 0.0006892/0.2931, allocations: 271.2 kB / 1.023 GB, free: 5.57 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.941e-05/0.2932, allocations: 85.11 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.2933, allocations: 129.8 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.2933, allocations: 29.7 kB / 1.023 GB, free: 5.297 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.379e-05/0.2934, allocations: 100 kB / 1.023 GB, free: 5.195 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.2934, allocations: 15.84 kB / 1.023 GB, free: 5.18 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.353e-05/0.2935, allocations: 33.64 kB / 1.023 GB, free: 5.141 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.2937, allocations: 322.8 kB / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.2938, allocations: 67.94 kB / 1.024 GB, free: 4.75 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.294, allocations: 63.95 kB / 1.024 GB, free: 4.688 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003244/0.2943, allocations: 185.9 kB / 1.024 GB, free: 4.484 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2944, allocations: 0 / 1.024 GB, free: 4.484 MB / 0.795 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004845/0.2948, allocations: 260.8 kB / 1.024 GB, free: 4.211 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.548e-05/0.2949, allocations: 67.34 kB / 1.024 GB, free: 4.133 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2949, allocations: 0 / 1.024 GB, free: 4.133 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.2949, allocations: 0 / 1.024 GB, free: 4.133 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.2951, allocations: 15.98 kB / 1.024 GB, free: 4.117 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.2951, allocations: 4 kB / 1.024 GB, free: 4.113 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.2952, allocations: 23.88 kB / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.307e-05/0.2953, allocations: 8 kB / 1.024 GB, free: 4.082 MB / 0.795 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.0001148/0.2954, allocations: 155.5 kB / 1.024 GB, free: 3.914 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.829e-05/0.2954, allocations: 11.91 kB / 1.024 GB, free: 3.902 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.767e-05/0.2954, allocations: 8.469 kB / 1.024 GB, free: 3.895 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2955, allocations: 7.938 kB / 1.024 GB, free: 3.887 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.2955, allocations: 4 kB / 1.024 GB, free: 3.883 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.2955, allocations: 3.938 kB / 1.024 GB, free: 3.879 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.2956, allocations: 189.5 kB / 1.025 GB, free: 3.645 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2957, allocations: 4.25 kB / 1.025 GB, free: 3.641 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.919e-05/0.2957, allocations: 11.98 kB / 1.025 GB, free: 3.629 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2957, allocations: 4 kB / 1.025 GB, free: 3.625 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.2958, allocations: 3.984 kB / 1.025 GB, free: 3.621 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2958, allocations: 4 kB / 1.025 GB, free: 3.617 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2958, allocations: 0 / 1.025 GB, free: 3.617 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.2962, allocations: 246.6 kB / 1.025 GB, free: 3.352 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.934e-05/0.2963, allocations: 85.05 kB / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.028e-05/0.2963, allocations: 8 kB / 1.025 GB, free: 3.242 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.2965, allocations: 19.97 kB / 1.025 GB, free: 3.223 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.2966, allocations: 28.05 kB / 1.025 GB, free: 3.195 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.2966, allocations: 19.97 kB / 1.025 GB, free: 3.176 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.861e-05/0.2967, allocations: 97.66 kB / 1.025 GB, free: 3.082 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.944e-06/0.2967, allocations: 0 / 1.025 GB, free: 3.082 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002244/0.2969, allocations: 39.78 kB / 1.025 GB, free: 3.043 MB / 0.795 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.0001341/0.2971, allocations: 95.25 kB / 1.025 GB, free: 2.941 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005191/0.2976, allocations: 270.7 kB / 1.025 GB, free: 2.652 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2976, allocations: 0 / 1.025 GB, free: 2.652 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002377/0.2979, allocations: 139.3 kB / 1.026 GB, free: 2.504 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002474/0.2981, allocations: 12 kB / 1.026 GB, free: 2.492 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005749/0.2987, allocations: 211.9 kB / 1.026 GB, free: 2.254 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.2991, allocations: 0.6924 MB / 1.026 GB, free: 1.535 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001378/0.2992, allocations: 15.92 kB / 1.026 GB, free: 1.52 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.2993, allocations: 15.42 kB / 1.026 GB, free: 1.504 MB / 0.795 GB Notification: Performance of SimCode: time 2.51e-07/0.2993, allocations: 0 / 1.026 GB, free: 1.504 MB / 0.795 GB Notification: Performance of Templates: time 0.004951/0.3043, allocations: 1.857 MB / 1.028 GB, free: 15.66 MB / 0.8106 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 -s cvode -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/jenkins1/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