Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_latest_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.009439/0.009439, allocations: 104.1 kB / 15.74 MB, free: 5.984 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.001755/0.001755, allocations: 197.8 kB / 16.68 MB, free: 5.91 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.339/1.339, 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 11.0.1-master/package.mo): time 2.501/2.501, allocations: 461.9 MB / 0.7348 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 64.11 kB / 1.054 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8163/0.8176, allocations: 157.4 MB / 1.207 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002746/0.8204, allocations: 1.475 MB / 1.209 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007639/0.8212, allocations: 466.9 kB / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.5e-05/0.8212, allocations: 0 / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.825e-05/0.8214, allocations: 11.88 kB / 1.209 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.107e-05/0.8215, allocations: 11.88 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002098/0.8217, allocations: 31.95 kB / 1.209 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000168/0.8219, allocations: 111.7 kB / 1.209 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.822, allocations: 12.19 kB / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.8221, allocations: 51.83 kB / 1.209 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.434e-05/0.8222, allocations: 39.83 kB / 1.209 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.813e-05/0.8223, allocations: 8 kB / 1.209 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.89e-05/0.8223, allocations: 8 kB / 1.209 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.923e-05/0.8223, allocations: 15.97 kB / 1.209 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 8.102e-05/0.8224, allocations: 39.8 kB / 1.209 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000152/0.8226, allocations: 90 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.8226, allocations: 0 / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8226, allocations: 0 / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.8226, allocations: 0 / 1.21 GB, free: 11.23 MB / 0.9356 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.0007103/0.8233, allocations: 446.6 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.8234, allocations: 8.031 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.977e-05/0.8234, allocations: 42.75 kB / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.95e-05/0.8235, allocations: 8.844 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001705/0.8237, allocations: 196.1 kB / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.8237, allocations: 4.375 kB / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.981e-05/0.8237, allocations: 12.38 kB / 1.21 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002992/0.824, allocations: 117.5 kB / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.824, allocations: 0 / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.824, allocations: 8 kB / 1.21 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.8241, allocations: 3.938 kB / 1.21 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002961/0.8244, allocations: 87.92 kB / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005186/0.8249, allocations: 336.6 kB / 1.211 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.8252, allocations: 102.5 kB / 1.211 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.8254, allocations: 76.94 kB / 1.211 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.8254, allocations: 0 / 1.211 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.8257, allocations: 123.3 kB / 1.211 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.964e-06/0.8258, allocations: 0 / 1.211 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0007178/0.8265, allocations: 283.1 kB / 1.211 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.8265, allocations: 85.11 kB / 1.211 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.708e-05/0.8266, allocations: 128.4 kB / 1.212 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.8267, allocations: 29.7 kB / 1.212 GB, free: 8.941 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.93e-05/0.8267, allocations: 100 kB / 1.212 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.805e-05/0.8268, allocations: 15.81 kB / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-05/0.8269, allocations: 29.7 kB / 1.212 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.369e-05/0.827, allocations: 322.8 kB / 1.212 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.8271, allocations: 71.94 kB / 1.212 GB, free: 8.395 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.8273, allocations: 59.95 kB / 1.212 GB, free: 8.336 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003296/0.8277, allocations: 189.8 kB / 1.212 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.8277, allocations: 0 / 1.212 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004814/0.8282, allocations: 256.9 kB / 1.213 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.239e-05/0.8282, allocations: 65.28 kB / 1.213 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.8282, allocations: 0 / 1.213 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.8283, allocations: 96 / 1.213 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.8284, allocations: 27.84 kB / 1.213 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.8284, allocations: 0 / 1.213 GB, free: 7.758 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.8285, allocations: 19.92 kB / 1.213 GB, free: 7.738 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.8286, allocations: 15.94 kB / 1.213 GB, free: 7.723 MB / 0.9356 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.0001133/0.8287, allocations: 155.5 kB / 1.213 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.946e-05/0.8287, allocations: 7.906 kB / 1.213 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.917e-05/0.8288, allocations: 12.38 kB / 1.213 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.8288, allocations: 0 / 1.213 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.8288, allocations: 0 / 1.213 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.8288, allocations: 4.234 kB / 1.213 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001396/0.8289, allocations: 193.6 kB / 1.213 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.8289, allocations: 4 kB / 1.213 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.482e-05/0.829, allocations: 19.97 kB / 1.213 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.829, allocations: 0 / 1.213 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.8291, allocations: 4 kB / 1.213 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.8291, allocations: 0 / 1.213 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.8291, allocations: 0 / 1.213 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004732/0.8295, allocations: 254.5 kB / 1.213 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.747e-05/0.8296, allocations: 84.95 kB / 1.213 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.8296, allocations: 8 kB / 1.213 GB, free: 6.879 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.8298, allocations: 19.97 kB / 1.213 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.8299, allocations: 35.95 kB / 1.213 GB, free: 6.824 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.8299, allocations: 8 kB / 1.213 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.14e-05/0.83, allocations: 99.2 kB / 1.214 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.83, allocations: 0 / 1.214 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002082/0.8302, allocations: 24 kB / 1.214 GB, free: 6.695 MB / 0.9356 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.00076/0.831, allocations: 0.782 MB / 1.214 GB, free: 5.879 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004823/0.8315, allocations: 270.7 kB / 1.215 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.8315, allocations: 0 / 1.215 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.8317, allocations: 139.3 kB / 1.215 GB, free: 5.441 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.8319, allocations: 15.98 kB / 1.215 GB, free: 5.426 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.8342, allocations: 1.76 MB / 1.216 GB, free: 3.57 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.8345, allocations: 0.6846 MB / 1.217 GB, free: 2.859 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.491e-05/0.8345, allocations: 15.97 kB / 1.217 GB, free: 2.844 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.528e-05/0.8346, allocations: 23.42 kB / 1.217 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.8346, allocations: 4 kB / 1.217 GB, free: 2.816 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02003/0.8546, allocations: 3.076 MB / 1.22 GB, free: 15.85 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.135/7.99, allocations: 8.734 kB / 1.22 GB, free: 15.85 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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