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.001136/0.001136, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001524/0.001524, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 223.3 MB / 240 MB, free: 5.34 MB / 190.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.694/2.694, allocations: 437.7 MB / 0.7117 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004487/0.0004488, allocations: 12 kB / 0.8722 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7999/0.8003, allocations: 153.8 MB / 1.022 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002019/0.8024, allocations: 1.184 MB / 1.024 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008779/0.8033, allocations: 431.3 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.923e-05/0.8034, allocations: 0 / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.964e-05/0.8035, allocations: 7.922 kB / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.353e-05/0.8036, allocations: 15.88 kB / 1.024 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.8039, allocations: 31.91 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001483/0.804, allocations: 83.75 kB / 1.024 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.8042, allocations: 12.17 kB / 1.024 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001659/0.8043, allocations: 35.91 kB / 1.024 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.8045, allocations: 39.83 kB / 1.024 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.8045, allocations: 4 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.768e-05/0.8045, allocations: 4 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.254e-05/0.8046, allocations: 19.91 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.52e-05/0.8046, allocations: 33.7 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.8047, allocations: 51.91 kB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.8048, allocations: 0 / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.853e-06/0.8048, allocations: 0 / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.217e-06/0.8048, allocations: 0 / 1.024 GB, free: 14.12 MB / 0.7794 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.000748/0.8055, allocations: 448.4 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.8056, allocations: 8.031 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.979e-05/0.8056, allocations: 4 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002322/0.8059, allocations: 194.8 kB / 1.025 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/0.8059, allocations: 11.94 kB / 1.025 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/0.806, allocations: 8 kB / 1.025 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003678/0.8063, allocations: 125.6 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.8064, allocations: 0 / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.8064, allocations: 0 / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.8064, allocations: 4 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003019/0.8067, allocations: 103.9 kB / 1.025 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006169/0.8073, allocations: 344.5 kB / 1.025 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003276/0.8077, allocations: 122.5 kB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.8079, allocations: 80.94 kB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.8079, allocations: 4 kB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000349/0.8083, allocations: 123.3 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 4.368e-06/0.8083, allocations: 4 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0007219/0.809, allocations: 303.1 kB / 1.026 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.471e-05/0.8091, allocations: 85.11 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.8092, allocations: 132.1 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.8092, allocations: 29.7 kB / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.652e-05/0.8093, allocations: 88.14 kB / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.112e-05/0.8094, allocations: 27.86 kB / 1.026 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.109e-05/0.8094, allocations: 4 kB / 1.026 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.8095, allocations: 322.8 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.8097, allocations: 79.94 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.8099, allocations: 67.95 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002186/0.8101, allocations: 115.3 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.8101, allocations: 4 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005034/0.8106, allocations: 268.9 kB / 1.027 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.009e-05/0.8107, allocations: 67.39 kB / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.8107, allocations: 96 / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.8107, allocations: 7.938 kB / 1.027 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.8109, allocations: 15.98 kB / 1.027 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.8109, allocations: 3.938 kB / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.8111, allocations: 39.91 kB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/0.8111, allocations: 4 kB / 1.027 GB, free: 10.66 MB / 0.7794 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 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001385/0.8112, allocations: 163.5 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.327e-05/0.8113, allocations: 12.14 kB / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.187e-05/0.8113, allocations: 8.375 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.8113, allocations: 4 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.8113, allocations: 4 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.8113, allocations: 4 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001699/0.8115, allocations: 193.6 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.8115, allocations: 0 / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.445e-05/0.8116, allocations: 15.98 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.8116, allocations: 0 / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.8116, allocations: 0 / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.8116, allocations: 3.984 kB / 1.028 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.8117, allocations: 4 kB / 1.028 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004882/0.8122, allocations: 262.6 kB / 1.028 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.461e-05/0.8122, allocations: 84.97 kB / 1.028 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.129e-05/0.8123, allocations: 12 kB / 1.028 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.8124, allocations: 31.91 kB / 1.028 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.8125, allocations: 31.95 kB / 1.028 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.8126, allocations: 4 kB / 1.028 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.4e-05/0.8126, allocations: 99.27 kB / 1.028 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8126, allocations: 0 / 1.028 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002402/0.8129, allocations: 24 kB / 1.028 GB, free: 9.605 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001254/0.813, allocations: 103.2 kB / 1.028 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005099/0.8135, allocations: 290.6 kB / 1.029 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.8136, allocations: 0 / 1.029 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002596/0.8138, allocations: 139.4 kB / 1.029 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.8141, allocations: 15.98 kB / 1.029 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000566/0.8146, allocations: 237.1 kB / 1.029 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.8149, allocations: 0.6848 MB / 1.03 GB, free: 8.047 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.943e-05/0.815, allocations: 16.17 kB / 1.03 GB, free: 8.031 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.626e-05/0.815, allocations: 7.438 kB / 1.03 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of SimCode: time 3.51e-07/0.8151, allocations: 0 / 1.03 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of Templates: time 0.004606/0.8197, allocations: 1.545 MB / 1.031 GB, free: 6.5 MB / 0.7794 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/jenkins/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