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.004911/0.004911, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.001301/0.001301, allocations: 191.8 kB / 16.67 MB, free: 5.52 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.26/1.26, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.067/2.067, allocations: 390.3 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 71.89 kB / 0.9504 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7475/0.7487, allocations: 140.3 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002113/0.7508, allocations: 1.489 MB / 1.089 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006255/0.7514, allocations: 461 kB / 1.089 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.732e-05/0.7515, allocations: 1.188 kB / 1.089 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 8.394e-05/0.7516, allocations: 8.547 kB / 1.089 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.372e-05/0.7517, allocations: 15.7 kB / 1.089 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002029/0.7519, allocations: 33 kB / 1.089 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001483/0.752, allocations: 99.14 kB / 1.089 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.574e-05/0.7521, allocations: 17.08 kB / 1.089 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.7522, allocations: 52.11 kB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.188e-05/0.7523, allocations: 38.45 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.563e-05/0.7524, allocations: 8 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.936e-05/0.7524, allocations: 8.125 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.441e-05/0.7524, allocations: 15.03 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.039e-05/0.7525, allocations: 45.45 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.7526, allocations: 84.72 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.7527, allocations: 0.8125 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.322e-06/0.7527, allocations: 4 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.7527, allocations: 0 / 1.09 GB, free: 3.715 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.0006012/0.7533, allocations: 443.1 kB / 1.09 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.7533, allocations: 9.281 kB / 1.09 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.444e-05/0.7534, allocations: 39.12 kB / 1.09 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.8e-05/0.7534, allocations: 10.41 kB / 1.09 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001381/0.7535, allocations: 191.5 kB / 1.09 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.7536, allocations: 7.672 kB / 1.09 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.061e-05/0.7536, allocations: 11.12 kB / 1.09 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003048/0.7539, allocations: 120.6 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.7539, allocations: 1.156 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.7539, allocations: 1.344 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.754, allocations: 1.625 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003035/0.7543, allocations: 86.25 kB / 1.091 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004761/0.7547, allocations: 338.9 kB / 1.091 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003164/0.7551, allocations: 108.8 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.7553, allocations: 70.41 kB / 1.091 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.7553, allocations: 5.984 kB / 1.091 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003038/0.7556, allocations: 123.8 kB / 1.091 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.583e-06/0.7556, allocations: 0 / 1.091 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0007269/0.7563, allocations: 272 kB / 1.091 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.7564, allocations: 90.83 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.415e-05/0.7565, allocations: 134.7 kB / 1.092 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.7565, allocations: 28.56 kB / 1.092 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.606e-05/0.7565, allocations: 97.83 kB / 1.092 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.7566, allocations: 17.02 kB / 1.092 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.457e-05/0.7566, allocations: 31.67 kB / 1.092 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.234e-05/0.7567, allocations: 319.5 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002007/0.7569, allocations: 70.16 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.7571, allocations: 71.02 kB / 1.092 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003313/0.7574, allocations: 183.2 kB / 1.092 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.7574, allocations: 0 / 1.092 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004696/0.7579, allocations: 262.2 kB / 1.093 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.923e-05/0.7579, allocations: 66.62 kB / 1.093 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.758, allocations: 0 / 1.093 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.758, allocations: 1.062 kB / 1.093 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.7581, allocations: 14.84 kB / 1.093 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.7581, allocations: 0 / 1.093 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001578/0.7583, allocations: 27.73 kB / 1.093 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.7583, allocations: 8.453 kB / 1.093 GB, free: 1.309 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 8.718e-05/0.7584, allocations: 162.6 kB / 1.093 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.097e-05/0.7584, allocations: 9.891 kB / 1.093 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/0.7585, allocations: 12.11 kB / 1.093 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.7585, allocations: 0.75 kB / 1.093 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.7585, allocations: 256 / 1.093 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.7585, allocations: 1.547 kB / 1.093 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.7586, allocations: 199.3 kB / 1.093 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7586, allocations: 0.625 kB / 1.093 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.84e-05/0.7587, allocations: 13.06 kB / 1.093 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.7587, allocations: 4.938 kB / 1.093 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.7587, allocations: 3.125 kB / 1.093 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.7587, allocations: 0.75 kB / 1.093 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.7587, allocations: 0 / 1.093 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004833/0.7592, allocations: 250 kB / 1.093 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.212e-05/0.7593, allocations: 88.22 kB / 1.094 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.689e-05/0.7593, allocations: 8.047 kB / 1.094 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.7594, allocations: 22.33 kB / 1.094 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.7596, allocations: 37.14 kB / 1.094 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.7596, allocations: 7.219 kB / 1.094 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.709e-05/0.7596, allocations: 106.2 kB / 1.094 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.7596, allocations: 0 / 1.094 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002107/0.7599, allocations: 22.36 kB / 1.094 GB, free: 0.5664 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.0007485/0.7606, allocations: 0.7799 MB / 1.095 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005505/0.7612, allocations: 265.2 kB / 1.095 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.7612, allocations: 4 kB / 1.095 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002688/0.7615, allocations: 144.2 kB / 1.095 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.7617, allocations: 16.16 kB / 1.095 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002419/0.7641, allocations: 1.751 MB / 1.097 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/0.7643, allocations: 0.6885 MB / 1.097 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.247e-05/0.7644, allocations: 8.359 kB / 1.097 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.768e-05/0.7645, allocations: 20.95 kB / 1.097 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of SimCode: time 3.51e-07/0.7645, allocations: 0.9688 kB / 1.097 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01965/0.7841, allocations: 3.004 MB / 1.1 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.69, allocations: 13.36 kB / 1.1 GB, free: 13.07 MB / 0.8731 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