Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001501/0.001501, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.002109/0.002109, allocations: 196.8 kB / 16.14 MB, free: 6.734 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.468/1.468, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.484/2.484, allocations: 390.2 MB / 0.6642 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.91 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7625/0.7637, allocations: 140.4 MB / 0.9489 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002747/0.7665, allocations: 1.542 MB / 0.9504 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007683/0.7673, allocations: 465 kB / 0.9508 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.755e-05/0.7674, allocations: 3.938 kB / 0.9509 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.7675, allocations: 0 / 0.9509 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.349e-05/0.7676, allocations: 14.62 kB / 0.9509 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.7678, allocations: 33.45 kB / 0.9509 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001212/0.7679, allocations: 97.94 kB / 0.951 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.768, allocations: 10.86 kB / 0.951 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.7682, allocations: 38.06 kB / 0.951 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.243e-05/0.7683, allocations: 42.59 kB / 0.9511 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.7683, allocations: 9.125 kB / 0.9511 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.033e-05/0.7683, allocations: 4.406 kB / 0.9511 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.618e-05/0.7684, allocations: 14.58 kB / 0.9511 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.885e-05/0.7685, allocations: 32.83 kB / 0.9511 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.7686, allocations: 79.09 kB / 0.9512 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.7686, allocations: 0 / 0.9512 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.272e-06/0.7686, allocations: 0 / 0.9512 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.137e-06/0.7686, allocations: 3.938 kB / 0.9512 GB, free: 7.371 MB / 0.7169 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.000643/0.7693, allocations: 447.2 kB / 0.9516 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.7693, allocations: 13.56 kB / 0.9517 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.192e-05/0.7694, allocations: 22.05 kB / 0.9517 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.7695, allocations: 184.6 kB / 0.9519 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.7695, allocations: 4.188 kB / 0.9519 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.7696, allocations: 5.5 kB / 0.9519 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003134/0.7699, allocations: 120 kB / 0.952 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.7699, allocations: 0 / 0.952 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.7699, allocations: 2.5 kB / 0.952 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.7699, allocations: 0 / 0.952 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002901/0.7702, allocations: 94.52 kB / 0.9521 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004711/0.7707, allocations: 340 kB / 0.9524 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.771, allocations: 106.5 kB / 0.9525 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.7712, allocations: 75.44 kB / 0.9526 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.7712, allocations: 0 / 0.9526 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003422/0.7716, allocations: 128.4 kB / 0.9527 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.382e-06/0.7716, allocations: 4 kB / 0.9527 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0007061/0.7723, allocations: 265.5 kB / 0.9529 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.7723, allocations: 88.94 kB / 0.953 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.723e-05/0.7724, allocations: 126.1 kB / 0.9532 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.7725, allocations: 32.98 kB / 0.9532 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.551e-05/0.7725, allocations: 99.25 kB / 0.9533 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.7725, allocations: 15.28 kB / 0.9533 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.146e-05/0.7726, allocations: 33.77 kB / 0.9533 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.58e-05/0.7727, allocations: 325.1 kB / 0.9536 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.7729, allocations: 61.39 kB / 0.9537 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.773, allocations: 70.39 kB / 0.9538 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000325/0.7734, allocations: 184 kB / 0.9539 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.7734, allocations: 0 / 0.9539 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004663/0.7739, allocations: 261.1 kB / 0.9542 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.422e-05/0.7739, allocations: 64.53 kB / 0.9542 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.7739, allocations: 0 / 0.9542 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.7739, allocations: 5.047 kB / 0.9543 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.7741, allocations: 17.2 kB / 0.9543 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.7741, allocations: 1.125 kB / 0.9543 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001487/0.7742, allocations: 20.83 kB / 0.9543 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.7743, allocations: 7.547 kB / 0.9543 GB, free: 4.707 MB / 0.7169 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 9.231e-05/0.7744, allocations: 154.2 kB / 0.9544 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.137e-05/0.7744, allocations: 9.125 kB / 0.9545 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.89e-05/0.7744, allocations: 14.45 kB / 0.9545 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.7744, allocations: 1.281 kB / 0.9545 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.7744, allocations: 4 kB / 0.9545 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.7745, allocations: 0 / 0.9545 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.7746, allocations: 201.5 kB / 0.9547 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.7746, allocations: 4 kB / 0.9547 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.479e-05/0.7747, allocations: 17.11 kB / 0.9547 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.7747, allocations: 3.938 kB / 0.9547 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.7747, allocations: 6.906 kB / 0.9547 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.7747, allocations: 0 / 0.9547 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.7747, allocations: 7.922 kB / 0.9547 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004495/0.7752, allocations: 245.8 kB / 0.9549 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.567e-05/0.7752, allocations: 83.39 kB / 0.955 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.7752, allocations: 2.469 kB / 0.955 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.7754, allocations: 24.34 kB / 0.955 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.7755, allocations: 34.36 kB / 0.9551 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.7755, allocations: 7.562 kB / 0.9551 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.719e-05/0.7756, allocations: 100.4 kB / 0.9552 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7756, allocations: 0.8438 kB / 0.9552 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002096/0.7758, allocations: 24.81 kB / 0.9552 GB, free: 3.887 MB / 0.7169 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.000102/0.7759, allocations: 109.8 kB / 0.9553 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004702/0.7764, allocations: 260.2 kB / 0.9556 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.7764, allocations: 5.531 kB / 0.9556 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002304/0.7766, allocations: 137.8 kB / 0.9557 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002297/0.7769, allocations: 18.55 kB / 0.9557 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004864/0.7774, allocations: 235.9 kB / 0.9559 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001233/0.7775, allocations: 0.6898 MB / 0.9566 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.038e-05/0.7776, allocations: 9.547 kB / 0.9566 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.626e-05/0.7776, allocations: 10.06 kB / 0.9566 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of SimCode: time 2.81e-07/0.7776, allocations: 0 / 0.9566 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of Templates: time 0.00406/0.7817, allocations: 1.587 MB / 0.9582 GB, free: 1.77 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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