Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.008528/0.008528, allocations: 96.73 kB / 15.73 MB, free: 6.039 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.001526/0.001526, allocations: 194.3 kB / 16.67 MB, free: 5.969 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.473/1.473, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.793/2.793, allocations: 469.8 MB / 0.7425 GB, free: 7.363 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 63.91 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3544, allocations: 159.1 MB / 1.221 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002767/0.3572, allocations: 1.495 MB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0008592/0.3581, allocations: 458.9 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.287e-05/0.3581, allocations: 0 / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.3582, allocations: 3.938 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.222e-05/0.3583, allocations: 19.86 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002263/0.3585, allocations: 43.88 kB / 1.223 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001642/0.3587, allocations: 91.77 kB / 1.223 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.3588, allocations: 12.17 kB / 1.223 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.3589, allocations: 51.83 kB / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.107e-05/0.359, allocations: 43.83 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.359, allocations: 8 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.758e-05/0.3591, allocations: 8 kB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.71e-05/0.3591, allocations: 15.92 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.367e-05/0.3592, allocations: 39.86 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.3593, allocations: 83.69 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3593, allocations: 0 / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3593, allocations: 0 / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.3593, allocations: 0 / 1.223 GB, free: 11.5 MB / 0.9825 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.0007369/0.3601, allocations: 454.5 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.3601, allocations: 8.031 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.693e-05/0.3602, allocations: 16.88 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/0.3603, allocations: 192.2 kB / 1.224 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.3604, allocations: 8.375 kB / 1.224 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/0.3604, allocations: 4.375 kB / 1.224 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003384/0.3607, allocations: 121.7 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.3607, allocations: 0 / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.3608, allocations: 7.938 kB / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.3608, allocations: 0 / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003118/0.3611, allocations: 95.86 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006771/0.3617, allocations: 328.8 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000327/0.3621, allocations: 90.45 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.3623, allocations: 72.94 kB / 1.224 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.3623, allocations: 3.984 kB / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003455/0.3626, allocations: 123.3 kB / 1.224 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.844e-06/0.3626, allocations: 0 / 1.224 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.000768/0.3634, allocations: 275.2 kB / 1.225 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.491e-05/0.3635, allocations: 89.09 kB / 1.225 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.3636, allocations: 128.4 kB / 1.225 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/0.3636, allocations: 33.7 kB / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.75e-05/0.3637, allocations: 88.09 kB / 1.225 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.444e-05/0.3638, allocations: 19.84 kB / 1.225 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.446e-05/0.3638, allocations: 33.7 kB / 1.225 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001543/0.364, allocations: 330.8 kB / 1.225 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.3642, allocations: 59.95 kB / 1.225 GB, free: 8.727 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.3643, allocations: 75.88 kB / 1.225 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.3647, allocations: 177.9 kB / 1.226 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3647, allocations: 0 / 1.226 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005077/0.3652, allocations: 269 kB / 1.226 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 6.843e-05/0.3652, allocations: 71.39 kB / 1.226 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3653, allocations: 0 / 1.226 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.3653, allocations: 0 / 1.226 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.3654, allocations: 11.98 kB / 1.226 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3654, allocations: 0 / 1.226 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.3656, allocations: 20.08 kB / 1.226 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.3656, allocations: 15.92 kB / 1.226 GB, free: 8.047 MB / 0.9825 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.0001708/0.3657, allocations: 151.5 kB / 1.226 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.608e-05/0.3658, allocations: 11.95 kB / 1.226 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.547e-05/0.3658, allocations: 12.36 kB / 1.226 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3658, allocations: 0 / 1.226 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.3658, allocations: 256 / 1.226 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3658, allocations: 4 kB / 1.226 GB, free: 7.848 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.366, allocations: 197.5 kB / 1.226 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.366, allocations: 3.938 kB / 1.226 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.635e-05/0.3661, allocations: 19.92 kB / 1.226 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3661, allocations: 4 kB / 1.226 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.3661, allocations: 4 kB / 1.226 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3661, allocations: 0 / 1.226 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3662, allocations: 4 kB / 1.226 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004978/0.3666, allocations: 250.6 kB / 1.227 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.291e-05/0.3667, allocations: 81.11 kB / 1.227 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.3667, allocations: 3.984 kB / 1.227 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.3669, allocations: 23.98 kB / 1.227 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/0.367, allocations: 31.95 kB / 1.227 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.367, allocations: 4 kB / 1.227 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.128e-05/0.3671, allocations: 103.2 kB / 1.227 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3671, allocations: 0 / 1.227 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002227/0.3673, allocations: 39.89 kB / 1.227 GB, free: 7 MB / 0.9825 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.0001629/0.3675, allocations: 107.2 kB / 1.227 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005363/0.368, allocations: 254.7 kB / 1.227 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.368, allocations: 0 / 1.227 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002488/0.3683, allocations: 127.4 kB / 1.227 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.3685, allocations: 21.36 kB / 1.227 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006291/0.3692, allocations: 223 kB / 1.228 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.3695, allocations: 0.6924 MB / 1.228 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.336e-05/0.3696, allocations: 11.98 kB / 1.228 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.019e-05/0.3696, allocations: 11.44 kB / 1.228 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.3696, allocations: 0 / 1.228 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of Templates: time 0.004922/0.3745, allocations: 1.895 MB / 1.23 GB, free: 3.594 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches