Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_10_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.008106/0.008106, allocations: 103.9 kB / 15.73 MB, free: 5.992 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.001831/0.001831, allocations: 187 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.539/2.539, allocations: 437.1 MB / 0.7105 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 59.91 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.315, allocations: 151.6 MB / 1.166 GB, free: 7.301 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002781/0.3178, allocations: 1.474 MB / 1.168 GB, free: 5.809 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008161/0.3187, allocations: 466.9 kB / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.317e-05/0.3187, allocations: 0 / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 9.525e-05/0.3188, allocations: 7.938 kB / 1.168 GB, free: 5.34 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.016e-05/0.3189, allocations: 19.8 kB / 1.168 GB, free: 5.32 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002143/0.3192, allocations: 31.94 kB / 1.168 GB, free: 5.289 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001681/0.3193, allocations: 103.8 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.3194, allocations: 16.17 kB / 1.168 GB, free: 5.172 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.3196, allocations: 47.83 kB / 1.168 GB, free: 5.125 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.764e-05/0.3197, allocations: 35.89 kB / 1.168 GB, free: 5.09 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.866e-05/0.3197, allocations: 8 kB / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 2.545e-05/0.3198, allocations: 8 kB / 1.168 GB, free: 5.074 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.5e-05/0.3198, allocations: 23.86 kB / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.426e-05/0.3199, allocations: 39.8 kB / 1.168 GB, free: 5.012 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000143/0.32, allocations: 86.56 kB / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.32, allocations: 0 / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3201, allocations: 0 / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.894e-06/0.3201, allocations: 0 / 1.168 GB, free: 4.93 MB / 0.92 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.0007006/0.3208, allocations: 447.4 kB / 1.169 GB, free: 4.434 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.3208, allocations: 8.031 kB / 1.169 GB, free: 4.426 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.224e-05/0.3209, allocations: 38.75 kB / 1.169 GB, free: 4.379 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.622e-05/0.3209, allocations: 20.83 kB / 1.169 GB, free: 4.359 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001958/0.3211, allocations: 191.3 kB / 1.169 GB, free: 4.137 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.3211, allocations: 4.375 kB / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.3212, allocations: 8.375 kB / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003229/0.3215, allocations: 121.5 kB / 1.169 GB, free: 4 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.148e-06/0.3215, allocations: 0 / 1.169 GB, free: 4 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.3215, allocations: 8 kB / 1.169 GB, free: 3.992 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.3216, allocations: 0 / 1.169 GB, free: 3.992 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002945/0.3219, allocations: 91.92 kB / 1.169 GB, free: 3.902 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005464/0.3224, allocations: 320.8 kB / 1.17 GB, free: 3.539 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.3227, allocations: 110.5 kB / 1.17 GB, free: 3.422 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.3229, allocations: 72.94 kB / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.3229, allocations: 0 / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003351/0.3233, allocations: 123.3 kB / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/0.3233, allocations: 0 / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.000669/0.324, allocations: 287 kB / 1.17 GB, free: 2.922 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.324, allocations: 85.09 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.3242, allocations: 127.7 kB / 1.17 GB, free: 2.688 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.3242, allocations: 25.7 kB / 1.17 GB, free: 2.656 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.978e-05/0.3243, allocations: 104 kB / 1.171 GB, free: 2.551 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.3243, allocations: 15.81 kB / 1.171 GB, free: 2.535 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.176e-05/0.3244, allocations: 37.64 kB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3245, allocations: 326.8 kB / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.3247, allocations: 63.95 kB / 1.171 GB, free: 2.102 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.3249, allocations: 63.95 kB / 1.171 GB, free: 2.039 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003148/0.3252, allocations: 185.9 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3252, allocations: 0 / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004693/0.3257, allocations: 260.9 kB / 1.171 GB, free: 1.562 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 6.456e-05/0.3257, allocations: 65.44 kB / 1.171 GB, free: 1.488 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.3257, allocations: 4 kB / 1.171 GB, free: 1.484 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.3258, allocations: 3.984 kB / 1.171 GB, free: 1.48 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.3259, allocations: 11.98 kB / 1.172 GB, free: 1.469 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.3259, allocations: 0 / 1.172 GB, free: 1.469 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.3261, allocations: 27.98 kB / 1.172 GB, free: 1.441 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.3261, allocations: 11.92 kB / 1.172 GB, free: 1.43 MB / 0.92 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.0001313/0.3262, allocations: 151.5 kB / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.3263, allocations: 15.89 kB / 1.172 GB, free: 1.25 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.173e-05/0.3263, allocations: 12.36 kB / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3263, allocations: 0 / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.3263, allocations: 96 / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3263, allocations: 3.938 kB / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001499/0.3265, allocations: 201.7 kB / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3265, allocations: 4 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.147e-05/0.3266, allocations: 11.98 kB / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.3266, allocations: 4 kB / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.3266, allocations: 0 / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.3266, allocations: 0 / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3266, allocations: 160 / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004607/0.3271, allocations: 250.6 kB / 1.172 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.604e-05/0.3272, allocations: 88.95 kB / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.541e-05/0.3272, allocations: 4 kB / 1.172 GB, free: 0.5898 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.3273, allocations: 19.97 kB / 1.172 GB, free: 0.5703 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.3275, allocations: 39.95 kB / 1.172 GB, free: 0.5312 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.3275, allocations: 4 kB / 1.172 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.079e-05/0.3275, allocations: 101.6 kB / 1.172 GB, free: 440 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3275, allocations: 4 kB / 1.172 GB, free: 436 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.000212/0.3278, allocations: 24 kB / 1.172 GB, free: 412 kB / 0.92 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.0007481/0.3285, allocations: 0.7819 MB / 1.173 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004807/0.329, allocations: 274.6 kB / 1.173 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.329, allocations: 0 / 1.173 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002465/0.3293, allocations: 139.4 kB / 1.174 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.3295, allocations: 11.98 kB / 1.174 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002252/0.3318, allocations: 1.758 MB / 1.175 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.332, allocations: 0.6924 MB / 1.176 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.336e-05/0.3321, allocations: 8 kB / 1.176 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.481e-05/0.3322, allocations: 23.42 kB / 1.176 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.3322, allocations: 3.938 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02019/0.3524, allocations: 3 MB / 1.179 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.872/8.225, allocations: 7.891 kB / 1.179 GB, free: 9.625 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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