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.001163/0.001163, allocations: 108 kB / 15.61 MB, free: 152 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.00115/0.00115, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.18/1.18, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.038/2.038, allocations: 390.3 MB / 0.6647 GB, free: 492 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 63.89 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4915/0.4926, allocations: 140.4 MB / 0.9497 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.001941/0.4946, allocations: 1.47 MB / 0.9511 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000529/0.4951, allocations: 463.7 kB / 0.9516 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.273e-05/0.4952, allocations: 1.75 kB / 0.9516 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.479e-05/0.4953, allocations: 3.938 kB / 0.9516 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.962e-05/0.4953, allocations: 17.44 kB / 0.9516 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001618/0.4955, allocations: 40.98 kB / 0.9516 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001188/0.4956, allocations: 98.55 kB / 0.9517 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.325e-05/0.4957, allocations: 18.64 kB / 0.9518 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.638e-05/0.4958, allocations: 50.45 kB / 0.9518 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.695e-05/0.4959, allocations: 39.58 kB / 0.9518 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.4959, allocations: 7.844 kB / 0.9519 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.707e-05/0.4959, allocations: 11.62 kB / 0.9519 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.581e-05/0.496, allocations: 15.48 kB / 0.9519 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.631e-05/0.496, allocations: 43.75 kB / 0.9519 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001004/0.4961, allocations: 78.83 kB / 0.952 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.4961, allocations: 0 / 0.952 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.132e-06/0.4961, allocations: 0 / 0.952 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.703e-06/0.4961, allocations: 0 / 0.952 GB, free: 7.352 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.0005052/0.4967, allocations: 453.5 kB / 0.9524 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.4967, allocations: 9.656 kB / 0.9524 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.545e-05/0.4967, allocations: 37.81 kB / 0.9525 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.341e-05/0.4968, allocations: 10.5 kB / 0.9525 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.4969, allocations: 195.7 kB / 0.9527 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.4969, allocations: 12.66 kB / 0.9527 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.4969, allocations: 9.328 kB / 0.9527 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002563/0.4972, allocations: 115.7 kB / 0.9528 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.4972, allocations: 0 / 0.9528 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.4972, allocations: 5.484 kB / 0.9528 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.858e-06/0.4972, allocations: 1.156 kB / 0.9528 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002593/0.4975, allocations: 91.36 kB / 0.9529 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003924/0.4979, allocations: 335.1 kB / 0.9532 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002748/0.4982, allocations: 110.2 kB / 0.9533 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.4983, allocations: 70.97 kB / 0.9534 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.4984, allocations: 1.25 kB / 0.9534 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002593/0.4986, allocations: 120 kB / 0.9535 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.383e-06/0.4986, allocations: 4 kB / 0.9535 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005961/0.4992, allocations: 273 kB / 0.9538 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.4993, allocations: 89.58 kB / 0.9539 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.476e-05/0.4994, allocations: 128.6 kB / 0.954 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.4994, allocations: 32.02 kB / 0.954 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.136e-05/0.4994, allocations: 91.53 kB / 0.9541 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.902e-05/0.4994, allocations: 24.53 kB / 0.9541 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.802e-05/0.4995, allocations: 37.7 kB / 0.9542 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.758e-05/0.4995, allocations: 320.2 kB / 0.9545 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.4997, allocations: 61.27 kB / 0.9545 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.4999, allocations: 70.62 kB / 0.9546 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002807/0.5002, allocations: 183 kB / 0.9548 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.5002, allocations: 0 / 0.9548 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004119/0.5006, allocations: 258.2 kB / 0.955 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/0.5006, allocations: 64.77 kB / 0.9551 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.5006, allocations: 0 / 0.9551 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.5006, allocations: 0 / 0.9551 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.5008, allocations: 21.45 kB / 0.9551 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.5008, allocations: 1.75 kB / 0.9551 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.5009, allocations: 34.22 kB / 0.9551 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.5009, allocations: 7.438 kB / 0.9551 GB, free: 4.625 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 6.877e-05/0.501, allocations: 154.5 kB / 0.9553 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.501, allocations: 3.812 kB / 0.9553 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.083e-05/0.501, allocations: 11.34 kB / 0.9553 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.5011, allocations: 0 / 0.9553 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.5011, allocations: 4 kB / 0.9553 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.5011, allocations: 96 / 0.9553 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.838e-05/0.5012, allocations: 200.4 kB / 0.9555 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.5012, allocations: 1.562 kB / 0.9555 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.84e-05/0.5012, allocations: 15.89 kB / 0.9555 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.5013, allocations: 0 / 0.9555 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.5013, allocations: 10.39 kB / 0.9555 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.5013, allocations: 0.875 kB / 0.9555 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.5013, allocations: 1.031 kB / 0.9555 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003983/0.5017, allocations: 248.8 kB / 0.9558 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.828e-05/0.5017, allocations: 83.3 kB / 0.9558 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.414e-05/0.5017, allocations: 3.375 kB / 0.9558 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.5019, allocations: 20.56 kB / 0.9559 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.684e-05/0.502, allocations: 34.06 kB / 0.9559 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.502, allocations: 11.42 kB / 0.9559 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.807e-05/0.502, allocations: 105.1 kB / 0.956 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.502, allocations: 0 / 0.956 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001917/0.5022, allocations: 22.12 kB / 0.956 GB, free: 3.82 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.0005455/0.5028, allocations: 0.7856 MB / 0.9568 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004045/0.5032, allocations: 266.2 kB / 0.957 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.5032, allocations: 0 / 0.957 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001983/0.5034, allocations: 141.1 kB / 0.9572 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001816/0.5036, allocations: 19.62 kB / 0.9572 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.5053, allocations: 1.746 MB / 0.9589 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001041/0.5054, allocations: 0.694 MB / 0.9596 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.508e-05/0.5055, allocations: 7.641 kB / 0.9596 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.59e-05/0.5055, allocations: 28.61 kB / 0.9596 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.5056, allocations: 0 / 0.9596 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5466/1.052, allocations: 2.972 MB / 0.9625 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.307/8.359, allocations: 3.781 kB / 0.9625 GB, free: 15.06 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.NumberOfRequests_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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) "" 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