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.001524/0.001524, allocations: 104.4 kB / 16.35 MB, free: 5.875 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.001675/0.001675, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.443/1.443, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.511/2.511, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 72.8 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.373, allocations: 153 MB / 1.027 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002928/0.376, allocations: 1.489 MB / 1.028 GB, free: 0.5664 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.000869/0.3769, allocations: 462.8 kB / 1.029 GB, free: 112 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.835e-05/0.377, allocations: 4 kB / 1.029 GB, free: 108 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.3771, allocations: 7.875 kB / 1.029 GB, free: 100 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.569e-05/0.3772, allocations: 15.86 kB / 1.029 GB, free: 84 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002285/0.3774, allocations: 35.94 kB / 1.029 GB, free: 48 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000189/0.3776, allocations: 103.8 kB / 1.029 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.3778, allocations: 20.17 kB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.3779, allocations: 43.84 kB / 1.029 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.558e-05/0.378, allocations: 43.73 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.979e-05/0.378, allocations: 8 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.772e-05/0.3781, allocations: 8 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.395e-05/0.3781, allocations: 15.92 kB / 1.029 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.985e-05/0.3782, allocations: 35.86 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001544/0.3784, allocations: 83.75 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.836e-05/0.3784, allocations: 0 / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.315e-06/0.3784, allocations: 0 / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.294e-06/0.3784, allocations: 4 kB / 1.029 GB, free: 15.69 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.0007748/0.3792, allocations: 446.6 kB / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.3792, allocations: 8.031 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.951e-05/0.3793, allocations: 12.84 kB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002124/0.3795, allocations: 192.2 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.3795, allocations: 12.25 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.252e-05/0.3796, allocations: 8.312 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003232/0.3799, allocations: 121.7 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.3799, allocations: 7.984 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.3799, allocations: 0 / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.3799, allocations: 0 / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002946/0.3802, allocations: 91.91 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005648/0.3808, allocations: 336.7 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003094/0.3811, allocations: 110.4 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/0.3813, allocations: 68.94 kB / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.3814, allocations: 0 / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003149/0.3817, allocations: 123.3 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.513e-06/0.3817, allocations: 4 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0007345/0.3824, allocations: 275.1 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.3825, allocations: 85.11 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.3827, allocations: 129.8 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.3827, allocations: 33.7 kB / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.544e-05/0.3828, allocations: 92.03 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.3828, allocations: 19.75 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.435e-05/0.3829, allocations: 33.7 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001381/0.383, allocations: 322.8 kB / 1.031 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.3832, allocations: 63.94 kB / 1.031 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.3834, allocations: 71.95 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003323/0.3838, allocations: 181.8 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.3838, allocations: 0 / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004865/0.3843, allocations: 261 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001271/0.3844, allocations: 59.41 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.3844, allocations: 4 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.3844, allocations: 0 / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.3846, allocations: 15.98 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.3846, allocations: 7.938 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001463/0.3847, allocations: 23.88 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.3848, allocations: 4 kB / 1.032 GB, free: 12.23 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.0001529/0.3849, allocations: 159.4 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.991e-05/0.3849, allocations: 15.91 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.578e-05/0.385, allocations: 8.375 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.385, allocations: 8.188 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.385, allocations: 0 / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.385, allocations: 4 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001658/0.3852, allocations: 193.6 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3852, allocations: 4 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.087e-05/0.3853, allocations: 11.98 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.3853, allocations: 3.984 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.3853, allocations: 4 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.3853, allocations: 8 kB / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3853, allocations: 0 / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005009/0.3858, allocations: 246.5 kB / 1.033 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.052e-05/0.3859, allocations: 88.95 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.696e-05/0.3859, allocations: 4 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.3861, allocations: 23.97 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.3862, allocations: 31.97 kB / 1.033 GB, free: 11.33 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.3862, allocations: 7.984 kB / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.653e-05/0.3863, allocations: 101.5 kB / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3863, allocations: 0 / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002226/0.3865, allocations: 27.94 kB / 1.033 GB, free: 11.2 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 0.000134/0.3867, allocations: 99.25 kB / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005107/0.3872, allocations: 270.6 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3872, allocations: 0 / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002533/0.3875, allocations: 139.3 kB / 1.033 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.3877, allocations: 13.38 kB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006311/0.3883, allocations: 211.4 kB / 1.034 GB, free: 10.4 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004417/0.3888, allocations: 0.6885 MB / 1.034 GB, free: 9.684 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.238e-05/0.3888, allocations: 11.98 kB / 1.034 GB, free: 9.672 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.929e-05/0.3889, allocations: 19.42 kB / 1.034 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of SimCode: time 3.81e-07/0.3889, allocations: 7.875 kB / 1.034 GB, free: 9.648 MB / 0.8106 GB Notification: Performance of Templates: time 0.004894/0.3938, allocations: 1.859 MB / 1.036 GB, free: 7.809 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 cvode -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