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.001506/0.001506, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001461/0.001461, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.469/1.469, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.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.544/2.544, allocations: 437.1 MB / 0.7111 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 72.58 kB / 0.8699 GB, free: 2.215 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3449, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.003118/0.348, allocations: 1.484 MB / 1.019 GB, free: 9.148 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0008891/0.3489, allocations: 472.3 kB / 1.02 GB, free: 8.684 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.676e-05/0.349, allocations: 0 / 1.02 GB, free: 8.684 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001058/0.3492, allocations: 7.922 kB / 1.02 GB, free: 8.676 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.282e-05/0.3492, allocations: 11.88 kB / 1.02 GB, free: 8.664 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002204/0.3495, allocations: 35.88 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001798/0.3496, allocations: 103.8 kB / 1.02 GB, free: 8.527 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.3498, allocations: 16.17 kB / 1.02 GB, free: 8.512 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.3499, allocations: 47.83 kB / 1.02 GB, free: 8.465 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.3501, allocations: 39.83 kB / 1.02 GB, free: 8.426 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.18e-05/0.3501, allocations: 8 kB / 1.02 GB, free: 8.418 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 2.169e-05/0.3501, allocations: 8 kB / 1.02 GB, free: 8.41 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.727e-05/0.3502, allocations: 23.92 kB / 1.02 GB, free: 8.387 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.298e-05/0.3503, allocations: 35.86 kB / 1.02 GB, free: 8.352 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001532/0.3504, allocations: 79.75 kB / 1.02 GB, free: 8.273 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3504, allocations: 7.938 kB / 1.02 GB, free: 8.266 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3505, allocations: 3.938 kB / 1.02 GB, free: 8.262 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.199e-06/0.3505, allocations: 0 / 1.02 GB, free: 8.262 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.0008595/0.3513, allocations: 448.8 kB / 1.021 GB, free: 7.766 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.3514, allocations: 8.922 kB / 1.021 GB, free: 7.758 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.053e-05/0.3514, allocations: 16.83 kB / 1.021 GB, free: 7.742 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002338/0.3517, allocations: 188.7 kB / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.3517, allocations: 4.375 kB / 1.021 GB, free: 7.516 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.3517, allocations: 8.375 kB / 1.021 GB, free: 7.508 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.3521, allocations: 117.7 kB / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.3521, allocations: 4 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.3521, allocations: 4 kB / 1.021 GB, free: 7.379 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.3521, allocations: 0 / 1.021 GB, free: 7.379 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003107/0.3524, allocations: 99.8 kB / 1.021 GB, free: 7.281 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000632/0.3531, allocations: 328.7 kB / 1.021 GB, free: 6.91 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003418/0.3534, allocations: 106.5 kB / 1.022 GB, free: 6.797 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.3536, allocations: 68.94 kB / 1.022 GB, free: 6.727 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.3537, allocations: 3.984 kB / 1.022 GB, free: 6.723 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000366/0.354, allocations: 127.3 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of pre-optimization done (n=6): time 1.303e-06/0.354, allocations: 0 / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of matching and sorting (n=6): time 0.0007729/0.3548, allocations: 271.2 kB / 1.022 GB, free: 6.309 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.314e-05/0.3549, allocations: 89.09 kB / 1.022 GB, free: 6.203 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.3551, allocations: 132.4 kB / 1.022 GB, free: 6.066 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.3551, allocations: 29.7 kB / 1.022 GB, free: 6.031 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.918e-05/0.3552, allocations: 96.05 kB / 1.022 GB, free: 5.934 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.3552, allocations: 15.84 kB / 1.022 GB, free: 5.918 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.563e-05/0.3553, allocations: 33.7 kB / 1.022 GB, free: 5.879 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000172/0.3555, allocations: 322.8 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.3557, allocations: 67.89 kB / 1.023 GB, free: 5.488 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/0.3558, allocations: 64.2 kB / 1.023 GB, free: 5.426 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003816/0.3562, allocations: 189.9 kB / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3563, allocations: 4 kB / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005294/0.3568, allocations: 264.9 kB / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.815e-05/0.3569, allocations: 67.39 kB / 1.023 GB, free: 4.859 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.3569, allocations: 0 / 1.023 GB, free: 4.859 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.3569, allocations: 0 / 1.023 GB, free: 4.859 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.3571, allocations: 15.98 kB / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.3571, allocations: 0 / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/0.3572, allocations: 27.89 kB / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.058e-05/0.3573, allocations: 7.984 kB / 1.023 GB, free: 4.809 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.0001471/0.3574, allocations: 155.5 kB / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.118e-05/0.3574, allocations: 7.906 kB / 1.024 GB, free: 4.633 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.495e-05/0.3575, allocations: 12.36 kB / 1.024 GB, free: 4.617 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.3575, allocations: 4 kB / 1.024 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3575, allocations: 0 / 1.024 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3575, allocations: 0 / 1.024 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001958/0.3577, allocations: 197.5 kB / 1.024 GB, free: 4.371 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3577, allocations: 0 / 1.024 GB, free: 4.371 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.657e-05/0.3578, allocations: 15.92 kB / 1.024 GB, free: 4.355 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.299e-06/0.3578, allocations: 7.922 kB / 1.024 GB, free: 4.348 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.3578, allocations: 4 kB / 1.024 GB, free: 4.344 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.3578, allocations: 0 / 1.024 GB, free: 4.344 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3579, allocations: 0 / 1.024 GB, free: 4.344 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005177/0.3584, allocations: 250.6 kB / 1.024 GB, free: 4.074 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.047e-05/0.3585, allocations: 81.05 kB / 1.024 GB, free: 3.977 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.131e-05/0.3585, allocations: 11.98 kB / 1.024 GB, free: 3.965 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.3586, allocations: 15.98 kB / 1.024 GB, free: 3.949 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.3588, allocations: 39.95 kB / 1.024 GB, free: 3.91 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.3588, allocations: 0 / 1.024 GB, free: 3.91 MB / 0.795 GB Notification: Performance of sorting global known variables: time 7.244e-05/0.3589, allocations: 95.27 kB / 1.024 GB, free: 3.816 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3589, allocations: 8 kB / 1.024 GB, free: 3.809 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002115/0.3591, allocations: 31.84 kB / 1.024 GB, free: 3.777 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.0001444/0.3593, allocations: 111.2 kB / 1.024 GB, free: 3.66 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005578/0.3598, allocations: 258.7 kB / 1.025 GB, free: 3.383 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3598, allocations: 0 / 1.025 GB, free: 3.383 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002771/0.3601, allocations: 147.4 kB / 1.025 GB, free: 3.227 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.3603, allocations: 19.92 kB / 1.025 GB, free: 3.207 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005977/0.3609, allocations: 241.1 kB / 1.025 GB, free: 2.934 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.3613, allocations: 0.6924 MB / 1.026 GB, free: 2.215 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.596e-05/0.3614, allocations: 15.42 kB / 1.026 GB, free: 2.199 MB / 0.795 GB Notification: Performance of SimCode: time 2.21e-07/0.3614, allocations: 0 / 1.026 GB, free: 2.199 MB / 0.795 GB Notification: Performance of Templates: time 0.003713/0.3651, allocations: 1.441 MB / 1.027 GB, free: 0.7734 MB / 0.795 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=400 -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) Reference file matches