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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001719/0.001719, allocations: 109.3 kB / 15.7 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002457/0.002457, allocations: 197.4 kB / 16.63 MB, free: 6.609 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.439/1.439, allocations: 222.9 MB / 240.3 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.556/2.556, allocations: 390.3 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 61.83 kB / 0.9509 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3543, allocations: 140.4 MB / 1.088 GB, free: 1.484 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002882/0.3572, allocations: 1.486 MB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008318/0.3581, allocations: 448.4 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.403e-05/0.3582, allocations: 0 / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.3583, allocations: 7.875 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.168e-05/0.3583, allocations: 19.84 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.3586, allocations: 39.95 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001826/0.3588, allocations: 103.7 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.3589, allocations: 8.172 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.359, allocations: 55.83 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.367e-05/0.3592, allocations: 43.83 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.963e-05/0.3592, allocations: 8 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.063e-05/0.3592, allocations: 8 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.02e-05/0.3593, allocations: 15.92 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.3594, allocations: 39.84 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.3595, allocations: 83.7 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3596, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.933e-06/0.3596, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.3596, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 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.0007982/0.3604, allocations: 446.7 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.3604, allocations: 11.97 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.263e-05/0.3605, allocations: 8.844 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.3607, allocations: 192.2 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.3607, allocations: 4.375 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.3608, allocations: 12.38 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.3611, allocations: 117.7 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.3611, allocations: 4 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.3611, allocations: 8 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.3612, allocations: 0 / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003041/0.3615, allocations: 87.92 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005981/0.3621, allocations: 324.7 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000328/0.3624, allocations: 110.5 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.3626, allocations: 72.94 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.3626, allocations: 0 / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003268/0.363, allocations: 127.3 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.363, allocations: 0 / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0007471/0.3637, allocations: 283 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.3638, allocations: 85.11 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.3639, allocations: 129.8 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.364, allocations: 25.7 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/0.364, allocations: 108 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.408e-05/0.3641, allocations: 19.88 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.855e-05/0.3641, allocations: 29.7 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3643, allocations: 322.8 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.3645, allocations: 67.94 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.3647, allocations: 63.95 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003465/0.365, allocations: 185.9 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.365, allocations: 0 / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004859/0.3655, allocations: 256.8 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.761e-05/0.3656, allocations: 63.41 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3656, allocations: 4 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.662e-05/0.3656, allocations: 3.984 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.3658, allocations: 19.97 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.3658, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.3659, allocations: 19.98 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.366, allocations: 11.94 kB / 1.093 GB, free: 11.66 MB / 0.8575 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.0001457/0.3661, allocations: 163.3 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.295e-05/0.3662, allocations: 11.91 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.544e-05/0.3662, allocations: 8.375 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3662, allocations: 4 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3662, allocations: 96 / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.3662, allocations: 7.922 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001811/0.3664, allocations: 189.6 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3664, allocations: 0 / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.525e-05/0.3665, allocations: 15.97 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3665, allocations: 0 / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.3665, allocations: 4 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3666, allocations: 0 / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3666, allocations: 0 / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004906/0.3671, allocations: 258.8 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.007e-05/0.3671, allocations: 88.95 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.3671, allocations: 4 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.3673, allocations: 19.97 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.3675, allocations: 39.95 kB / 1.094 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.3675, allocations: 8 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.568e-05/0.3675, allocations: 97.09 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3676, allocations: 0 / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002068/0.3678, allocations: 27.94 kB / 1.094 GB, free: 10.63 MB / 0.8575 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.000126/0.3679, allocations: 99.78 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005306/0.3684, allocations: 266.7 kB / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3685, allocations: 4 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.3687, allocations: 139.3 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00022/0.3689, allocations: 13.72 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005568/0.3695, allocations: 223.3 kB / 1.095 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.3698, allocations: 0.6924 MB / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.197e-05/0.3698, allocations: 11.73 kB / 1.096 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.676e-05/0.3699, allocations: 11.44 kB / 1.096 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of SimCode: time 4.61e-07/0.3699, allocations: 0 / 1.096 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of Templates: time 0.004555/0.3744, allocations: 1.849 MB / 1.097 GB, free: 7.246 MB / 0.8575 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