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.007997/0.007997, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.0018/0.0018, allocations: 193.8 kB / 16.67 MB, free: 5.93 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.255/1.255, allocations: 222.9 MB / 240.4 MB, free: 15.11 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.118/2.118, allocations: 390.3 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001342, allocations: 64.08 kB / 0.9504 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7211/0.7224, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002535/0.725, allocations: 1.483 MB / 1.089 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000744/0.7258, allocations: 461.6 kB / 1.089 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.365e-05/0.7259, allocations: 0 / 1.089 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001024/0.726, allocations: 5.25 kB / 1.089 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.246e-05/0.726, allocations: 15.92 kB / 1.089 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.7263, allocations: 40.88 kB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001637/0.7264, allocations: 92.38 kB / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.7266, allocations: 16.69 kB / 1.089 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.7267, allocations: 51.39 kB / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.057e-05/0.7268, allocations: 43.5 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.7268, allocations: 8.562 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.884e-05/0.7269, allocations: 7.969 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.952e-05/0.7269, allocations: 14.67 kB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.071e-05/0.727, allocations: 44.94 kB / 1.09 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001566/0.7271, allocations: 80.25 kB / 1.09 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.7272, allocations: 1.062 kB / 1.09 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.074e-06/0.7272, allocations: 0.7969 kB / 1.09 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.7272, allocations: 0 / 1.09 GB, free: 3.746 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.0006384/0.7278, allocations: 446.8 kB / 1.09 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.7279, allocations: 8.875 kB / 1.09 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.108e-05/0.7279, allocations: 34.92 kB / 1.09 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.137e-05/0.728, allocations: 11.44 kB / 1.09 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001463/0.7281, allocations: 198.5 kB / 1.09 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.7281, allocations: 3.844 kB / 1.09 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.392e-05/0.7282, allocations: 7.344 kB / 1.09 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003075/0.7285, allocations: 121.5 kB / 1.091 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.7285, allocations: 4 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.7285, allocations: 2.656 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.7285, allocations: 4.656 kB / 1.091 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002952/0.7288, allocations: 87.14 kB / 1.091 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004915/0.7293, allocations: 337.8 kB / 1.091 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.7296, allocations: 108.3 kB / 1.091 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.7298, allocations: 70.97 kB / 1.091 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.7298, allocations: 1.438 kB / 1.091 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003424/0.7302, allocations: 128.8 kB / 1.091 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.553e-06/0.7302, allocations: 0 / 1.091 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0007432/0.7309, allocations: 271.3 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.731, allocations: 86.89 kB / 1.092 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.553e-05/0.7311, allocations: 135.4 kB / 1.092 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.7311, allocations: 31.64 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.389e-05/0.7312, allocations: 98.53 kB / 1.092 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.583e-05/0.7312, allocations: 20.84 kB / 1.092 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.284e-05/0.7313, allocations: 31.89 kB / 1.092 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.415e-05/0.7313, allocations: 323.7 kB / 1.092 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000193/0.7315, allocations: 62.14 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.7317, allocations: 75.75 kB / 1.092 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003193/0.7321, allocations: 182.6 kB / 1.092 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.7321, allocations: 0 / 1.092 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000477/0.7326, allocations: 262 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.666e-05/0.7326, allocations: 66.28 kB / 1.093 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.7326, allocations: 0 / 1.093 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.7326, allocations: 4.781 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.7328, allocations: 14.38 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.7328, allocations: 1.188 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.7329, allocations: 23.7 kB / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.733, allocations: 8.078 kB / 1.093 GB, free: 1.324 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 9.62e-05/0.7331, allocations: 153.1 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.018e-05/0.7331, allocations: 9.516 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.264e-05/0.7331, allocations: 14.77 kB / 1.093 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.7331, allocations: 0.875 kB / 1.093 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.7332, allocations: 1.594 kB / 1.093 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.7332, allocations: 0 / 1.093 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.7333, allocations: 192 kB / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7333, allocations: 4.688 kB / 1.093 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.383e-05/0.7334, allocations: 13.06 kB / 1.093 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.7334, allocations: 0.6875 kB / 1.093 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.7334, allocations: 8.266 kB / 1.093 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.7334, allocations: 7.938 kB / 1.093 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.7334, allocations: 4 kB / 1.093 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004684/0.7339, allocations: 246.4 kB / 1.093 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.976e-05/0.734, allocations: 83.31 kB / 1.094 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.608e-05/0.734, allocations: 3.922 kB / 1.094 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.7341, allocations: 22.66 kB / 1.094 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.7343, allocations: 37.36 kB / 1.094 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.7343, allocations: 3.781 kB / 1.094 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.156e-05/0.7343, allocations: 103.8 kB / 1.094 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7343, allocations: 0.75 kB / 1.094 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002126/0.7346, allocations: 25.53 kB / 1.094 GB, free: 0.5898 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.0007696/0.7353, allocations: 0.7793 MB / 1.095 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00054/0.7359, allocations: 264.7 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.7359, allocations: 0.8125 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002805/0.7362, allocations: 143.7 kB / 1.095 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.7364, allocations: 18.52 kB / 1.095 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.7389, allocations: 1.749 MB / 1.097 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.7392, allocations: 0.6922 MB / 1.097 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.687e-05/0.7393, allocations: 12.23 kB / 1.097 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.703e-05/0.7394, allocations: 25.55 kB / 1.097 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of SimCode: time 4.41e-07/0.7394, allocations: 0.625 kB / 1.097 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.7603, allocations: 3.002 MB / 1.1 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.667/8.427, allocations: 9.203 kB / 1.1 GB, free: 13.09 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