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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001837/0.001837, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001827/0.001827, allocations: 192.9 kB / 16.13 MB, free: 6.648 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.149/1.149, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.277/2.277, allocations: 461.9 MB / 0.7342 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 70.67 kB / 0.8985 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2083, allocations: 157.4 MB / 1.052 GB, free: 8.223 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.00211/0.2104, allocations: 1.541 MB / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006229/0.2111, allocations: 474.8 kB / 1.054 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.445e-05/0.2111, allocations: 4 kB / 1.054 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.368e-05/0.2112, allocations: 3.938 kB / 1.054 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.231e-05/0.2112, allocations: 11.92 kB / 1.054 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001528/0.2114, allocations: 35.91 kB / 1.054 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.389e-05/0.2115, allocations: 87.77 kB / 1.054 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.649e-05/0.2116, allocations: 20.16 kB / 1.054 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.848e-05/0.2117, allocations: 43.78 kB / 1.054 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.588e-05/0.2118, allocations: 39.83 kB / 1.054 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.256e-05/0.2118, allocations: 4 kB / 1.054 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.641e-05/0.2118, allocations: 8 kB / 1.054 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.579e-05/0.2118, allocations: 19.91 kB / 1.054 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.288e-05/0.2119, allocations: 31.86 kB / 1.054 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.212, allocations: 72.05 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.212, allocations: 0 / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.41e-07/0.212, allocations: 0 / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.096e-06/0.212, allocations: 0 / 1.055 GB, free: 5.824 MB / 0.8106 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.0005407/0.2126, allocations: 450.6 kB / 1.055 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.979e-05/0.2126, allocations: 8.031 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.448e-05/0.2127, allocations: 42.75 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.283e-05/0.2127, allocations: 8.844 kB / 1.055 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.2128, allocations: 200.1 kB / 1.055 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.175e-06/0.2128, allocations: 384 / 1.055 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.2129, allocations: 12.38 kB / 1.055 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002602/0.2131, allocations: 113.5 kB / 1.055 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.141e-06/0.2132, allocations: 0 / 1.055 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.2132, allocations: 8 kB / 1.055 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.2132, allocations: 0 / 1.055 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002551/0.2134, allocations: 95.86 kB / 1.055 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004379/0.2139, allocations: 332.6 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002661/0.2142, allocations: 102.5 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.2143, allocations: 72.94 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.2143, allocations: 0 / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000258/0.2146, allocations: 119.4 kB / 1.056 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.2146, allocations: 4 kB / 1.056 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006046/0.2152, allocations: 279.1 kB / 1.056 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.2153, allocations: 89.09 kB / 1.056 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.737e-05/0.2154, allocations: 131.9 kB / 1.056 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.2154, allocations: 25.7 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.559e-05/0.2154, allocations: 100 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.2155, allocations: 23.75 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.189e-05/0.2155, allocations: 29.7 kB / 1.057 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.505e-05/0.2156, allocations: 322.8 kB / 1.057 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.2158, allocations: 67.94 kB / 1.057 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.2159, allocations: 63.95 kB / 1.057 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002868/0.2162, allocations: 193.9 kB / 1.057 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2162, allocations: 256 / 1.057 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.00041/0.2166, allocations: 249 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.2167, allocations: 67.41 kB / 1.058 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2167, allocations: 4 kB / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.724e-06/0.2167, allocations: 0 / 1.058 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.2168, allocations: 23.89 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.2168, allocations: 4 kB / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001322/0.217, allocations: 23.89 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.217, allocations: 11.94 kB / 1.058 GB, free: 2.312 MB / 0.8106 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.704e-05/0.2171, allocations: 147.5 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.851e-05/0.2171, allocations: 11.91 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.306e-05/0.2171, allocations: 8.375 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.2171, allocations: 0 / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2172, allocations: 7.984 kB / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2172, allocations: 4 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.2173, allocations: 189.6 kB / 1.058 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.2173, allocations: 3.984 kB / 1.058 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.736e-05/0.2174, allocations: 11.98 kB / 1.058 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/0.2174, allocations: 7.938 kB / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.2174, allocations: 0 / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2174, allocations: 0 / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2174, allocations: 0 / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004104/0.2178, allocations: 254.5 kB / 1.058 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.242e-05/0.2179, allocations: 88.95 kB / 1.058 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.2179, allocations: 0 / 1.058 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.218, allocations: 23.97 kB / 1.058 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.352e-05/0.2181, allocations: 35.95 kB / 1.058 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.2181, allocations: 7.938 kB / 1.058 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.91e-05/0.2182, allocations: 107.2 kB / 1.059 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2182, allocations: 0 / 1.059 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001846/0.2184, allocations: 24 kB / 1.059 GB, free: 1.289 MB / 0.8106 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.0006257/0.219, allocations: 0.782 MB / 1.059 GB, free: 484 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004106/0.2194, allocations: 270.8 kB / 1.06 GB, free: 188 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.2194, allocations: 0 / 1.06 GB, free: 188 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002103/0.2197, allocations: 139.3 kB / 1.06 GB, free: 36 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001786/0.2198, allocations: 25.89 kB / 1.06 GB, free: 12 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.2217, allocations: 1.74 MB / 1.061 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001764/0.2219, allocations: 0.6887 MB / 1.062 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.214e-05/0.222, allocations: 11.98 kB / 1.062 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.315e-05/0.222, allocations: 15.44 kB / 1.062 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.222, allocations: 3.938 kB / 1.062 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.262/2.484, allocations: 2.605 MB / 1.065 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003412/2.485, allocations: 222.4 kB / 1.065 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.103/4.588, allocations: 0 / 1.065 GB, free: 10.68 MB / 0.8262 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