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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001419/0.001419, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001608/0.001608, allocations: 195.9 kB / 16.26 MB, free: 6.625 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.638/1.638, allocations: 222.9 MB / 239.9 MB, free: 4.551 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 3.177/3.177, allocations: 390.2 MB / 0.6644 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002474/0.002474, allocations: 59.91 kB / 0.8121 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9136/0.9161, allocations: 140.4 MB / 0.9492 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.003942/0.9201, allocations: 1.538 MB / 0.9507 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001019/0.9212, allocations: 456.6 kB / 0.9512 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.545e-05/0.9213, allocations: 1.188 kB / 0.9512 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.9214, allocations: 3.938 kB / 0.9512 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.691e-05/0.9215, allocations: 18.19 kB / 0.9512 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.9218, allocations: 29.16 kB / 0.9512 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001989/0.922, allocations: 107.5 kB / 0.9513 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.9221, allocations: 13.98 kB / 0.9513 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.9223, allocations: 50.69 kB / 0.9514 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.9224, allocations: 38.8 kB / 0.9514 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.866e-05/0.9225, allocations: 8.406 kB / 0.9514 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.039e-05/0.9225, allocations: 7.844 kB / 0.9514 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.079e-05/0.9226, allocations: 15 kB / 0.9514 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.628e-05/0.9227, allocations: 44.91 kB / 0.9515 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001684/0.9229, allocations: 81.45 kB / 0.9516 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.9229, allocations: 0 / 0.9516 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.535e-06/0.9229, allocations: 0 / 0.9516 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.9229, allocations: 1.25 kB / 0.9516 GB, free: 7.375 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.0007943/0.9237, allocations: 453 kB / 0.952 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.9238, allocations: 8.781 kB / 0.952 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.657e-05/0.9238, allocations: 41.56 kB / 0.952 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.924e-05/0.9239, allocations: 10.41 kB / 0.9521 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.9241, allocations: 192.2 kB / 0.9522 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.9241, allocations: 4.844 kB / 0.9522 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.996e-05/0.9242, allocations: 9.844 kB / 0.9523 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004519/0.9246, allocations: 115.4 kB / 0.9524 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.9247, allocations: 0 / 0.9524 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.9247, allocations: 5.312 kB / 0.9524 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.9247, allocations: 1.781 kB / 0.9524 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004433/0.9252, allocations: 85.89 kB / 0.9525 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006927/0.9259, allocations: 344 kB / 0.9528 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005136/0.9264, allocations: 105.8 kB / 0.9529 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003096/0.9267, allocations: 76.16 kB / 0.953 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.9268, allocations: 0 / 0.953 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005407/0.9273, allocations: 127.9 kB / 0.9531 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 2.445e-06/0.9273, allocations: 0 / 0.9531 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.001123/0.9285, allocations: 269.7 kB / 0.9533 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.9285, allocations: 88.86 kB / 0.9534 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.9287, allocations: 137.1 kB / 0.9536 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.9287, allocations: 28.67 kB / 0.9536 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.219e-05/0.9288, allocations: 92.11 kB / 0.9537 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.207e-05/0.9288, allocations: 22.73 kB / 0.9537 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.29e-05/0.9289, allocations: 25.09 kB / 0.9537 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.564e-05/0.929, allocations: 325.2 kB / 0.954 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003046/0.9293, allocations: 69.7 kB / 0.9541 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002951/0.9296, allocations: 71.12 kB / 0.9542 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005174/0.9302, allocations: 177.8 kB / 0.9543 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.9302, allocations: 1.188 kB / 0.9543 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0007209/0.9309, allocations: 261.6 kB / 0.9546 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.283e-05/0.931, allocations: 71.45 kB / 0.9546 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.931, allocations: 1.125 kB / 0.9546 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.931, allocations: 0 / 0.9546 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.9312, allocations: 14.14 kB / 0.9547 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.9312, allocations: 0 / 0.9547 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00025/0.9315, allocations: 29.19 kB / 0.9547 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.9315, allocations: 11.91 kB / 0.9547 GB, free: 4.652 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 0.000129/0.9317, allocations: 155 kB / 0.9548 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.425e-05/0.9317, allocations: 4.344 kB / 0.9549 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.036e-05/0.9318, allocations: 11.12 kB / 0.9549 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.9318, allocations: 0 / 0.9549 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.9318, allocations: 1.406 kB / 0.9549 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.9318, allocations: 0 / 0.9549 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001617/0.932, allocations: 204.9 kB / 0.9551 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.932, allocations: 0 / 0.9551 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.9321, allocations: 12.77 kB / 0.9551 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.9321, allocations: 0 / 0.9551 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.9322, allocations: 9.781 kB / 0.9551 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.9322, allocations: 5.141 kB / 0.9551 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.9322, allocations: 256 / 0.9551 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007207/0.9329, allocations: 250.8 kB / 0.9553 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.121e-05/0.933, allocations: 82.48 kB / 0.9554 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.121e-05/0.933, allocations: 6.281 kB / 0.9554 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/0.9333, allocations: 24.5 kB / 0.9554 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.9335, allocations: 31.25 kB / 0.9555 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.9335, allocations: 6.781 kB / 0.9555 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.258e-05/0.9336, allocations: 103.2 kB / 0.9556 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.153e-06/0.9336, allocations: 0 / 0.9556 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003931/0.934, allocations: 30.28 kB / 0.9556 GB, free: 3.84 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.001005/0.935, allocations: 0.7816 MB / 0.9564 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007854/0.9358, allocations: 266.2 kB / 0.9566 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.9358, allocations: 0 / 0.9566 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003801/0.9362, allocations: 140.7 kB / 0.9567 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.9366, allocations: 17.19 kB / 0.9568 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00337/0.94, allocations: 1.762 MB / 0.9585 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000129/0.9402, allocations: 0.6899 MB / 0.9592 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001201/0.9403, allocations: 13.05 kB / 0.9592 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.704e-05/0.9404, allocations: 23.92 kB / 0.9592 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of SimCode: time 6.81e-07/0.9404, allocations: 0 / 0.9592 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02116/0.9616, allocations: 2.715 MB / 0.9618 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003323/0.962, allocations: 201.5 kB / 0.962 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.347/3.309, allocations: 3.938 kB / 0.962 GB, free: 15.01 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > 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/jenkins1/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,pulse.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time