Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="Buildings_9_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.001233/0.001234, 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.001167/0.001167, allocations: 192.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.198/1.198, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.116/2.116, allocations: 390.2 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 59.91 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4966/0.4978, allocations: 140.4 MB / 0.9497 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002058/0.4999, allocations: 1.464 MB / 0.9511 GB, free: 8.027 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005283/0.5004, allocations: 464.3 kB / 0.9516 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.885e-05/0.5004, allocations: 0 / 0.9516 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.083e-05/0.5005, allocations: 5.469 kB / 0.9516 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.626e-05/0.5006, allocations: 21.2 kB / 0.9516 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001602/0.5007, allocations: 33.3 kB / 0.9516 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.5009, allocations: 106.1 kB / 0.9517 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.616e-05/0.501, allocations: 23.89 kB / 0.9518 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.412e-05/0.5011, allocations: 45.95 kB / 0.9518 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.458e-05/0.5011, allocations: 39.08 kB / 0.9518 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.477e-05/0.5012, allocations: 8.031 kB / 0.9519 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.95e-05/0.5012, allocations: 7.562 kB / 0.9519 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.548e-05/0.5012, allocations: 15.73 kB / 0.9519 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.219e-05/0.5013, allocations: 44.41 kB / 0.9519 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.694e-05/0.5014, allocations: 80.77 kB / 0.952 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.5014, allocations: 4.969 kB / 0.952 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.032e-06/0.5014, allocations: 0 / 0.952 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.5014, allocations: 0 / 0.952 GB, free: 7.379 MB / 0.7169 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.0004992/0.5019, allocations: 448.9 kB / 0.9524 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.964e-05/0.5019, allocations: 9.688 kB / 0.9524 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.89e-05/0.502, allocations: 38.09 kB / 0.9525 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.353e-05/0.502, allocations: 10.12 kB / 0.9525 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.5021, allocations: 196.5 kB / 0.9527 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.5022, allocations: 7.906 kB / 0.9527 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.5022, allocations: 10.75 kB / 0.9527 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002569/0.5024, allocations: 117.8 kB / 0.9528 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.5025, allocations: 4.938 kB / 0.9528 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.5025, allocations: 5.312 kB / 0.9528 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.5025, allocations: 5.234 kB / 0.9528 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002663/0.5028, allocations: 86.66 kB / 0.9529 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003961/0.5032, allocations: 332.3 kB / 0.9532 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002844/0.5035, allocations: 106.1 kB / 0.9533 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.5036, allocations: 75.16 kB / 0.9534 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.032e-05/0.5036, allocations: 3.938 kB / 0.9534 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002582/0.5039, allocations: 120.4 kB / 0.9535 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.5039, allocations: 0 / 0.9535 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0006129/0.5045, allocations: 273.3 kB / 0.9538 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.5046, allocations: 85.23 kB / 0.9539 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.645e-05/0.5046, allocations: 139.2 kB / 0.954 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.5047, allocations: 28.77 kB / 0.954 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.231e-05/0.5047, allocations: 94.69 kB / 0.9541 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.5047, allocations: 23.78 kB / 0.9541 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.841e-05/0.5048, allocations: 25.75 kB / 0.9541 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.277e-05/0.5048, allocations: 328 kB / 0.9545 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001697/0.505, allocations: 66.17 kB / 0.9545 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.5052, allocations: 66.03 kB / 0.9546 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002835/0.5055, allocations: 179.6 kB / 0.9548 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.5055, allocations: 0 / 0.9548 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004146/0.5059, allocations: 266.3 kB / 0.955 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.5059, allocations: 71.55 kB / 0.9551 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.5059, allocations: 1.188 kB / 0.9551 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.5059, allocations: 0 / 0.9551 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.5061, allocations: 13.52 kB / 0.9551 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.5061, allocations: 1.281 kB / 0.9551 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.5062, allocations: 32.53 kB / 0.9551 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/0.5062, allocations: 11.84 kB / 0.9551 GB, free: 4.652 MB / 0.7169 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 7.312e-05/0.5063, allocations: 154.9 kB / 0.9553 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.5063, allocations: 9.5 kB / 0.9553 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.382e-05/0.5064, allocations: 9.75 kB / 0.9553 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.5064, allocations: 0 / 0.9553 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.5064, allocations: 1.062 kB / 0.9553 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.5064, allocations: 0 / 0.9553 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.806e-05/0.5065, allocations: 196.4 kB / 0.9555 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.5065, allocations: 5.438 kB / 0.9555 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.035e-05/0.5066, allocations: 15.88 kB / 0.9555 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.5066, allocations: 0 / 0.9555 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.5066, allocations: 6.609 kB / 0.9555 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.5066, allocations: 1.375 kB / 0.9555 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.5066, allocations: 0 / 0.9555 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004058/0.507, allocations: 246.4 kB / 0.9558 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.771e-05/0.507, allocations: 83.95 kB / 0.9558 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.382e-05/0.5071, allocations: 4.781 kB / 0.9558 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.5072, allocations: 20.62 kB / 0.9559 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.884e-05/0.5073, allocations: 30.22 kB / 0.9559 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.5073, allocations: 11.5 kB / 0.9559 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.465e-05/0.5074, allocations: 107.4 kB / 0.956 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8.82e-07/0.5074, allocations: 0 / 0.956 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000201/0.5076, allocations: 31.31 kB / 0.956 GB, free: 3.844 MB / 0.7169 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.0005412/0.5081, allocations: 0.7786 MB / 0.9568 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004155/0.5085, allocations: 269.2 kB / 0.957 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.5086, allocations: 0 / 0.957 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.5088, allocations: 141.4 kB / 0.9572 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001827/0.509, allocations: 8.688 kB / 0.9572 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.5108, allocations: 1.755 MB / 0.9589 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000144/0.511, allocations: 0.6926 MB / 0.9596 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.186e-05/0.5111, allocations: 9.484 kB / 0.9596 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.5111, allocations: 23.55 kB / 0.9596 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of SimCode: time 1.9e-07/0.5111, allocations: 0 / 0.9596 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01798/0.5291, allocations: 2.968 MB / 0.9625 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.604/7.134, allocations: 11.22 kB / 0.9625 GB, free: 15.08 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_NumberOfRequests.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches