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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00175/0.00175, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002394/0.002394, allocations: 213.9 kB / 22.25 MB, free: 5.129 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.489/1.489, allocations: 230.6 MB / 256 MB, free: 7.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.198/3.198, allocations: 0.505 GB / 0.8101 GB, free: 21.98 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 68.88 kB / 1.177 GB, free: 17.04 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3318, allocations: 180.2 MB / 1.353 GB, free: 8.438 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.NumberOfRequests): time 0.002796/0.3346, allocations: 1.513 MB / 1.354 GB, free: 6.914 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.000992/0.3356, allocations: 0.5376 MB / 1.355 GB, free: 6.371 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.718e-05/0.3356, allocations: 0 / 1.355 GB, free: 6.371 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 8.818e-05/0.3357, allocations: 7.938 kB / 1.355 GB, free: 6.363 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.549e-05/0.3358, allocations: 11.81 kB / 1.355 GB, free: 6.352 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002706/0.3361, allocations: 55.92 kB / 1.355 GB, free: 6.297 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001829/0.3362, allocations: 95.77 kB / 1.355 GB, free: 6.203 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.686e-05/0.3363, allocations: 8.172 kB / 1.355 GB, free: 6.195 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001842/0.3365, allocations: 59.78 kB / 1.355 GB, free: 6.137 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.3366, allocations: 43.88 kB / 1.355 GB, free: 6.094 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.3367, allocations: 8 kB / 1.355 GB, free: 6.086 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.978e-05/0.3367, allocations: 15.94 kB / 1.355 GB, free: 6.07 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.303e-05/0.3368, allocations: 15.98 kB / 1.355 GB, free: 6.055 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 6.779e-05/0.3368, allocations: 39.8 kB / 1.355 GB, free: 6.016 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.337, allocations: 91.91 kB / 1.355 GB, free: 5.926 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.337, allocations: 0 / 1.355 GB, free: 5.926 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.413e-06/0.337, allocations: 0 / 1.355 GB, free: 5.926 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.337, allocations: 0 / 1.355 GB, free: 5.926 MB / 1.045 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.0007219/0.3377, allocations: 389.4 kB / 1.356 GB, free: 5.504 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.3378, allocations: 8.031 kB / 1.356 GB, free: 5.496 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.67e-05/0.3378, allocations: 38.75 kB / 1.356 GB, free: 5.449 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001528/0.338, allocations: 20.88 kB / 1.356 GB, free: 5.43 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002464/0.3382, allocations: 134.4 kB / 1.356 GB, free: 5.273 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.3382, allocations: 4.375 kB / 1.356 GB, free: 5.27 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.667e-05/0.3383, allocations: 12.38 kB / 1.356 GB, free: 5.258 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003162/0.3386, allocations: 129.5 kB / 1.356 GB, free: 5.125 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3386, allocations: 0 / 1.356 GB, free: 5.125 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.3386, allocations: 4 kB / 1.356 GB, free: 5.121 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3386, allocations: 0 / 1.356 GB, free: 5.121 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000297/0.3389, allocations: 91.86 kB / 1.356 GB, free: 5.031 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005734/0.3395, allocations: 307.8 kB / 1.356 GB, free: 4.688 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.3398, allocations: 98.5 kB / 1.356 GB, free: 4.582 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.34, allocations: 68.92 kB / 1.357 GB, free: 4.512 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.414e-05/0.34, allocations: 0 / 1.357 GB, free: 4.512 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003114/0.3403, allocations: 127.3 kB / 1.357 GB, free: 4.375 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.3403, allocations: 0 / 1.357 GB, free: 4.375 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0007288/0.341, allocations: 275.2 kB / 1.357 GB, free: 4.094 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.244e-05/0.3411, allocations: 85.11 kB / 1.357 GB, free: 3.992 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.3412, allocations: 139.9 kB / 1.357 GB, free: 3.844 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/0.3413, allocations: 29.7 kB / 1.357 GB, free: 3.809 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.869e-05/0.3413, allocations: 92.12 kB / 1.357 GB, free: 3.715 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.757e-05/0.3414, allocations: 23.84 kB / 1.357 GB, free: 3.691 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.415e-05/0.3414, allocations: 29.64 kB / 1.357 GB, free: 3.656 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3416, allocations: 322.8 kB / 1.358 GB, free: 3.332 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.3418, allocations: 71.88 kB / 1.358 GB, free: 3.262 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.342, allocations: 67.95 kB / 1.358 GB, free: 3.195 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003512/0.3423, allocations: 181.9 kB / 1.358 GB, free: 2.996 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3423, allocations: 0 / 1.358 GB, free: 2.996 MB / 1.045 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005117/0.3428, allocations: 265 kB / 1.358 GB, free: 2.719 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.015e-05/0.3429, allocations: 67.41 kB / 1.358 GB, free: 2.641 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3429, allocations: 0 / 1.358 GB, free: 2.641 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.3429, allocations: 3.984 kB / 1.358 GB, free: 2.637 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.343, allocations: 11.98 kB / 1.358 GB, free: 2.625 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.343, allocations: 4 kB / 1.358 GB, free: 2.621 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001515/0.3432, allocations: 23.94 kB / 1.358 GB, free: 2.598 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.3432, allocations: 11.92 kB / 1.358 GB, free: 2.586 MB / 1.045 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.0001377/0.3434, allocations: 159.5 kB / 1.358 GB, free: 2.414 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.242e-05/0.3434, allocations: 7.953 kB / 1.358 GB, free: 2.406 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.295e-05/0.3434, allocations: 12.7 kB / 1.358 GB, free: 2.395 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3434, allocations: 4 kB / 1.358 GB, free: 2.391 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3434, allocations: 0 / 1.358 GB, free: 2.391 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3434, allocations: 0 / 1.358 GB, free: 2.391 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001614/0.3436, allocations: 164.6 kB / 1.359 GB, free: 2.188 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3436, allocations: 0 / 1.359 GB, free: 2.188 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.693e-05/0.3437, allocations: 16.17 kB / 1.359 GB, free: 2.172 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.3437, allocations: 0 / 1.359 GB, free: 2.172 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.3437, allocations: 16.03 kB / 1.359 GB, free: 2.156 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3437, allocations: 3.938 kB / 1.359 GB, free: 2.152 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3437, allocations: 0 / 1.359 GB, free: 2.152 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005019/0.3442, allocations: 250.6 kB / 1.359 GB, free: 1.883 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.659e-05/0.3442, allocations: 11.88 kB / 1.359 GB, free: 1.871 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.905e-05/0.3442, allocations: 4 kB / 1.359 GB, free: 1.867 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.3444, allocations: 23.97 kB / 1.359 GB, free: 1.844 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.3445, allocations: 35.97 kB / 1.359 GB, free: 1.809 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.3445, allocations: 3.984 kB / 1.359 GB, free: 1.805 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.907e-05/0.3446, allocations: 108.9 kB / 1.359 GB, free: 1.699 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3446, allocations: 0 / 1.359 GB, free: 1.699 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002211/0.3448, allocations: 24 kB / 1.359 GB, free: 1.676 MB / 1.045 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.0008295/0.3457, allocations: 0.778 MB / 1.36 GB, free: 0.8633 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004967/0.3462, allocations: 258.6 kB / 1.36 GB, free: 0.5859 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.3462, allocations: 0 / 1.36 GB, free: 0.5859 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002436/0.3464, allocations: 131.3 kB / 1.36 GB, free: 456 kB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002116/0.3466, allocations: 19.92 kB / 1.36 GB, free: 436 kB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002518/0.3491, allocations: 1.753 MB / 1.362 GB, free: 14.57 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.3495, allocations: 0.6899 MB / 1.363 GB, free: 13.86 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 5.935e-05/0.3495, allocations: 11.98 kB / 1.363 GB, free: 13.84 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.461e-05/0.3496, allocations: 27.42 kB / 1.363 GB, free: 13.82 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/0.3496, allocations: 0 / 1.363 GB, free: 13.82 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03706/0.3867, allocations: 3.25 MB / 1.366 GB, free: 10.7 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.55, allocations: 11.53 kB / 1.366 GB, free: 10.7 MB / 1.061 GB " [Timeout remaining time 287] (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 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_NumberOfRequests.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.70900410693139]