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.00443/0.00443, allocations: 102 kB / 15.73 MB, free: 6.039 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.001068/0.001068, allocations: 194.9 kB / 16.68 MB, free: 5.961 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.252/1.252, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.487/2.487, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 59.91 kB / 1.054 GB, free: 7.723 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2776, allocations: 157.4 MB / 1.207 GB, free: 10.22 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002249/0.2799, allocations: 1.483 MB / 1.209 GB, free: 8.727 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000709/0.2806, allocations: 462.7 kB / 1.209 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.185e-05/0.2807, allocations: 0 / 1.209 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001002/0.2808, allocations: 7.938 kB / 1.209 GB, free: 8.262 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.474e-05/0.2809, allocations: 11.86 kB / 1.209 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002019/0.2811, allocations: 43.88 kB / 1.209 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.2812, allocations: 99.77 kB / 1.209 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.399e-05/0.2813, allocations: 16.17 kB / 1.209 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.2815, allocations: 47.84 kB / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.335e-05/0.2816, allocations: 43.81 kB / 1.209 GB, free: 8.004 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.2816, allocations: 12 kB / 1.209 GB, free: 7.992 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.906e-05/0.2816, allocations: 8 kB / 1.209 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.377e-05/0.2817, allocations: 11.92 kB / 1.209 GB, free: 7.973 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.261e-05/0.2817, allocations: 35.86 kB / 1.209 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001329/0.2819, allocations: 91.97 kB / 1.21 GB, free: 7.848 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2819, allocations: 0 / 1.21 GB, free: 7.848 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.774e-06/0.2819, allocations: 0 / 1.21 GB, free: 7.848 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.2819, allocations: 0 / 1.21 GB, free: 7.848 MB / 0.9669 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.0006332/0.2825, allocations: 446.5 kB / 1.21 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.2826, allocations: 16.62 kB / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.337e-05/0.2826, allocations: 34.75 kB / 1.21 GB, free: 7.293 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.075e-05/0.2827, allocations: 16.83 kB / 1.21 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001558/0.2828, allocations: 184.2 kB / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.2829, allocations: 4.375 kB / 1.21 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.2829, allocations: 8.375 kB / 1.21 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002902/0.2832, allocations: 125.5 kB / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.2832, allocations: 0 / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.2832, allocations: 7.938 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.2832, allocations: 11.94 kB / 1.21 GB, free: 6.898 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002685/0.2835, allocations: 83.92 kB / 1.21 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/0.284, allocations: 328.7 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002856/0.2843, allocations: 106.5 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.2844, allocations: 68.94 kB / 1.211 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.2845, allocations: 4 kB / 1.211 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003072/0.2848, allocations: 127.2 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.2848, allocations: 4 kB / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.000632/0.2854, allocations: 267.2 kB / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.2855, allocations: 89.09 kB / 1.211 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.649e-05/0.2856, allocations: 127.4 kB / 1.211 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.2856, allocations: 29.7 kB / 1.212 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.301e-05/0.2857, allocations: 104 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.2857, allocations: 23.75 kB / 1.212 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.473e-05/0.2858, allocations: 25.7 kB / 1.212 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.835e-05/0.2859, allocations: 326.8 kB / 1.212 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.2861, allocations: 63.95 kB / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.2862, allocations: 64.45 kB / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003115/0.2866, allocations: 185.9 kB / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2866, allocations: 0 / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004557/0.287, allocations: 260.9 kB / 1.213 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.591e-05/0.2871, allocations: 67.34 kB / 1.213 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/0.2871, allocations: 0 / 1.213 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.2871, allocations: 3.984 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.2873, allocations: 19.98 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.2873, allocations: 0 / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.2874, allocations: 15.98 kB / 1.213 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.2874, allocations: 15.92 kB / 1.213 GB, free: 4.348 MB / 0.9669 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.0001032/0.2875, allocations: 147.5 kB / 1.213 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.2876, allocations: 11.91 kB / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.323e-05/0.2876, allocations: 12.36 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2876, allocations: 8.188 kB / 1.213 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2876, allocations: 4 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.2876, allocations: 4 kB / 1.213 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001444/0.2878, allocations: 197.6 kB / 1.213 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2878, allocations: 3.938 kB / 1.213 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.018e-05/0.2879, allocations: 11.98 kB / 1.213 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.2879, allocations: 0 / 1.213 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.2879, allocations: 4 kB / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2879, allocations: 0 / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.2879, allocations: 0 / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004404/0.2884, allocations: 250.6 kB / 1.213 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.2884, allocations: 84.95 kB / 1.213 GB, free: 3.512 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.842e-05/0.2885, allocations: 8 kB / 1.213 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.2886, allocations: 19.97 kB / 1.213 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.2887, allocations: 35.95 kB / 1.213 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.2887, allocations: 8 kB / 1.213 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.016e-05/0.2888, allocations: 105.5 kB / 1.214 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.2888, allocations: 0 / 1.214 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002057/0.289, allocations: 28 kB / 1.214 GB, free: 3.312 MB / 0.9669 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.0007269/0.2898, allocations: 0.778 MB / 1.214 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000467/0.2902, allocations: 266.6 kB / 1.215 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2902, allocations: 0 / 1.215 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000218/0.2905, allocations: 135.4 kB / 1.215 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002173/0.2907, allocations: 21.02 kB / 1.215 GB, free: 2.051 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.2928, allocations: 1.761 MB / 1.216 GB, free: 196 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/0.2931, allocations: 0.6885 MB / 1.217 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.187e-05/0.2931, allocations: 11.98 kB / 1.217 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.53e-05/0.2932, allocations: 23.42 kB / 1.217 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.2932, allocations: 0 / 1.217 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01833/0.3115, allocations: 3.089 MB / 1.22 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.041/7.353, allocations: 9.297 kB / 1.22 GB, free: 12.46 MB / 0.9825 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