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.001012/0.001012, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.181/1.181, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.273/2.273, allocations: 437 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 59.91 kB / 0.8693 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4746/0.4758, allocations: 151.6 MB / 1.017 GB, free: 2.453 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.00224/0.4781, allocations: 1.474 MB / 1.019 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006077/0.4787, allocations: 466.8 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.144e-05/0.4788, allocations: 0 / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 7.82e-05/0.4789, allocations: 11.86 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.098e-05/0.4789, allocations: 15.88 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000168/0.4791, allocations: 31.95 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.4792, allocations: 107.7 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.181e-05/0.4793, allocations: 12.17 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.886e-05/0.4794, allocations: 51.91 kB / 1.02 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.096e-05/0.4795, allocations: 43.83 kB / 1.02 GB, free: 244 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.694e-05/0.4795, allocations: 8 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.786e-05/0.4796, allocations: 11.94 kB / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.664e-05/0.4796, allocations: 19.91 kB / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.506e-05/0.4797, allocations: 35.86 kB / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001079/0.4798, allocations: 82 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.4798, allocations: 0 / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.072e-06/0.4798, allocations: 0 / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.4798, allocations: 0 / 1.02 GB, free: 88 kB / 0.7637 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.0005746/0.4804, allocations: 450.6 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.4804, allocations: 8.031 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.033e-05/0.4804, allocations: 34.75 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.869e-05/0.4805, allocations: 16.83 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001412/0.4806, allocations: 184.2 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.4807, allocations: 4.375 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.4807, allocations: 8.375 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002694/0.481, allocations: 125.5 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.481, allocations: 0 / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.481, allocations: 0 / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.481, allocations: 4 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002741/0.4813, allocations: 83.92 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004545/0.4817, allocations: 344.6 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002864/0.482, allocations: 102.5 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.4822, allocations: 76.88 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.278e-05/0.4822, allocations: 3.938 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/0.4825, allocations: 127.3 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.4825, allocations: 0 / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006329/0.4832, allocations: 275.2 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.4832, allocations: 93.03 kB / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.134e-05/0.4833, allocations: 124 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.4833, allocations: 37.69 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.456e-05/0.4834, allocations: 92.14 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.4834, allocations: 11.81 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.677e-05/0.4835, allocations: 37.64 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.134e-05/0.4836, allocations: 322.8 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.4837, allocations: 63.95 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.4839, allocations: 67.95 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.4842, allocations: 181.9 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4842, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004453/0.4847, allocations: 260.8 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.4847, allocations: 69.44 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.4847, allocations: 3.984 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.4848, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.4849, allocations: 15.98 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.4849, allocations: 0 / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.485, allocations: 23.83 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.485, allocations: 11.92 kB / 1.023 GB, free: 12.59 MB / 0.7794 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.673e-05/0.4851, allocations: 160.6 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.734e-05/0.4852, allocations: 4 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.754e-05/0.4852, allocations: 16.36 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.4852, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.4852, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.4852, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.4853, allocations: 205.5 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.4854, allocations: 0 / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.039e-05/0.4854, allocations: 11.98 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.4854, allocations: 0 / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.4855, allocations: 12.09 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.4855, allocations: 4.094 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.4855, allocations: 0 / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004404/0.4859, allocations: 250.5 kB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.09e-05/0.486, allocations: 77.42 kB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.46e-05/0.486, allocations: 4 kB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.4861, allocations: 31.97 kB / 1.024 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.981e-05/0.4862, allocations: 39.89 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.4863, allocations: 4 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.055e-05/0.4863, allocations: 105 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4863, allocations: 0 / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001957/0.4865, allocations: 24 kB / 1.024 GB, free: 11.55 MB / 0.7794 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.0006378/0.4872, allocations: 0.7819 MB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004447/0.4876, allocations: 274.6 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.4876, allocations: 0 / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002204/0.4879, allocations: 139.4 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000185/0.4881, allocations: 17.36 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/0.49, allocations: 1.739 MB / 1.027 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001791/0.4902, allocations: 0.6885 MB / 1.027 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.541e-05/0.4902, allocations: 7.984 kB / 1.027 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.329e-05/0.4903, allocations: 23.44 kB / 1.027 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.4903, allocations: 0 / 1.027 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01889/0.5092, allocations: 2.964 MB / 1.03 GB, free: 4.812 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.499/8.008, allocations: 14.3 kB / 1.03 GB, free: 4.801 MB / 0.7794 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