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.0012/0.0012, allocations: 107.1 kB / 16.27 MB, free: 5.992 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.001369/0.001369, allocations: 192.5 kB / 17.2 MB, free: 5.617 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.357/1.357, allocations: 222.9 MB / 240.9 MB, free: 15.2 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.482/2.482, allocations: 437 MB / 0.711 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002273/0.002273, allocations: 64.72 kB / 0.8699 GB, free: 2.195 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3411, 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.003519/0.3447, allocations: 1.483 MB / 1.019 GB, free: 9.141 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001002/0.3457, allocations: 472.3 kB / 1.02 GB, free: 8.676 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.864e-05/0.3458, allocations: 0 / 1.02 GB, free: 8.676 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.346, allocations: 3.938 kB / 1.02 GB, free: 8.672 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.596e-05/0.346, allocations: 19.86 kB / 1.02 GB, free: 8.652 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.3463, allocations: 31.89 kB / 1.02 GB, free: 8.621 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001939/0.3465, allocations: 107.8 kB / 1.02 GB, free: 8.516 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.3467, allocations: 8.188 kB / 1.02 GB, free: 8.508 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000161/0.3468, allocations: 47.83 kB / 1.02 GB, free: 8.461 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.347, allocations: 43.83 kB / 1.02 GB, free: 8.418 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.987e-05/0.347, allocations: 15.98 kB / 1.02 GB, free: 8.402 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 2.279e-05/0.347, allocations: 8 kB / 1.02 GB, free: 8.395 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.765e-05/0.3471, allocations: 15.92 kB / 1.02 GB, free: 8.379 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.805e-05/0.3472, allocations: 35.86 kB / 1.02 GB, free: 8.344 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001629/0.3473, allocations: 79.77 kB / 1.02 GB, free: 8.266 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3474, allocations: 3.984 kB / 1.02 GB, free: 8.262 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3474, allocations: 0 / 1.02 GB, free: 8.262 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.3474, 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.0008246/0.3482, allocations: 450.9 kB / 1.021 GB, free: 7.762 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.3483, allocations: 8.922 kB / 1.021 GB, free: 7.754 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.688e-05/0.3483, allocations: 8.844 kB / 1.021 GB, free: 7.746 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002262/0.3486, allocations: 192.1 kB / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.3486, allocations: 8.375 kB / 1.021 GB, free: 7.512 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.572e-05/0.3486, allocations: 8.375 kB / 1.021 GB, free: 7.504 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003642/0.349, allocations: 113.8 kB / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.349, allocations: 0 / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.037e-05/0.349, allocations: 4 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.3491, allocations: 7.938 kB / 1.021 GB, free: 7.375 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003222/0.3494, allocations: 87.92 kB / 1.021 GB, free: 7.289 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/0.35, allocations: 340.5 kB / 1.021 GB, free: 6.906 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.3504, allocations: 106.5 kB / 1.022 GB, free: 6.793 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.3506, allocations: 72.94 kB / 1.022 GB, free: 6.719 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.3506, allocations: 4 kB / 1.022 GB, free: 6.715 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000369/0.351, allocations: 123.3 kB / 1.022 GB, free: 6.582 MB / 0.795 GB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.351, allocations: 0 / 1.022 GB, free: 6.582 MB / 0.795 GB Notification: Performance of matching and sorting (n=6): time 0.0007703/0.3518, allocations: 279.1 kB / 1.022 GB, free: 6.297 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.017e-05/0.3518, allocations: 81.11 kB / 1.022 GB, free: 6.199 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.352, allocations: 133.1 kB / 1.022 GB, free: 6.062 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.352, allocations: 25.7 kB / 1.022 GB, free: 6.031 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.184e-05/0.3521, allocations: 104 kB / 1.022 GB, free: 5.926 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.492e-05/0.3521, allocations: 15.84 kB / 1.022 GB, free: 5.91 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.736e-05/0.3522, allocations: 29.72 kB / 1.022 GB, free: 5.875 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.3523, allocations: 318.8 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.3525, allocations: 67.95 kB / 1.023 GB, free: 5.488 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001913/0.3527, allocations: 71.94 kB / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00038/0.3531, allocations: 181.8 kB / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3531, allocations: 0 / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005103/0.3536, allocations: 252.9 kB / 1.023 GB, free: 4.953 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.846e-05/0.3537, allocations: 67.39 kB / 1.023 GB, free: 4.875 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3537, allocations: 0 / 1.023 GB, free: 4.875 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.3537, allocations: 4.344 kB / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.3539, allocations: 23.86 kB / 1.023 GB, free: 4.848 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.3539, allocations: 4 kB / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.3541, allocations: 27.88 kB / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.3541, allocations: 4 kB / 1.023 GB, free: 4.812 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.0001468/0.3542, allocations: 159.5 kB / 1.023 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/0.3543, allocations: 7.906 kB / 1.023 GB, free: 4.633 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.799e-05/0.3543, allocations: 12.38 kB / 1.023 GB, free: 4.617 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3543, allocations: 4 kB / 1.023 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.3543, allocations: 0 / 1.023 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3543, allocations: 0 / 1.023 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.3545, allocations: 197.6 kB / 1.024 GB, free: 4.371 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3545, allocations: 3.984 kB / 1.024 GB, free: 4.367 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.773e-05/0.3546, allocations: 11.98 kB / 1.024 GB, free: 4.355 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.3546, allocations: 0 / 1.024 GB, free: 4.355 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.3546, allocations: 7.938 kB / 1.024 GB, free: 4.348 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.3547, allocations: 3.984 kB / 1.024 GB, free: 4.344 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3547, allocations: 0 / 1.024 GB, free: 4.344 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005119/0.3552, allocations: 254.5 kB / 1.024 GB, free: 4.07 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.26e-05/0.3552, allocations: 85.05 kB / 1.024 GB, free: 3.969 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.3553, allocations: 4 kB / 1.024 GB, free: 3.965 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.3554, allocations: 19.97 kB / 1.024 GB, free: 3.945 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.3556, allocations: 35.97 kB / 1.024 GB, free: 3.91 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.3556, allocations: 8 kB / 1.024 GB, free: 3.902 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.876e-05/0.3557, allocations: 103.2 kB / 1.024 GB, free: 3.801 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3557, allocations: 0 / 1.024 GB, free: 3.801 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002216/0.3559, allocations: 27.84 kB / 1.024 GB, free: 3.773 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.0001245/0.356, allocations: 103.2 kB / 1.024 GB, free: 3.664 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005671/0.3566, allocations: 270.6 kB / 1.025 GB, free: 3.375 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3566, allocations: 0 / 1.025 GB, free: 3.375 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002915/0.3569, allocations: 135.3 kB / 1.025 GB, free: 3.23 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002262/0.3572, allocations: 12 kB / 1.025 GB, free: 3.219 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006141/0.3578, allocations: 253 kB / 1.025 GB, free: 2.934 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.3581, allocations: 0.6885 MB / 1.026 GB, free: 2.219 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.902e-05/0.3581, allocations: 15.44 kB / 1.026 GB, free: 2.203 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.3582, allocations: 0 / 1.026 GB, free: 2.203 MB / 0.795 GB Notification: Performance of Templates: time 0.003581/0.3617, allocations: 1.443 MB / 1.027 GB, free: 0.7773 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=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/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