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.0007767/0.0007767, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.00743/0.00743, allocations: 172.2 kB / 16.27 MB, free: 6.652 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.506/1.506, allocations: 223.3 MB / 240.3 MB, free: 5.355 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.589/2.589, allocations: 390.9 MB / 0.6663 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004916/0.0004918, allocations: 11.98 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7601/0.7606, allocations: 142.4 MB / 0.955 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001513/0.7622, allocations: 1.2 MB / 0.9562 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007878/0.763, allocations: 463.3 kB / 0.9566 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.828e-05/0.7631, allocations: 1.406 kB / 0.9566 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.15e-05/0.7632, allocations: 7.938 kB / 0.9566 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.276e-05/0.7633, allocations: 9.375 kB / 0.9567 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002244/0.7635, allocations: 33.83 kB / 0.9567 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001359/0.7636, allocations: 85.31 kB / 0.9568 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.7638, allocations: 22.77 kB / 0.9568 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.7639, allocations: 41.69 kB / 0.9568 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.7641, allocations: 43.66 kB / 0.9569 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.78e-05/0.7641, allocations: 2.969 kB / 0.9569 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.836e-05/0.7641, allocations: 3.719 kB / 0.9569 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.39e-05/0.7642, allocations: 8.266 kB / 0.9569 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.281e-05/0.7643, allocations: 61.69 kB / 0.9569 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.7644, allocations: 74.36 kB / 0.957 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.7644, allocations: 0 / 0.957 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.643e-06/0.7644, allocations: 0 / 0.957 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.7645, allocations: 4.969 kB / 0.957 GB, free: 6.137 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.0006036/0.7651, allocations: 441.8 kB / 0.9574 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.7651, allocations: 9.188 kB / 0.9575 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.695e-05/0.7652, allocations: 10.69 kB / 0.9575 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.7653, allocations: 192.1 kB / 0.9576 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.7653, allocations: 8.5 kB / 0.9577 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.7654, allocations: 9.656 kB / 0.9577 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003197/0.7657, allocations: 122.3 kB / 0.9578 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.7657, allocations: 0 / 0.9578 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.838e-05/0.7657, allocations: 6.406 kB / 0.9578 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.7657, allocations: 1.406 kB / 0.9578 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003133/0.7661, allocations: 103.8 kB / 0.9579 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000497/0.7666, allocations: 351.5 kB / 0.9582 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003429/0.7669, allocations: 121.4 kB / 0.9583 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.7671, allocations: 78.78 kB / 0.9584 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.7672, allocations: 0.875 kB / 0.9584 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003389/0.7675, allocations: 134.6 kB / 0.9585 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.843e-06/0.7675, allocations: 0 / 0.9585 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0007347/0.7683, allocations: 303 kB / 0.9588 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.7683, allocations: 84.88 kB / 0.9589 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.161e-05/0.7684, allocations: 131.3 kB / 0.959 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.7684, allocations: 28.77 kB / 0.9591 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.018e-05/0.7685, allocations: 94.05 kB / 0.9592 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.7685, allocations: 24.17 kB / 0.9592 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.7685, allocations: 13.94 kB / 0.9592 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.197e-05/0.7686, allocations: 325.5 kB / 0.9595 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.7688, allocations: 73.08 kB / 0.9596 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.769, allocations: 77.27 kB / 0.9596 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003332/0.7693, allocations: 201.2 kB / 0.9598 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.7693, allocations: 4 kB / 0.9598 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004744/0.7698, allocations: 267.3 kB / 0.9601 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.091e-05/0.7699, allocations: 63.66 kB / 0.9602 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.7699, allocations: 5.375 kB / 0.9602 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.7699, allocations: 0 / 0.9602 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.77, allocations: 25.66 kB / 0.9602 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.411e-06/0.77, allocations: 0 / 0.9602 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.7702, allocations: 32.55 kB / 0.9602 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.7702, allocations: 2.75 kB / 0.9602 GB, free: 3.469 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 8.862e-05/0.7703, allocations: 162.5 kB / 0.9604 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.305e-05/0.7704, allocations: 9.5 kB / 0.9604 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.71e-05/0.7704, allocations: 13.69 kB / 0.9604 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.7704, allocations: 5.359 kB / 0.9604 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.7704, allocations: 0 / 0.9604 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.7704, allocations: 5.359 kB / 0.9604 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.7705, allocations: 195.4 kB / 0.9606 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.7705, allocations: 1.375 kB / 0.9606 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.693e-05/0.7706, allocations: 18.98 kB / 0.9606 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.7706, allocations: 1.375 kB / 0.9606 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.7706, allocations: 1.625 kB / 0.9606 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.7707, allocations: 1.375 kB / 0.9606 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.7707, allocations: 4 kB / 0.9606 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004991/0.7712, allocations: 267.9 kB / 0.9609 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.135e-05/0.7712, allocations: 82.14 kB / 0.961 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.884e-05/0.7712, allocations: 7.125 kB / 0.961 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.7714, allocations: 30.66 kB / 0.961 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.7715, allocations: 34.48 kB / 0.961 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.7716, allocations: 8.094 kB / 0.961 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.148e-05/0.7716, allocations: 94.55 kB / 0.9611 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7716, allocations: 1.031 kB / 0.9611 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002315/0.7719, allocations: 29.41 kB / 0.9611 GB, free: 2.645 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.0001379/0.772, allocations: 101.3 kB / 0.9612 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005595/0.7726, allocations: 286.5 kB / 0.9615 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.7726, allocations: 0 / 0.9615 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002735/0.7729, allocations: 148.6 kB / 0.9617 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.7731, allocations: 19.83 kB / 0.9617 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000561/0.7737, allocations: 234.2 kB / 0.9619 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001521/0.7738, allocations: 0.6941 MB / 0.9626 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.628e-05/0.7739, allocations: 8.859 kB / 0.9626 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.774, allocations: 10.16 kB / 0.9626 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of SimCode: time 5.11e-07/0.774, allocations: 0 / 0.9626 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of Templates: time 0.004525/0.7785, allocations: 1.578 MB / 0.9641 GB, free: 0.5312 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